linkedin
  • Become a Seller

How do I properly send HTML mail with a plain text alternative from October CMS?

Lakshit Yyy . Oct 16, 2024

A:

To properly send HTML mail with a plain text alternative from October CMS, follow the steps given below:

Open your October CMS backend

Go to Settings > Mail > Mail templates.

Create a new email template with both HTML and plain text content sections.

Use the ‘Mail::send()’ method to send the email, specifying both HTML and plain text views:

Create two views: one for HTML ‘template_html.htm’ and one for plain text ‘template_text.txt’.

Store them in the appropriate plugin folder

/plugins/author/pluginname/views/mail

Ensure the email is sent with both HTML and plain text alternatives by sending it to yourself and checking different email clients.

Oct 16, 2024

Was this helpful? upvote icon 0 downvote icon 0
img

Did not find the question you are looking for?

Get fast answers from real users and our software experts

menlaptop

Have a Question in Mind?

Get answers directly from verified users and our software experts

Software icon representing 20,000+ Software Listed 20,000+ Software Listed

Price tag icon for best price guarantee Best Price Guaranteed

Expert consultation icon Free Expert Consultation

Happy customer icon representing 2 million+ customers 2M+ Happy Customers