PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Wrong 'from' mail

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PEAR Forum Forum Index -> General PEAR questions
View previous topic :: View next topic  
Author Message
A_AZAZEL_A



Joined: 11 Apr 2008
Posts: 1

PostPosted: Fri Apr 11, 2008 11:12 am    Post subject: Wrong 'from' mail Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PEAR Forum Forum Index -> General PEAR questions All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
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



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement