Closed (fixed)
Project:
Watcher
Version:
5.x-1.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 May 2008 at 07:55 UTC
Updated:
11 Nov 2008 at 20:52 UTC
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
Comment #1
solipsist commentedIt 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.
Comment #2
solipsist commentedI'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.
Comment #3
mr.j commentedhttp://drupal.org/project/smtp
Comment #4
solipsist commentedI fixed this in the latest version. Issue closed.
Comment #5
solipsist commentedMarking it as fixed, it's a more accurate description :)
Comment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.