ed
Member
Registered: 10th Sep 03
User status: Offline
|
I have written a few scripts which send e-mails out for a few websites I'm working on at the moment. Is there any way I can change the name of the sender of the message, as currently the messages come through as the sendmaill default which is normally 'nobody' or 'www-data' which wont look very professional when I set the CRON up to automatically send out e-mails to the customers. I also need to be able to set message subjects too, as that is blank. I assume there are variable names that I need to know in order to do this?
|
Dom
Member
Registered: 13th Sep 03
User status: Offline
|
if you use the mail function, you should beable to set the from sender address as well as subject. look at the php.net website and search for mail function, though something like:
ini_set(sendmail_from,'from@me.com');
mail($emailaddy, $subject, $body, $header);
ini_restore(sendmail_from);
should do the trick as it forces the sendmail_from parameter - been a long time since ive done php so its off the top of my head
|