Page 1 of 1

imap_mail's from address?

Posted: Wed Jan 28, 2009 12:09 pm
by arya6000
Hello

I was able to send email from my php script using the following code

Code: Select all

 
imap_mail("to@gmail.com", "Subject", "This is the message");
 
But it seems that it uses the server's mail service to send email, is there anyway I can make it send email through gmail instead? and when I recieved the email, in the from section, it said "CGI-Mailer" Is there anyway to change the from address?


Thank You