Hi,
crabtree almost knows FormMail better than I do!
I've checked his replies and they all make sense (but might not be correct, see below).
This definitely isn't a bug, but it might not be a feature that currently exists.
The area of "HTML vs Plain templates and what gets attached and what doesn't" is complex.
It's evolved over time and the implementation is really "what most people want". And, in this case, it really means "what most people who use our FormMailEncoder (encryption product) want".
In other words, we've implemented the default combination of these features so that if you're using:FormMail will:
- a PlainTemplate, plus,
- an HTMLTemplate, plus,
- a filter,
- and you've specified to attach the filtered results,
From what I've read, you haven't specified a PlainTemplate. So, I'm not sure just at this minute exactly what FormMail is going to do.
- put the HTML (expanded template) in the body of the email
- expand the Plain Template
- filter the expanded Plain Template
- attach the filtered output.
From your description, you're getting plain text (without a template) attached, and the expanded HTML template in the email body.
That kind of makes sense given the defaults I've specified above.
Like crabtree, I'm going to have to run some tests to figure out if it's possible to achieve what you want.
My current guess is no.(but see below for a last-second idea!)
We've known for some time that this is such a complicated thing when you start piling on the features specified in your form.
And, we've been thinking about how to make it more flexible.
In your case, you want to say:crabtree suggested using our "null" filter to achieve this, but that's not working.
- put plain text in the body (if any)
- put HTML in an attachment
So, we need to come up with a way for your form to specify this to FormMail.
I've just had an idea.....
Leave everything unchanged, except replace "HTMLTemplate=" in your "mail_options" field with "PlainTemplate=".
So, you're going to lie to FormMail and tell it the HTML template you have is really a plain text template.
It shouldn't make much difference to the processing, but it might just make the HTML get attached.
If that doesn't work, then I think you'll have to wait until we add a new feature for explicitly controlling what goes where.
BTW, the other option is additional PHP code hooked into FormMail. But that's a fair amount of work.


Reply With Quote
(but see below for a last-second idea!)

Bookmarks