• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Payments Plugin for Stripe

Stripe payment plugins for your WordPress site

  • Home
  • Documentation
  • Addons
  • Login
    • Sign In
    • Edit Profile
    • Terms & Conditions
    • My Downloads
    • License Key
  • Support
    • Support Forum
    • Forum Search
    • Forum Login
    • Forum Registration
    • Email Support for Customers
  • Contact Us
  • Show Search
Hide Search
You are here: Home / Topics / Email Content Type – HTML

[Resolved] Email Content Type – HTML

· ·

Home › Forums › Stripe Payments Plugin › Email Content Type – HTML

  • This topic has 8 replies, 2 voices, and was last updated 4 years, 2 months ago by Admin.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • March 1, 2021 at 8:17 pm #3666
    astral4ik
    Participant

    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 #3667
    Admin
    Keymaster

    Our 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 #3669
    astral4ik
    Participant

    i 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 code

    March 2, 2021 at 2:29 am #3670
    astral4ik
    Participant

    and yes.
    if i use custom mail plugin, it sends correct mail
    BUT, if i use standard mail function, it adds that brake tags

    March 2, 2021 at 4:06 am #3672
    Admin
    Keymaster

    Yes, 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 #3673
    Admin
    Keymaster

    Also, 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 #3725
    astral4ik
    Participant

    the 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 #3726
    astral4ik
    Participant

    and one more question.

    is it possible to export data from ORDERS menu.

    March 17, 2021 at 2:03 am #3728
    Admin
    Keymaster

    You 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.

  • Author
    Posts
Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.
Log In

Primary Sidebar

Featured Addons and Extensions

  • Subscription Payments Addon
  • Additional Custom Fields
  • Secure Downloads Addon
  • Apple Pay, Google Pay, Afterpay

Addon Bundle

Stripe Payments Addon Bundle

A Simple & Lightweight Plugin

Our Philosophy with the Plugin

Support Links

  • Support Forum
  • Support Contact

Search

Copyright © 2025 | Stripe Plugins | A member of the Tips and Tricks HQ family.