Tips and Tricks HQ Support Portal › Forums › WP eMember › eMember – Subscriber by email sent email as "WordPress" as a sender name
- This topic has 13 replies, 3 voices, and was last updated 10 years, 2 months ago by wzp.
-
AuthorPosts
-
September 7, 2014 at 7:53 pm #11434fareastMember
Hi, I am using third party autoresponder which is arpReach.
eMember working fine with that, subscriber email sent with correct email address.
But, subscriber name appear as “WordPress” instead of correct subscriber’s name.
Kindly help to guide me to correct this kind of error.
Thank you,
Faiz
September 7, 2014 at 8:46 pm #65384wzpModeratorYour autoresponder is expecting the subscriber’s name to be part of the “From” header.
If you feel comfortable, could you please try this little “hack” and see if it works?
1. Please backup, and then edit, the eMember_auto_responder_handler.php file.
2. Search for the eMember_generic_autoresponder_signup() function definition. It’s about 60% down into the file.
3. Look for a line, just after the beginning of the function definition, that says:
$from_address = $emailaddress;//Use customer email address as the from address for this email
4. Replace that line, with the following 3 lines:
$firstname = addslashes($firstname);
$lastname = addslashes($lastname);
$from_address = “$firstname $lastname <“.”$emailaddress”.”>”;//Use customer email address as the from address for this email
Save the file and see if that works.
September 8, 2014 at 4:48 am #65385fareastMemberHi wzp,
Thanks for the workaround.
I’ve made the changes to the function as per recommended, and it looks like below:
function eMember_generic_autoresponder_signup($firstname, $lastname, $emailaddress, $list_email_address) {
eMember_log_debug('Preparing to send signup request email for generic autoresponder integration.', true);
$firstname = addslashes($firstname);
$lastname = addslashes($lastname);
$from_address = "$firstname $lastname <"."$emailaddress".">";//Use customer email address as the from address for this email
But, my autoresponder still got “WordPress” as a subscriber’s name.
September 8, 2014 at 6:18 am #65386fareastMemberI tried to change like this as well:
$from_address = $firstname . ” <” . $emailaddress . “>”;
But no luck.
I just not sure the correct syntax to do that
September 8, 2014 at 3:09 pm #65387wzpModeratorRight after the new line:
$from_address = “$firstname $lastname <“.”$emailaddress”.”>”;//Use customer email address as the from address for this email
Please insert this:
eMember_log_debug(“From: $from_address”, true);
Please run another test, and tell me what the new debug message shows n the log.
September 8, 2014 at 4:49 pm #65388fareastMemberAfter testing, the log shown correct output as per below:
<br />
...<br />
...<br />
[09/08/2014 4:38 PM] - SUCCESS :Preparing to send signup request email for generic autoresponder integration.<br />
[09/08/2014 4:38 PM] - SUCCESS :From: Faiz <xxxxxxx@hotmail.com><br />
...<br />
...<br />But when I checked in the email received in the inbox, the From name still written as “WordPress” instead of “Faiz”. (Last name not appear because I only put first name in the registration form)
September 8, 2014 at 8:20 pm #65389wzpModeratorOk, the WordPress mailer is the culprit. Let’s try something new…
Please try installing the “Easy WP SMTP” plugin:
September 9, 2014 at 3:01 am #65390fareastMemberThanks wzp,
But I can’t use this method since my hosting provider not allowed to use external SMTP server. Too bad. I’ve requested to allow me to use SMTP, but they said, it is their policy not to allow usage of external SMTP.
I tried to use plugin:
WordPress Plugin – Change WP eMail From Details
https://www.tipsandtricks-hq.com/wordpress-plugin-change-wp-email-from-details-1883
But, all my subscriber emails and names changed to my own email and name which I configured in the plugin.
I noticed that, not only this plugin impacted by this WP behaviour. All email sent from wordpress will delivered to recipient mailbox as correct emailfrom address and “WordPress” as a name. For example: WordPress (faiz@mydomain.com)
Is there any way we can overwrite this WP behavior?
For the time being, I need to change my autoresponder list name manually everyday.
September 9, 2014 at 11:52 pm #65391adminKeymasterIt seems like another plugin maybe interfering with the customization you are doing. How does the emails that you receive for other notifications arrive?
Maybe your autoresponder is reading a different value from the email header for the name. Did you ask them if they are reading the name from the “reply to” parameter?
September 10, 2014 at 3:17 am #65392fareastMemberHello Mr Admin,
Yes, I have another plugin, let me call it KS.
But, email sent from KS to any email (gmail, hotmail, yahoo, etc) also shown from name as “WordPress”.
I will contact autoresponder support about how it works and I will update once I get feedback from them.
September 10, 2014 at 4:05 am #65393fareastMemberHi,
I’ve contact my autoresponder support and waiting for their respond.
But, i think that autoresponder just take whatever value from email information.
I am looking at the mailbox which my autoresponder monitor for new incoming subscription as per below (I replaced the original domain value):
xxx.com – my hosting provider
yyy.com – my autoresponder
zzz.com – website which I place the eMember registration form
gmail.com – my email from
</p>
<p>Return-path: <xxx@box858.xxx.com><br />
Envelope-to: yyy@yyy.com<br />
Delivery-date: Mon, 08 Sep 2014 23:16:11 -0600<br />
Received: from localhost ([127.0.0.1]:38910 helo=box858.xxx.com)<br />
by box858.xxx.com with esmtp (Exim 4.82)<br />
(envelope-from <xxx@box858.xxx.com>)<br />
id 1XRDml-0005UJ-Hf<br />
for yyy@yyy.com; Mon, 08 Sep 2014 23:16:11 -0600<br />
To: yyy@yyy.com<br />
Subject: Autoresponder Automatic Sign up email<br />
X-PHP-Originating-Script: 2066:class-phpmailer.php<br />
Date: Tue, 9 Sep 2014 05:16:09 +0000<br />
From: WordPress <testemail@gmail.com><br />
Message-ID: <ea1e9dc4c65bacb36bd584174c5a7454@www.zzz.com><br />
X-Priority: 3<br />
X-Mailer: PHPMailer 5.2.7 (https://github.com/PHPMailer/PHPMailer/)<br />
MIME-Version: 1.0<br />
Content-Type: text/plain; charset=UTF-8<br />
Content-Transfer-Encoding: 8bit<br />
X-Identified-User: {:box858.xxx.com:hostingacc:maindomain.com} {sentby:program running on server}</p>
<p>This is an automatic email that is sent to the autoresponder for user signup purpose</p>
<p>Email: testemail@gmail.com<br />
Name: TestName </p>
<p>September 10, 2014 at 4:17 am #65394fareastMemberSeem like wordpress replaced the name value before email being send.
Say,
AR = Autoresponder
WP = WordPress
User optin –> eMember sent email (correct name value) –> WP replace name value to “WordPress” –> sent email to AR subscription email address using “WordPress” value
Does it make sense?
September 11, 2014 at 7:35 am #65395fareastMemberHi,
Found the work around.
Just realize on my autoresponder have option to
“send messages with this email system”, there are 2 options i.e.:
1) Local Sendmail
2) Local SMTP
Default is using Local Sendmail, problem solved when I changed to Local SMTP option.
Thank you,
Faiz
September 11, 2014 at 6:30 pm #65396wzpModerator -
AuthorPosts
- You must be logged in to reply to this topic.