Emails Sending in HTML Format Instead of Plain Text in Contact Form 7
-
Hello
I’m experiencing an issue with Contact Form 7 where emails are being sent in HTML format, even though I need them to be in plain text. I have included HTML content in the message body, but I would prefer the emails to be sent as plain text.
Also Checked the “Use HTML content type”, but this did not resolve the issue.
Using this code in Message body.
<div>
<p>Dear <strong>[Name]</strong>,</p>
<p>Thank you for reaching out to us regarding the [Service] of your water purifier! We appreciate your trust in <strong>Shapure</strong> products.</p>
<p>We have received your request and will review the details you provided. A member of our team will get back to you shortly to confirm your installation appointment and address any additional questions you may have.</p>
<p>Here’s a summary of the information we received:</p>
<table style="width: 100%; border-collapse: collapse; font-size: 14px;">
<tr>
<td style="padding: 8px; border: 1px solid #ddd; background-color: #f9f9f9;"><strong>Name</strong></td>
<td style="padding: 8px; border: 1px solid #ddd;">[Name]</td>
</tr>
<tr>
<td style="padding: 8px; border: 1px solid #ddd; background-color: #f9f9f9;"><strong>Phone Number</strong></td>
<td style="padding: 8px; border: 1px solid #ddd;">[Phone-Number]</td>
</tr>
<tr>
<td style="padding: 8px; border: 1px solid #ddd; background-color: #f9f9f9;"><strong>Email</strong></td>
<td style="padding: 8px; border: 1px solid #ddd;"><a href="mailto:[Email]" style="color: #4CAF50;">[Email]</a></td>
</tr>
<tr>
<td style="padding: 8px; border: 1px solid #ddd; background-color: #f9f9f9;"><strong>Purchased From</strong></td>
<td style="padding: 8px; border: 1px solid #ddd;">[Store]</td>
</tr>
<tr>
<td style="padding: 8px; border: 1px solid #ddd; background-color: #f9f9f9;"><strong>Order ID</strong></td>
<td style="padding: 8px; border: 1px solid #ddd;">[amazon-order-id] [flipkart-order-id] [shapure-order-id]</td>
</tr>
<tr>
<td style="padding: 8px; border: 1px solid #ddd; background-color: #f9f9f9;"><strong>Service Requested</strong></td>
<td style="padding: 8px; border: 1px solid #ddd;">[Service]</td>
</tr>
<tr>
<tr>
<td style="padding: 8px; border: 1px solid #ddd; background-color: #f9f9f9;"><strong>Address</strong></td>
<td style="padding: 8px; border: 1px solid #ddd;">[Address]</td>
</tr>
<tr>
<td style="padding: 8px; border: 1px solid #ddd; background-color: #f9f9f9;"><strong>City</strong></td>
<td style="padding: 8px; border: 1px solid #ddd;">[City]</td>
</tr>
<tr>
<td style="padding: 8px; border: 1px solid #ddd; background-color: #f9f9f9;"><strong>State</strong></td>
<td style="padding: 8px; border: 1px solid #ddd;">[State]</td>
</tr>
<tr>
<td style="padding: 8px; border: 1px solid #ddd; background-color: #f9f9f9;"><strong>Zip Code</strong></td>
<td style="padding: 8px; border: 1px solid #ddd;">[PinCode]</td>
</tr>
</table>
<p>If you need to make any changes or have further inquiries, please don’t hesitate to contact us at <a href="mailto:[email protected]" style="color: #4CAF50;">[email protected]</a> or call us at <strong><a href="tel:+91" style="color: #4CAF50;">+91 </a></strong>.</p>
<p>Thank you once again for choosing <strong>Shapure</strong>!</p>
<p>Best regards,<br>
Shapure Team<br>
<em>Anand Sha</em></p>
</div>Reciveing this email after submiting the form
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit
<!doctype html>
<html xmlns="https://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">
<head>
<title>Thank You for Your Request of Installation!</title>
</head>
<body>
<div>
<p>Dear <strong>anand kumar</strong>,
</p>
<p>Thank you for reaching out to us regarding the Installation of your water purifier! We appreciate your trust in <strong>Shapure</strong> products.
</p>
<p>We have received your request and will review the details you provided. A member of our team will get back to you shortly to confirm your installation appointment and address any additional questions you may have.
</p>
<p>Here’s a summary of the information we received:
</p>
<table style="width: 100%; border-collapse: collapse; font-size: 14px;">
<tr>
<td style="padding: 8px; border: 1px solid #ddd; background-color: #f9f9f9;">
<p><strong>Name</strong>
</p>
</td>
<td style="padding: 8px; border: 1px solid #ddd;">
<p>anand kumar
</p>
</td>
</tr>
<tr>
<td style="padding: 8px; border: 1px solid #ddd; background-color: #f9f9f9;">
<p><strong>Phone Number</strong>
</p>
</td>
<td style="padding: 8px; border: 1px solid #ddd;">
<p>8802513199
</p>
</td>
</tr>
<tr>
<td style="padding: 8px; border: 1px solid #ddd; background-color: #f9f9f9;">
<p><strong>Email</strong>
</p>
</td>
<td style="padding: 8px; border: 1px solid #ddd;">
<p><a href="mailto:[email protected]" style="color: #4CAF50;">[email protected]</a>
</p>
</td>
</tr>
<tr>
<td style="padding: 8px; border: 1px solid #ddd; background-color: #f9f9f9;">
<p><strong>Purchased From</strong>
</p>
</td>
<td style="padding: 8px; border: 1px solid #ddd;">
<p>Shapure
</p>
</td>
</tr>
<tr>
<td style="padding: 8px; border: 1px solid #ddd; background-color: #f9f9f9;">
<p><strong>Order ID</strong>
</p>
</td>
<td style="padding: 8px; border: 1px solid #ddd;">
<p>dsfsadffsd654654654 65465465465465465465 65465
</p>
</td>
</tr>
<tr>
<td style="padding: 8px; border: 1px solid #ddd;
</div></body>
</html>how i can get the mail in plain text?
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.