Thanks, Max, you're a prince! Worked like a charm. Happy Holidays!
best, paul At 07:44 PM 12/23/02 -0500, you wrote:
At 12/23/2002 04:04 PM -0800, paul smith wrote:==^=======================================================
>Anyone on the list like to share how they handle using CFX_iMSMail to send mail to a list and address messages sent to the list in plain TEXT as well as messages sent to the list in HTML?
>>> How do I send such message with CFX_iMSMail? Test for non-zero-lenght
>>> ODSMIME_HTML and send a HTML message?
>>>
That's basically what I do, yes. In my list server I use one CFX tag call which gets both BODY and HTML attributes, which are passed on from the original after being decoded by odsMime tag. I decode, accept/reject, rebuild the message (including HTML if any), then send on any remaining parts. Provided a given list allows attachments, this part filters out the HTML-version attachment, if any:
[attachments query output loop]
if ( NOT REFind("HTML Format", qryMailAttachments.FileName) ) {
// handle attachment here
}
[/attachments query output loop]
In other words, ignore any attachment named "HTML Format" which is really the HTML portion of the email.
I think I had to modify the imsMail tag to not send the message with a multipart/mixed content type if the HTML attribute was blank (same for attachments I think). I don't know how the current version of the tag behaves (I really need to upgrade one of these days). Of course one can always use separate calls to the imsMail tag depending on if HTML/attachments are present or not (I hate having to repeat code tho).
HTH,
-Max
This list server is Powered by iMS
"The Swiss Army Knife of Mail Servers"
--------------------------------------
To leave this list please complete the form at http://www.coolfusion.com/iMSSupport.cfm
Need an iMS Developer license? Sign up for a free license here:
http://www.coolfusion.com/iMSDevelopers.cfm
List archives: http://www.mail-archive.com/infusion-email%40eoscape.com/
Note: You are subscribed as [email protected]
==^=======================================================
