Arya Posted January 28, 2009 Share Posted January 28, 2009 Hello I was able to send email from my php script using the following code imap_mail("[email protected]", "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 Link to comment https://forums.phpfreaks.com/topic/142841-imap_mails-from-address/ Share on other sites More sharing options...
gevans Posted January 28, 2009 Share Posted January 28, 2009 imap_open[/ur;] will allow you to chose the server you want to send through If you look at imap_mail you will see the option for additional headers. Following the link to mail() will give you more information about additional headers and adding 'From' Link to comment https://forums.phpfreaks.com/topic/142841-imap_mails-from-address/#findComment-748777 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.