"From name" doesn't show up in the mail.

ryo - February 16, 2008 - 15:47
Project:Simplenews
Version:5.x-1.4
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

Although "From name" is specifed in "Sender information" at /admin/content/newsletters/settings,
it doesn't show up in the mail...

#1

webavant - May 25, 2008 - 20:26
Version:5.x-1.2» 5.x-1.3
Priority:normal» critical

This is occurring for me also in the latest 5.x stable version. The from-name is important, as many spam filters will mark it as spam if there is no from name. Yahoo is marking my simplenews mails as spam, and SpamAssassin is also giving it a bad spam score for checking true for the "NO_REAL_NAME" check.

#2

webavant - May 25, 2008 - 20:27
Version:5.x-1.3» 5.x-1.2

Changing version back to original poster's setting. I have tested this and confirmed it to be a bug on 5.x-1.3 also.

#3

webavant - May 25, 2008 - 20:32

It looks like the email address is being inserted in the From: field, but not the name. It needs a name to get past the SpamAssassin check I believe.

#4

webavant - May 25, 2008 - 20:43
Priority:critical» normal

I installed the mime module and it works now. I think that the from name might not be properly mime encoded otherwise, but I have not confirmed this. This post made me suspect that there may be something wrong with simplenews's from field that mime module is correcting: http://drupal.org/node/238735.

#5

Sutharsan - July 9, 2008 - 09:38
Status:active» fixed

This may be caused by missing settings and un logical behavior of simplenews.
When there is no site email address set (/admin/settings/site-information) the newsletter specific from name and from address have no default value. With the attached patch these newsletter specific settings default to the simplenews general from name and address which default in its turn to the site name and address.

Patch committed.

AttachmentSize
simplenews.222530.patch 2.46 KB

#6

ryo - July 16, 2008 - 05:01
Version:5.x-1.2» 5.x-1.4
Status:fixed» active

Still, the sender's name doesn't show up in the received Email even though it is specified at "sender name" in "/admin/content/newsletters/settings" (in Japanese - double byte character language).

#7

Sutharsan - July 16, 2008 - 06:24
Status:active» postponed (maintainer needs more info)

@ryo:
1. Are you using plain or html text emails? Does it fail on plain text?
2. Please give examples of emails send by Drupal (using name + email address) that does give the right result. Preferably examples from Drupal core.
3. Give an example of a name.

#8

ryo - July 16, 2008 - 07:40

@Sutharson:
Thanks for taking care.
1. We're now using plain text emails. As webavant mentioned, when we use html text, things went well. For my client's reason, we changed it into plain text, then the issue happened.

2. I'm sorry but what do you mean by that? Do you want for example mails sent by core contact module? And how could I give it to you?

3. What name? Are you saying site's name in Japanese?

#9

Sutharsan - July 16, 2008 - 08:15

Re. 2 It is helpfull for me if you have an example situation of emails send by core where the To address has the format of "name" is used and received correctly. For example the email via private form.

Re. 3. Yes. To enable me to test with real data.

#10

Sutharsan - July 17, 2008 - 08:10
Status:postponed (maintainer needs more info)» fixed

After a bit more digging and the kind assistance of ryo I found the cause.
The attached patch solves it. Tested by ryo (thanks!) and now committed.

AttachmentSize
simplenews.222530.patch 711 bytes

#11

Anonymous (not verified) - July 31, 2008 - 08:13
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.