HTML plans email style

9 months 1 week ago #334638 by krileon
Replied by krileon on topic HTML plans email style
I don't know what to suggest. I've directly copy and pasted your "Email on first activation" into a clean test environment and it's working fine bypassing the linebreak behavior. "Email on first activation" only sends on first subscription to the plan. All subsequent purchases are typically renewals and will be the renewal emails (e.g. so if you're renewing to test you're being sent the renewal email). Are you sure "Email on first activation" is the email not working? Please apply the "<html" or "<!DOCTYPE html" change to your remaining emails and see if this is still happening.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

9 months 1 week ago - 9 months 1 week ago #334639 by Leobici
Replied by Leobici on topic HTML plans email style
I'm testing every time creating a new user account with a Dummy gateway and i'm sure it's the correct email because each email has a different title and the one i'm receiving is the one with the correct code.

I will try to update other emails and test them too

Is it possible that is a conflict with cloudflare (that i'm using and was/is causing other problems on the site)?
I'm not a programmer so it's only a guess

Please Log in to join the conversation.

9 months 1 week ago #334640 by krileon
Replied by krileon on topic HTML plans email style

Is it possible that is a conflict with cloudflare (that i'm using and was/is causing other problems on the site)?

I've no idea, but I've confirmed for sure in my tests that the linebreak processing is being skipped as long as the email starts with the appropriate HTML structure. I guess worst case you can just completely remove the linebreak processing and see if that truly does fix the issue for you.

IN: libraries/CBLib/CB/Legacy/LegacyComprofilerFunctions.php
ON: Line 361
FROM:
$mail->Body = str_replace( $le, '<br />', $mail->Body );
TO:
// $mail->Body = str_replace( $le, '<br />', $mail->Body );


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

9 months 1 week ago #334641 by Leobici
Replied by Leobici on topic HTML plans email style
Hi Krileon,
i just copied the code inside the registration email in CB configuration and this is perfectly sent

So: CB core is working, CB subs is not.
 

Please Log in to join the conversation.

9 months 1 week ago - 9 months 1 week ago #334642 by Leobici
Replied by Leobici on topic HTML plans email style
And now commenting out the code you highlighted, the email was sent correctly (also the activation one).

Can i safely leave the code like this?
If so, it will be fine for me,
thanks a lot for your help

Please Log in to join the conversation.

9 months 1 week ago #334643 by krileon
Replied by krileon on topic HTML plans email style
That's very strange then. That means the <!DOCTYPE html> check isn't working on your install. I suppose it's possible the email is being modified causing that check to fail for some reason. I'm not sure what would be doing it though. Yes, you can leave that code but it will be lost when you update CB. Will review adding additional checks for HTML headers.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.231 seconds

Facebook Twitter LinkedIn