I get HTML Tag <br/> in my email!

How do I remove this weird tag
that shows up in the body of the email sent to user, when they register for a subscription:

“Thanks _____! Your account now has access to: $35.00 USD / Monthly

(recurring charge, for ongoing access)”

I’m not sure how to edit that out it comes right after the word “Monthly”. I am not able to show it in this post, maybe because these posts are html formatted !!

@dr62,

That’s the “Description” from you Pro-Form or button shortcode. You can edit it on the Shortcode Generation screen that you used to create the Pro-Form or button.

I switched to text editor in Wordpress, and looked at the short code that generates the registration form, and I don’t see that wierd code in there. I don’t see that weird code in the body of the emails within S2Member.
Any other ideas or suggestions?

Could you copy & paste the shortcode here? Thanks in advance.

Hi Pat,
Do you mean the short code that generates the registration form? The problem is in the EMAIL that’s sent out after you register, I don’t think it has anything to do do with the registration form itself.
I looked at the registration form’s short code, there is nothing unusual there.
That weird code also shows up in Stripe, when it creates a “subscription plan” !

Everything you post on here appears like “Visual Editor” of Wordpress, so even if I paste the short code on here, it won’t show any HTML tags.
Pat I can try to email you the short code, if you don’t mind providing an email address.

@dc62,

Sorry, but I can’t provide an email address on a public forum. How about just copying and pasting the desc= attribute and its value? I’m still pretty sure that’s what is showing up in your email.

ok this is the description and whatever comes immediately after that:

desc="$35.00 USD / Monthly
(recurring charge, for ongoing access)" cc=“USD”

@dc62

So part of the message is coming from the desc= attribute. You called this a “tag” and said HTML was appearing in your email. Are there any HTML tags actually appearing in the email?

There should not be any HTML in the email and in my previous s2Member does not send out HTML emails because WordPress does not send out HTML emails. Are you using any kind of third-party plugin that interacts with the WordPress wp_mail() function?

Another question, is that “_____” a literal quote from the email or is it replaced by the Member’s first name? If it is and there are no actual HTML tags in your email (first paragraph), then this is a normal email. If you want to change the information about what the Member has access to, change the desc= attribute in the shortcode.

The code appears in the body of the email and in recurring subscription plan description, created in Stripe. The code is inside angle brackets <> it’s “br” with a backslash “/” in front of it . I hope you understand what that code looks like.
br/ inside angle brackets <>
it appears right after the word MONTHLY.

I put underscore in the name field, kinda stupid, but I thought maybe I was protecting the user’s identity. There appears the name of the user in the actual email: “Jack”, inside quotation marks, not “_____”.

I’m using Arigato autoresponder, which maybe using wp-mail() function, but I don’t think that is causing a problem with this automated message sent from S2Member.

Explanation is difficult, hope I can show you at least some light… The “/br” you see is because there is your description in the button’s “descr” attribute stay a hidden char “new row”, which the mail software try to turn to “HTML new row”, but the email is not in HTML mode, so <> are not there (or removed after the first format). The solution what @JediShark suggested (me too): remove the “infarct” text. Let your description be like this:

desc="$35.00 USD / Monthly" cc=“USD”

OR

desc="$35.00 USD / Monthly (recurring charge, for ongoing access)" cc=“USD”

@krumch
I’m not sure what the difference was, but I copied and pasted the segment of the shortcode as you provided and it worked !
desc="$35.00 USD / Monthly (recurring charge, for ongoing access)" cc=“USD”

No more weird code in the body of the email, or within Stripe.

Thanks to all of you who helped with this subject.

Difference is hidden, literally :slight_smile: It’s the hidden “new row”.

1 Like

Ok. I think I understand. when I hit “enter” to move the text to the next line, I created that “new row” or “break” code.

I’m glad it’s working now. I try not to change anything inside the shortcode, once it’s been created.
Thanks