Skip to Content Skip to Menu

[SOLVED] HTML confirm email message issues - Solved

  • bizguy
  • bizguy
  • OFFLINE
  • Posts: 197
  • Thanks: 32
  • Karma: 5
2 years 11 months ago - 2 years 11 months ago #327055 by bizguy
I have configured an HTML Pending Email Body as follows:
Code:
<p style="font-size: 42px; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: 400;">Welcome [NAME],</p> <div style="width: 160px; border-top: 5px solid #ed2024; margin-top: -10px;"></div> <p style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 1.5; margin-bottom: 40px;">Thank you for joining the <b>XXXX</b> community, we’re excited to have you be a part of history! In order to complete your registration, please follow the link below to verify your email address and activate your account.</p> <p style="margin-bottom: 40px;"><a href="[CONFIRM]" style=" border-radius: 28px; border: 2px solid #ed2023; color: #ed2023; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 16px; padding: 16px 31px; text-decoration: none;">VERIFY YOUR ACCOUNT</a></p>

The email body I get back is:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-GB" lang="en-GB" dir="ltr"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> </head> <body> <p style="font-size: 42px; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: 400;">Welcome Ed,</p> <div style="width: 160px; border-top: 5px solid #ed2024; margin-top: -10px;"></div> <p style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 1.5; margin-bottom: 40px;">Thank you for joining the <b>XXX Canada </b>community, we're excited to have you be a part of history! In order to complete your registration, please follow the link below to verify your email address and activate your account.</p> <p style="margin-bottom: 40px;"><a href="<br />https://xxxxx.ca/cb-profile/confirm.html?confirmcode=regd417e17625e8b0660e34f7a4dbbc71950ae4b9c4<br />" style=" border-radius: 28px; border: 2px solid #ed2023; color: #ed2023; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 16px; padding: 16px 31px; text-decoration: none;">VERIFY YOUR ACCOUNT</a></p><br /><br />NOTE: This email was automatically generated from XXXX (https://xxxx.ca). </body> </html>

You will notice the <br /> is added before and after the CONFIRM URLs in the email, effectively disabling them.

Thoughts?
Last edit: 2 years 11 months ago by beat. Reason: Added [SOLVED] tag to subject

Please Log in or Create an account to join the conversation.

  • beat
  • beat
  • OFFLINE
  • Posts: 2169
  • Thanks: 463
  • Karma: 352
2 years 11 months ago #327060 by beat
Replied by beat on topic HTML confirm email message issues
Indeed, [CONFIRM] substitution is surrounded by newlines in text mode and <br/>'s in HTML mode.

We can't change that without breaking existing sites' confirmation mails.

But the [confirmlink] substitution has just the link without the newlines.

Works for you ? :)

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info
The following user(s) said Thank You: bizguy

Please Log in or Create an account to join the conversation.

  • bizguy
  • bizguy
  • OFFLINE
  • Posts: 197
  • Thanks: 32
  • Karma: 5
2 years 11 months ago #327063 by bizguy
Replied by bizguy on topic HTML confirm email message issues
Thanks, Beat.

That addressed the issue.

Ed

Please Log in or Create an account to join the conversation.

  • beat
  • beat
  • OFFLINE
  • Posts: 2169
  • Thanks: 463
  • Karma: 352
2 years 11 months ago #327066 by beat
Cool! Thanks for confirming, marking thread as solved.

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum