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 OeserMember
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.April 27, 2010 at 3:33 pm #19043
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.com
Thanks for your step by step help!April 28, 2010 at 12:44 am #19044
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 <firstname.lastname@example.org>
Jon Doe will be the from name and “email@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 #19045
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 <firstname.lastname@example.org>| 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 guidanceApril 28, 2010 at 7:37 am #19046
Look for the following function in the “emember_ajax.php” file:
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:
to the following (this allows you to put the from email address in the mail header):
$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 #19047
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 .
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 #19048
Maybe the solution would be to create a text file and call it up to replace
I wouldn’t know how to do this really but maybe that would be a great solution.April 29, 2010 at 10:14 pm #19049
Resolved! I finally got a code to work using;
$someVariable = “.”
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 #19050nicoolasMember
I’ve got a little problem wioth the ‘forgot password’ link.
The java is active on my browser.
I have no idea about this issue ….
Could you help me ?
nicolasMay 5, 2010 at 10:43 pm #19051
- You must be logged in to reply to this topic.