Skip to main content
10 events
when toggle format what by license comment
Jun 8, 2018 at 8:07 comment added A.Sana Hello, please where I should add class "class CommerceCanvasMailSystem extends DefaultMailSystem {..}" ?
Oct 16, 2017 at 23:26 comment added Professor Falken This code can cause messages to have the wrong from address with newer versions of postfix. As a result, mails go out from the server account username and server hostname, instead of the from address you expect. That is because the code is not setting the 5th "$extra_parameters" to php's mail() function. To fix this, add the line: , '-f' . $message['From'] to your MailSystem class, right below the line: join("\n", $mimeheaders).
Mar 6, 2015 at 11:07 comment added gue For the record: It's more easy using following module: drupal.org/project/simple_mail
Jan 12, 2015 at 13:51 comment added Storsey Just for completion I notice that the last snippet you left out the all-important building $email_values_user var containing 'body' => $email_text_user. Easy enough to figure out but could trip someone up :) Thanks for posting this code - really helpful stuff.
Dec 9, 2014 at 10:42 comment added Aneek Mukhopadhyay @Ejay, yes you can. This does that.
Dec 9, 2014 at 7:59 comment added Ejaz But still you won't be able to send the HTML mail..., right.
Jul 16, 2013 at 21:11 comment added artfulrobot Great answer. I love the way Drupal makes basic things so simple ;-)
Feb 5, 2013 at 19:45 vote accept Andy
Jan 8, 2013 at 19:28 comment added Andy Thank you very much for your answer - it is exactly what I asked for! Unfortunately now that I've seen the work involved and that there are modules out there that could do everything for me I think I'll wait before I rush into creating my own hook. However, I can't thank you enough for your answer because it is everything I asked for. I wish I could upvote more than once
Jan 8, 2013 at 13:56 history answered Aneek Mukhopadhyay CC BY-SA 3.0