Home › Forums › Stripe Payments Plugin › Email Content Type – HTML
- This topic has 8 replies, 2 voices, and was last updated 3 years, 8 months ago by Admin.
-
AuthorPosts
-
March 1, 2021 at 8:17 pm #3666astral4ikParticipant
So.
email content – HTML
Email Body –<table style=”border-collapse: collapse; width: 700px;” border=”0″>
<tbody>
<tr valign=”top”>
<td style=”width: 50%;”>Transaction id: {transaction_id}
Date: {purchase_date}
Paymend method: {payment_method}
Brand of card: {card_brand}
Last 4 digits of the card: {card_last_4}</td>…
but
when customer recieves an email the code looks like<table style=”border-collapse: collapse; width: 700px;” border=”0″><br />
<tbody><br />
<tr valign=”top”><br />
<td style=”width: 50%;”>Transaction id: ch_1IQD3ALSd6FQVDcms38Eu8xZ<br />
Date: 01.03.2021, 17:48<br />
Paymend method: card<br />
Brand of card: mastercard<br />
Last 4 digits of the card: 2757</td><br />how to remove <br /> from the code?
March 1, 2021 at 11:56 pm #3667AdminKeymasterOur plugin doesn’t add any formatting like that. This is most likely coming from another plugin that is automatically adding the formatting. Do the following test:
Test for Plugin and Theme Conflict Before Posting an Issue or a Bug
After plugin deactivation, re-save the “Email Body” field by removing any unwanted formatting (from the “Text” mode of the editor). Then do a test.
March 2, 2021 at 12:50 am #3669astral4ikParticipanti dont use any mailer addons or prugins.
As i understand, stripe plugin send mail via wp_wail function.
I didnt make any changes in wordpress function.php codeMarch 2, 2021 at 2:29 am #3670astral4ikParticipantand yes.
if i use custom mail plugin, it sends correct mail
BUT, if i use standard mail function, it adds that brake tagsMarch 2, 2021 at 4:06 am #3672AdminKeymasterYes, this plugin executes the email sending code using the standard wp_mail() function.
I just tested the email myself on a site just using our stripe plugin. I don’t see any issue with it. I also don’t see this on any other sites using this same plugin. So something else is interfering on this site. I am not sure what could be interfering though.
March 2, 2021 at 4:25 am #3673AdminKeymasterAlso, if you remove any HTML tags and set the “Buyer Email Content Type” field settings to “Plain Text” email (the default setting), does that email work fine?
March 16, 2021 at 2:57 pm #3725astral4ikParticipantthe only solution is write code not like this
<table style=”border-collapse: collapse; width: 700px;” border=”0″>
<tbody>
<tr valign=”top”>
<td style=”width: 50%;”>Transaction id: {transaction_id}
Date: {purchase_date}
…but like this one
<table style=”border-collapse: collapse; width: 700px;” border=”0″><tbody><tr valign=”top”><td style=”width: 50%;”>Transaction id: {transaction_id}Date: {purchase_date}
March 16, 2021 at 2:59 pm #3726astral4ikParticipantand one more question.
is it possible to export data from ORDERS menu.
March 17, 2021 at 2:03 am #3728AdminKeymasterYou can export all the payments/orders from your Stripe account dashboard. Go to the “Payments” menu in your Stripe account, then use the “export” option there.
-
AuthorPosts
- You must be logged in to reply to this topic.