Re: PEAR Mail $obj->send()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>>Instead of 'auth'=> true, I used 'auth' => "PLAIN" as 
>> suggested by a user comment on the Mail documentation page.)

$obj = Mail::factory('smtp',
  array ('host' => $host,
    'port' => $port,
    'auth' => true,
    'username' => $username,
    'password' => $password));

(Variables are set. $host = "smtp.gmail.com", $port = "465")


>Do you have a mail server running on localhost?

No.

>If you do not have a local MTA then you need to change the
>params so it uses a remote mail server.

It does.




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux