Closed (fixed)
Project:
Simplenews
Version:
6.x-1.0-rc6
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
22 Jul 2009 at 20:32 UTC
Updated:
17 Jan 2010 at 14:26 UTC
my sent emails are arriving with the "from" address in the format: "myaccount@box555@bluehost.commyaddress@mysite.com"
mail sent with mimemail latest dev version.
(posted also in mimemail issues, since not sure cause)
Comments
Comment #1
docwilmot commentedi would be grateful for comment on this issue please.
Comment #2
mas10 commentedI am the same situation, too. But I do not put mimemail.
Comment #3
sutharsan commentedThis is not likely to be caused by Simplenews. Check the From address when using the core contact form.
Comment #4
docwilmot commentedhello sutharsan
it is likely partly due to simplenews though.
however, on further review, this only happens in windows live mail.
this happens when i send simplenews with mimemail
doesnt happen with simplenews without mimemail
but doesnt happen with print.module sent with mimemail
doesnt happen with contact form with mimemail off (disabled),
doesnt happen contact form with site using mimemail for all mail.
in short, this only happens with mimemail and simplenews together in WLM
i changed the newsletter "from name" at admin/content/simplenews/types and at admin/settings/simplenews/newsletter to the same as the "from email". now i dont get the box..bluehost, but the email from line in WLM shows as "from email [from email]"
good enough for now but not ideal. would be nice to have "from name[from email]."
and would be nice at least to know why this happens.
thanks
Comment #5
sutharsan commentedIf you want to go to the bottom of this, you have to debug the code.
Try using the Devel module, that has an option to log the outgoing email to the watchdog, including the email header fields. That will help you investigating the content of the email sent by Mime Mail. Have you searched the Mime Mail issue queue. This now seems to be a Mime Mail issue.
Comment #6
robbiethegeek commentedI can confirm that the server email address is what it is sent from on the block form subscription submission. And the contact form sends with the proper email address from the site default.
These are print_r output from in :
it doesn't seem to pass through the email address that would have been newsletter@americanbard.org which I confirmed before drupal_mail_send() gets called within drupal_mail().
Comment #7
sutharsan commentedComment #8
sutharsan commented@robbiethegeek: Your system uses the server address because a From address is missing. The From is "American Bard Theater Company" instead of "American Bard Theater Company". Please continue debugging:
simplenews_subscribe_user()[956] Handles subscription and sending upon simplenews block submission.$params['from'] = _simplenews_set_from();[999] Is where the From address is collected as an array. Should contain:$parms['from']['address'] = from@example.com$parms['from']['formatted'] = "_mime_encoded_from_name_" <from@example.com>simplenews_mail()[1460] Builds all simplenews emails; newsletter and confirmation emails.$headers['From'] = $params['from']['formatted'];[1520] Is where the From email header is made.[edit] all above wrapped in <code> tags.
Comment #9
robbiethegeek commentedI can give you whatever you want to help debug, what exact dumps of variables do you want?
Comment #10
sutharsan commentedYou should watch the content of the formatted from addres and when it looses its email address component.
Comment #11
ssg13565 commentedI have been debugging on this for a couple of days before I discovered this topic. My problem also involves bluehost as the host for my domain.
The from address that I get is:
I have put in some debugging messages into simplenews and get the following output:
There is no indication of bluehost in anything that simplenews passes to the PHP mail function.
I just found out that only if I leave the from name blank, then the from address that appears in the email is:
and has no hint of the bluehost email account.
Comment #12
sutharsan commentedssg13565, do you have a windows based webserver? It is known that windows based systems don't accept the from name.
In simplenews I use the code below. Although your address is (?) composed by Mime Mail it may be usefull to you.
Comment #13
sutharsan commented@robbiethegeek: are you still open to debug this?
Comment #14
sutharsan commentedNo activity, closing the issue.