[This is a 6.x question but this should apply to prior versions by degree.]
I had a search/google for this question and should have been able to find it as a few hosts are insisting on the -f parameter for mail(. Sorry if I missed your answer, but could you point me at it please.
My host needs to see the "from" option used in Drupal before the mail.inc function "drupal_mail_send" is allowed to send mail.
From what I can see:
// Note: e-mail uses CRLF for line-endings, but PHP's API requires LF.
// They will appear correctly in the actual e-mail that is sent.
str_replace("\r", '', $message['body']),
The fifth '-f' parameter 'from' isn't passed I think.
I would like to pick up the drupal e-mail address from the site config but my PHP programming isn't so good; my programming days were a while ago and on MS but I wouldn't mind getting back into it on OSS.
Where do I pick up that variable/function result in this module please? I tried to look for the function myself and didn't find it listed as a global variable.
Thanks in advance.