I'm using the following to send mail to a list. A few problems.

1. One is that the footer does not appear in messages sent to the list when a user sends an HTML message (or perhaps an Outlook "rich text" message).
2. Another is what, if anything, needs/can to be done to handle Outlook's "rich text"?
3. What can be done to improve the mess below?

best, paul

<cfset footer="==========================================================
This message was posted to the #getListID.listname# list
Post your message to the list at: #getListID.listeddress#
You are subscribed as: #getMembers.eddress#
Subscribe/join message to: #getListID.joineddress#
To LEAVE the list, click on the following link:
http://www.SMARTERyellowpages.com/leave/index.cfm/MID.#getMembers.MemberID#.htm
Tell friends about http://www.SMARTERyellowpages.com
==========================================================">
<cfset bbody= odsmime_text & footer>
<cfif LEN(odsmime_text) AND LEN(odsmime_html)>
<cfset bbody= odsmime_text & footer>
<cfx_imsmail smtpto="#getMembers.eddress#"
smtpfrom="#getListID.ListEddress#"
header_to="#getListID.ListEddress#"
header_from="#smtpfrom#"
header_reply_to="#ReplyEEddrreess#"
header_return_path="#getListID.ownereddress#"
header_subject="#form.header_subject#"
attachments="#attfiles2#"
body="#bbody#"
html="#odsmime_html#"
enablewordwrap="no"
>
<cfelseif LEN(odsmime_text)>
<cfset bbody= odsmime_text & footer>
<cfx_imsmail smtpto="#getMembers.eddress#"
smtpfrom="#getListID.ListEddress#"
header_to="#getListID.ListEddress#"
header_from="#smtpfrom#"
header_reply_to="#ReplyEEddrreess#"
header_return_path="#getListID.ownereddress#"
header_subject="#form.header_subject#"
attachments="#attfiles2#"
body="#bbody#"
enablewordwrap="no"
>
<cfelseif LEN(odsmime_html)>
<cfset bbody= footer>
<cfx_imsmail smtpto="#getMembers.eddress#"
smtpfrom="#getListID.ListEddress#"
header_to="#getListID.ListEddress#"
header_from="#smtpfrom#"
header_reply_to="#ReplyEEddrreess#"
header_return_path="#getListID.ownereddress#"
header_subject="#form.header_subject#"
attachments="#attfiles2#"
body="#bbody#"
html="#odsmime_html#"
enablewordwrap="no"
>
<cfelse>
<cfx_imsmail smtpto="#getMembers.eddress#"
smtpfrom="#getListID.ListEddress#"
header_to="#getListID.ListEddress#"
header_from="#smtpfrom#"
header_reply_to="#ReplyEEddrreess#"
header_return_path="#getListID.ownereddress#"
header_subject="#form.header_subject#"
attachments="#attfiles2#"
body="#footer#"
enablewordwrap="no"
>
</cfif>

==^=======================================================
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]
==^=======================================================


Reply via email to