Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember General Questions › Change senders name, email and the body in "lost password" email
- This topic has 10 replies, 4 voices, and was last updated 14 years, 7 months ago by amin007.
-
AuthorPosts
-
March 22, 2010 at 2:18 pm #961Michael OeserMember
Currently when someone requires a new password he gets very short email. Where can I change the “From” and the Body text of the email?
March 22, 2010 at 3:57 pm #19042Michael OeserMemberNever mind. Even if it´s a little bit complicated and it would be great if you could add some interface for that, I was able to manage it.
April 27, 2010 at 3:33 pm #19043HardyArtMemberHi, I have a similar request in eMember = maybe you or someone at TnT could help me out with this one. “Currently when someone requires a new password he gets very short email. Where can I change the “From” and the Body text of the email? “
-Have the sender’s email changed from current WordPress@ to info@
-In addition to the user name: and new password: listing = Have an info message displayed = this message could be;
Here’s your new temporary password. Please login to your account using this password and create a new password from your profile page if you wish.
Do not reply to this email. It was generated automatically by whateverwebsite.com
Thanks for your step by step help!
April 28, 2010 at 12:44 am #19044amin007ParticipantYou can change the from name and address by using the following format in the “From Email Address” field of the “Email Settings” menu:
Jon Doe <jon@example.com>
Jon Doe will be the from name and “jon@example.com” will be the from email address.
I will have to look up the code for the body of the forgot password email… I will get back to you on that one.
April 28, 2010 at 1:32 am #19045HardyArtMemberThanks for looking things up for a response email message inclusion (forgot password email)
As for my sender’s |name <@address>| request mentioned above = I was referring to the (forgot password email) one, not the ones related or shown in the email settings found in the eMember admin panel = so it’s probably something to change in the “emember_password_sender_box.php” file wouldn’t be? The new password email currently shows |Wordpress <wordpress@mysite.com>| it doesn’t grab anything from my email settings admin panel. It is not a complete your registration email, nor a registration complete email = it”s a here’s your new password email.
Thanks for your guidance
April 28, 2010 at 7:37 am #19046amin007ParticipantLook for the following function in the “emember_ajax.php” file:
function wp_emem_send_mail()
You will need to modify the variable “$email_body” to add stuff to the email.
If you want to include the “From Address” in the email then the following line should be changed:
wp_mail($emailId,$email_subject,$email_body);
to the following (this allows you to put the from email address in the mail header):
global $config;
$from_address = $config->getValue('senders_email_address');
$headers = 'From: '.$from_address . "rn";
wp_mail($emailId,$email_subject,$email_body,$headers);April 29, 2010 at 1:12 pm #19047HardyArtMemberThanks for your help = I got the sender’s part resolved. I am now working at the email content part of things with some difficulties. I am either creating an error situation or a freeze at the form box display time when I try to work things out with inserting a string or a print kind of thing within the bloc of code. Here is what I finally came up with = it works but it is not really how it should be I think.
$email_body = “n”.EMEMBER_USERNAME.”: “. $user->user_name .
“n”.EMEMBER_PASSWORD.”: “.$reset_pass.
“n”.EMEMBER_NEW_PASSWORD_MESSAGE.”: “.
You see the last line of code is what I added in order to have an info message display in the response email, but really what I would like to achieve is to have a formatted typical info message (This is your new bla bla, please login to your bla bla) which would include an active link to the site’s connection/login page…
April 29, 2010 at 2:32 pm #19048HardyArtMemberMaybe the solution would be to create a text file and call it up to replace
“n”.EMEMBER_NEW_PASSWORD_MESSAGE.”: “.
I wouldn’t know how to do this really but maybe that would be a great solution.
April 29, 2010 at 10:14 pm #19049HardyArtMemberResolved! I finally got a code to work using;
$someVariable = “.”
And $html
Now I can layout and include as much goodies as I want to the response email.
Thanks for your help along the way!
May 5, 2010 at 1:17 pm #19050nicoolasMemberHi,
I’ve got a little problem wioth the ‘forgot password’ link.
The windows doesn’t appear with the javascript:void(0)
http://www.mecanique-de-la-reussite.com/blog
The java is active on my browser.
I have no idea about this issue ….
Could you help me ?
Thanks,
nicolas
May 5, 2010 at 10:43 pm #19051amin007ParticipantI am pretty sure you have javascript errors on your site which is blocking the forgot password’s javascript to pop up. I will have to take a look on your site to determine the cause. I have sent you an email.
-
AuthorPosts
- You must be logged in to reply to this topic.