| View previous topic :: View next topic |
| Author |
Message |
A_AZAZEL_A
Joined: 11 Apr 2008 Posts: 1
|
Posted: Fri Apr 11, 2008 11:12 am Post subject: Wrong 'from' mail |
|
|
hi there!
I use this code to send mail:
$host = "ssl://smtp.gmail.com";
$port = "465";
$username = "...";
$password = "...";
$headers = array ('From' => $from,
'To' => $to,
'Subject' => $subject,'Content-type' => 'text/html');
$smtp = Mail::factory('smtp',
array ('host' => $host,
'port' => $port,
'auth' => true,
'username' => $username,
'password' => $password));
$mail = $smtp->send($to, $headers, $body);
...and the from section of the mail that is received will be the gmail one.
Can you tell me why is that and how can it be the one that is in var $from? |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|