Closed (fixed)
Project:
Mass Contact
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
11 Sep 2009 at 08:03 UTC
Updated:
5 Dec 2012 at 14:30 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Wolfgang Reszel commentedIn 6.x you could change the code to the following:
The last line is added.
Comment #2
Wolfgang Reszel commentedI think something like that should be added to the module. Or is there any reason not to do that?
Comment #3
mrtoner commentedPerhaps this will do it...
Comment #4
josh@pixael.com commentedthanks i'll try
Comment #5
sapox commented#3 Seems to work quite OK for me.
Comment #6
oadaeh commentedThere is a known problem on Windows servers with sending e-mail addresses the form of "First Last ". I will create another setting that allows the administrator to decide whether to include it or not and then just make it so.
Comment #7
oadaeh commentedMarked #1027378: User's "From" showing name and email? as a duplicate of this.
Comment #8
carteriii commentedI've been running a variant of this for quite some time with no problem and it would be nice to see it merged in to the released code. Of course I mention this now because I just had to merge in my changes to the newly released version :=)
For what it's worth, I took the approach of adding a new variable, $from_name_and_email to make sure the meaning was clear:
Line 1328: $from_name_and_email = (!empty($from_name) ? '"' . $from_name . '" <' . $from_email . '>' : $from_email);Then further below I modified all the calls to drupal_mail() or _mass_contact_mail() to use $from_name_and_email rather than simply $from_email.
Perhaps this could even be implemented as a preference such that someone could disable it if the "Name " format caused problems???
Comment #9
Anonymous (not verified) commentedHi !
Here is my solution :
If Mime Mail is used, the following patch enables the from_name field. It should be inserted at line 473, just before the call to _mass_contact_prepare_bodies.
Comment #10
oadaeh commented@zigazou: That is not a patch, it's a code snippet. A patch is what is atached to comment #3. I can save that file that has the necessary control structure for automatically inserting the code into the existing file w/o me having to find the location in the file and copy and paste. Please read the page about patches I sent you in #1795322-1: User loses track of the selected categories if the module is configured to not include the category in the subject.
Comment #11
oadaeh commentedI've included a fix for this in the 7.x-1.x-dev branch, here: http://drupalcode.org/project/mass_contact.git/commit/189d4fb
Let me know if it works for you or not.
Comment #12
oadaeh commentedI've included a fix for this in the 6.x-1.x-dev branch, here: http://drupalcode.org/project/mass_contact.git/commit/fd5b810
Let me know if that one works for you or not.
Comment #13
oadaeh commentedI should have said that in order to make this happen, I added an two administration items, disabeled by default, to allow the users' names (login IDs for the recipients) to be used in the from or to fields.
The settings are are in the "Include names with email addresses" fieldset on the "Message header" settings page.
For Drupal 6, that page is here: admin/build/mass_contact/settings/header
For Drupal 7, that page is here: admin/config/system/mass_contact/settings/header