thank you for your module.
I manage to send emails with rules, and have simultaneously html and pure txt formats; This scenario works fine.

I would like to add another rule to send a second email only in text format.
How can I manage this ? (ps: i need to keep the first email sent in both formats)

I also tried with the standard "send mail action" but the mail is sent in both HTML and text formats.

Thanks!

CommentFileSizeAuthor
#1 mimemail-1947018-1.patch929 bytessgabe

Comments

sgabe’s picture

Title: how to send pure text email with rules » Allow sending plain text messages with Rules
Version: 7.x-1.0-alpha1 » 7.x-1.x-dev
Component: Documentation » Code
Category: support » feature
Priority: Minor » Normal
Status: Active » Needs review
StatusFileSize
new929 bytes

Currently the HTML body is a required field. The attached patch makes it optional to allow sending plain text messages with Rules. Please test and report back.

sgabe’s picture

Status: Needs review » Fixed

Committed to the development snapshot.

bendev’s picture

Status: Fixed » Needs review

The patch doesn't seem to work.

Anyway I am not sure this is the best approach because this would still send the mail in HTML format with an empty body.
The objective is to send the mail only in pure text format.
Thanks

sgabe’s picture

If you fill out the plain text body, but leave the HTML body empty, the message will be plain text only.

sgabe’s picture

sgabe’s picture

Status: Needs review » Fixed

Anyway I am not sure this is the best approach because this would still send the mail in HTML format with an empty body. The objective is to send the mail only in pure text format.

I can just repeat myself. Setting a plain text body and leaving the HTML body empty, the message will be only plain text and not HTML.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.