Simple Membership Plugin › Forums › Simple Membership Plugin › Format email registration
- This topic has 9 replies, 3 voices, and was last updated 10 years, 10 months ago by
dgirona.
-
AuthorPosts
-
June 22, 2015 at 12:17 pm #2125
dgirona
ParticipantThe email that arrives after the registration is not formatted . No <br/> .
Out all text on the same line .
Can someone help me out?
Thank you.
June 23, 2015 at 5:41 am #2132admin
KeymasterThis is likely been caused by a plugin conflict. Please do a plugin conflict test (by deactivating the plugins one by one to see which one is messing up your mail body formatting).
June 23, 2015 at 7:02 am #2133dgirona
ParticipantHello. I disabled all plugins and I have the same problem. Any ideas?
It happens with all email programs and webmails (gmail, hotmail). Thanks.June 24, 2015 at 7:22 am #2139dgirona
ParticipantHelp please!
June 24, 2015 at 10:16 am #2141dgirona
ParticipantThe solution:
In all function wp_mail implement nl2br() & specify headers :
…
$body = $settings->get_value(‘reg-complete-mail-body’);
$body = nl2br($body);
…$headers = ‘From: ‘ . $from_address . “\r\n”;
$headers = “MIME-Version: 1.0\r\n”;
$headers.= “Content-Type: text/plain;charset=utf-8\r\n”;; )
June 25, 2015 at 12:36 am #2145mbrsolution
ModeratorHi did that solution work for you?
June 25, 2015 at 6:43 am #2146dgirona
ParticipantYes, you must use the function:
$body = $settings->get_value(‘reg-complete-mail-body’);
$body = nl2br($body);More info:
http://php.net/manual/es/function.nl2br.php
And it considers specifying the http header:
$headers = ‘From: ‘ . $from_address . “\r\n”;
$headers = “MIME-Version: 1.0\r\n”;
$headers.= “Content-Type: text/plain;charset=utf-8\r\n”;Hopefully this is fixed in future versions.
And the possibility of the mail in HTML format is implemented.I sought a trial version of the plug in membership-form-builder-addon.
https://simple-membership-plugin.com/simple-membership-form-builder-addon/
Someone can tell me how to get it?
Thanks.
June 25, 2015 at 6:52 am #2147mbrsolution
ModeratorHi, thank you for the information. There is no trial version of the Simple Membership Form Builder add-on. If you purchased the add-on from the website you mentioned above then it is an original copy.
June 25, 2015 at 7:00 am #2148dgirona
ParticipantOk, a shame not to try the addon : )
June 26, 2015 at 9:46 am #2163dgirona
ParticipantAs I can access the value of a field user to log in from php?
I want to show additional data in the reservation page to users.
Eg company.
-
AuthorPosts
- You must be logged in to reply to this topic.