SMF Support > SMF 2.0.x Support
From address on member to member emails
harnser:
Hi. Sorry, I have searched, but I can't seem to find an answer to my problem I have with my SMF forum...
When a member sends and email (not a pm) to another member via the envelope icon on memberslist, the From address on the email is set to "member's email address" <Webmaster Email Address> and consequently all replies are being delivered to admin rather than to the member as desired! What do I need to change to correct the From address on the initial email? Thank you!
Chas Large:
This should not happen, the from e-mail address should be the sending member's address.
If you as admin send an e-mail to yourself, does it have your or the forum "webmaster" e-mail address?
Do you use phpmail or SMTP?
Do you have any mods installed which may affect e-mail addresses?
harnser:
Chas thanks for your reply.
The Webmaster and admin email addresses are both the same - web@mydomain. I'm also a regular member of the forum, and if I send myself an email logged in this way, I can replicate the problem.
The mail type is currently set to '(PHP default)', so I guess I'm using phpmail?
I don't think I have any mods that might be causing the problem. I have the following installed:
1. SMF 2.0.2 Update 1.0 [ Uninstall ]
2. Downloads System 1.4.1 [ Uninstall ]
3. Send Locked Topics To Bottom 1.0 [ Uninstall ]
4. SMF 2.0.1 Update 1.0 [ Uninstall ]
5. InLine Attachments 1.11 [ Uninstall ]
6. Alternate User Posting 1.0.1 [ Uninstall ]
7. SMF Gallery Lite 3.1.1 [ Uninstall ]
8. Custom Fields On Memberlist 1.0 [ Uninstall ]
Oldiesmann:
It should be setting the Reply-To address to the address of the member who sent the email. It does set the "from" address to that of the webmaster though. However, mail clients should respect the reply-to header, so either users are starting new emails and sending them directly to the address the original message was sent from, or they're using email clients which don't respect standards.
This change should make it set the from address to the other user's address though.
Sources/Subs-Post.php
Find
--- Code: --- $headers = 'From: "' . $from_name . '" <' . (empty($modSettings['mail_from']) ? $webmaster_email : $modSettings['mail_from']) . '>' . $line_break;
--- End code ---
Replace
--- Code: --- $headers = 'From: "' . $from_name . '" <' . (!empty($from) ? $from : empty($modSettings['mail_from']) ? $webmaster_email : $modSettings['mail_from']) . '>' . $line_break;
--- End code ---
referee77:
Hi,
I am having a similar issue (or maybe the same).
When a member sends an email to another member through SMF, the recipient sees the following in the email:
-----Original Message-----
From: member1@myemail.com [mailto:webmaster@myemail.com]
Sent: February-08-12 11:46 AM
To: member2@myemail.com
Subject: Test
This is a test email from the "box" on the forum!
------------------------------------------
Notice how the member1@myemail.com is then re-coded as webmaster@myemail.com
How can I fix that so that the member's proper email shows on the email that is sent?
Navigation
[0] Message Index
[#] Next page
Go to full version