First, don't know how relevant it is but I am running the smtp module and using gmail.

In the _watcher_email_notifications_send_message function, this line causes my site to fail to send email:

$from = sprintf('%s <%s>', $site_name, $site_mail);

The error reported is this, which suggests it has somehow not parsed the from name and address properly.

Error sending e-mail from "SiteName" to xxx@yyy.com: The following From address failed: "SiteName"

This fixes it, and emails are still received with a distinct from name and email address. I am unsure if this is default behaviour, or the smtp module is determining the from name after the fact.
$from = $site_mail;

Comments

solipsist’s picture

It works great with PHP's mail() which Drupal uses by default. I don't use this particular module but I'll see if I can implement your workaround.

solipsist’s picture

Status: Active » Postponed (maintainer needs more info)

I've confirmed that this works as expected using PHP:s mail() and sendmail. I need to see what causes this and for that I need to know what module you are using.

Mr J: Can you tell me exactly what module you are using? URL to its project page would be useful.

Thanks.

mr.j’s picture

solipsist’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

I fixed this in the latest version. Issue closed.

solipsist’s picture

Status: Closed (fixed) » Fixed

Marking it as fixed, it's a more accurate description :)

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.