2

I have a webform with example.com/node/123/webform/emails set to send email notification from info@example.com to several email addresses when a submission is received.

Is there a way to see a record of email notifications sent out ie with date and time etc to verify that the notifications have in fact been sent?

Thanks...

0

My favorite and so far most reliable, if not most convenient, way to achieve that is out of Drupal, actually. If you set it up inside Drupal, and you hit some errors, you never are 100% certain if mail wasn't sent, or just wasn't logged. Or, if logging happens first, you can never know for sure if mail was sent, or was only supposed to be.

The way I prefer to do it is to use external SMTP server for outgoing mail. That way I can be sure all mail I have logged actually was sent from Drupal, and chance I logged all mail are bigger, too. After all, SMTP servers have decades of evolution more than Drupal, or even PHP. Added bonuses include:

  • Less CPU and memory use on webserver, because it does not need code for mail log, and this code would be loaded on each uncached request.
  • Ability to deliver mail even if recipient's server is temporarily down.

Example

If you have business Gmail, you can use SMTP Authentication Support module to make your site send via Gmail, and you will see mail sent from site in your Sent Mail, just like this:

screenshot

No special configuration was needed to get this working. You can use full power of Google if you do so: filters, labels, whatever you wish.

If you will use company mail server, just make sure your sysadmin will configure it in similar manner.

  • @ Molot thanks I am interested in this - does that mean using drupal.org/project/smtp and something like mandrill.com ? I am googling but please let me know any helpful links re setup etc – Juc1 Dec 2 '14 at 14:52
  • @Juc1 see my updated answer – Mołot Dec 2 '14 at 15:15
  • @ Molot wow that is cool - I will try with gmail where I am using business Gmail and also I am looking into drupal.org/project/mandrill – Juc1 Dec 2 '14 at 15:54
  • @Juc1 glad to help. Happy coincidence you are actually using Gmail, too :D I never used mandrill, but I've heard it is good, but only worth the money if your traffic is significant enough to justify prices. – Mołot Dec 2 '14 at 15:58
  • @ Molot I have setup Mandrill - I think you get the first 12,000 emails per month for free - if anyone is interested there are some nice set up instructions here redcrackle.com/blog/… – Juc1 Dec 2 '14 at 18:39
2

Webform doesn't provide default functionality for it.

you can use either of these modules to log outgoing mail:

  • 1
    @ Pravin thanks for your reply - I don't like www.drupal.org/project/emaillog because it is only rc-1 and 37 sites using it. I tried drupal.org/project/maillog - it works fine for some emails sent out eg new comment but so far does not seem to work for webform new submission (ie no log). – Juc1 Dec 2 '14 at 14:16

protected by Community Dec 23 '15 at 6:11

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.