Causes server e-mail "From" address

adshill - February 25, 2009 - 00:51
Project:HTML Mail
Version:6.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Hi there. Great module and very useful for items sent from Rules that otherwise appear in a mess. However, the module is making the "From" address of the contact form come up as my server address instead of the user sending the mail thus making it impossible to reply to mails from the core contact module.

I disabled the module and all works as usual so it is definately the HTML mail module creating this.

Thanks.

#1

adshill - March 4, 2009 - 14:46

Can anyone help with this? :( All my e-mails are coming from:

annalin@serv01.mxxx.sgded.com

instead of the site e-mail or e-mail of the contact form. At the moment I am having to check in the logs for each e-mail address which is very very long process for a busy site! I really need this great module to display my nodes in e-mail, but this is making it almost unusable.

Any ideas? Thanks so much,

Adam

#2

coyotegrey - March 7, 2009 - 00:07

It looks like the module overrides the pre-existing header content. In the htmlmail.module file at line 20, change this:

$message['headers'] = array(
    'Content-Type' => 'text/html; charset=UTF-8;',
  );

To this:

$message['headers']['Content-Type'] = 'text/html; charset=UTF-8;';

#3

adshill - March 7, 2009 - 13:51

Works like a dream coyotegrey, Thanks a Lot!! :)

#4

timtrinidad - March 25, 2009 - 18:50

#5

zwirbel - April 11, 2009 - 14:36

Hi,
this is working partly.
The sender is ok, how ever the text is now put in an un named attachment.
This is strange.

Can you help pls

#6

Setzler - April 26, 2009 - 21:03
Priority:critical» normal
Status:duplicate» active

The fix was overwritten by a different release, so this problem is recurring, not a duplicate. However, it isn't critical, so I changed it to normal.

#7

Cayenne - May 1, 2009 - 22:13

Add me to this. Does not happen on ALL servers, but it does happen on the one I care about...
Good news is, the fix does the trick.

Now, can someone roll that into the next code rev?

#8

djinn23 - May 17, 2009 - 20:46

Coyote this fixed my issue thanks!!

#9

mariagwyn - June 1, 2009 - 22:49

Fix works. Can it please be rolled into dev or official? Thanks!

#10

jrglasgow - June 9, 2009 - 17:31
Status:active» needs review

Here is a patch made from the current dev that incorporates the changes listed above that fixed it for me

AttachmentSize
htmlmail-382950.patch 739 bytes

#11

davea - July 2, 2009 - 15:37

subscribe

#12

Matt V. - July 6, 2009 - 19:14

The patch from comment #10 worked for me. Thanks mariagwyn!

#13

Chris Herberte - July 12, 2009 - 22:28
Status:needs review» fixed

#14

System Message - July 26, 2009 - 22:30
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.