imap_mail's from address?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
arya6000
Forum Newbie
Posts: 15
Joined: Fri Apr 07, 2006 3:32 pm

imap_mail's from address?

Post 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
Post Reply