Re: PEAR Mail $obj->send()
| From: | Brian Smither | Date: | Fri, 08 Jul 2011 18:02:06 +0000 |
| Subject: | Re: PEAR Mail $obj->send() | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-313996@lists.php.net to get a copy of this message | ||
>>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.