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?
Change senders name, email and the body in "lost password" email
(11 posts) (4 voices)-
Posted 1 year ago #
-
Never 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.
Posted 1 year ago # -
Hi, 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.comThanks for your step by step help!
Posted 1 year ago # -
You 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.
Posted 1 year ago # -
Thanks 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
Posted 1 year ago # -
Look 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 . "\r\n"; wp_mail($emailId,$email_subject,$email_body,$headers);Posted 1 year ago # -
Thanks 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...Posted 1 year ago # -
Maybe 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.Posted 1 year ago # -
Resolved! 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!Posted 1 year ago # -
Hi,
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
Posted 1 year ago #
Reply »
You must log in to post.