Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]email, smtp
ArturEales
post
Post #1





Grupa: Zarejestrowani
Postów: 106
Pomógł: 0
Dołączył: 21.09.2008

Ostrzeżenie: (0%)
-----


Witam mam problem, wywala mi błąd w 14 linij ... Fatal error: Class 'Mai in /virtual/s/e/serwister1.ugu.pl/mail.php on line 14.

Kod
<?php
$from = "xxxxx <xxxxx@gmail.com>";
$to = "System <xxxxxxx@vp.pl>";
$subject = "System DANE";
$body = "System Body dat NDS";

$host = "smtp.gmail.com";
$username = "xxxxxx@vp.pl";
$password = "********";

$headers = array ('From' => $from,
   'To' => $to,
   'Subject' => $subject);
$smtp = Mail::factory('smtp',
   array ('host' => $host,
     'auth' => true,
     'username' => $username,
     'password' => $password));

$mail = $smtp->send($to, $headers, $body);

if (PEAR::isError($mail)) {
   echo("<p>" . $mail->getMessage() . "</p>");
  } else {
   echo("<p>Message successfully sent!</p>");
  }
?>


Z góry dzięki za odpowiedź.
Wesołych Świat.....
(IMG:http://forum.php.pl/style_emoticons/default/snitch.gif)

Ten post edytował ArturEales 25.12.2008, 23:02:01
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 2.10.2025 - 11:19