Hi,
One of my CF pages sends emails.
Sometimes emails are sent, sometimes no function.
Some one gave me the answer to this problem:
"In regards to the email forms, it appears that they are failing
due to the use of stray bare line feeds ("LF") in the messages being sent.
This violates mail protocols which insist on end-of-line characters
using a carriage-return followed by a line feed (CR\LF).
Fixing your code to ensure that generated email uses the above character
pairing
on all message line endings will ensure all messages are sent correctly
(the mailserver and CFMAIL services will only send what is sent to them and
no
adjustments will be made (by design of the services). "
But all carriage-return and line breaks have been replaced in my code:
<cfset email_body="trim(form.email_body)">
<cfset email_body="#ReplaceNoCase(email_body,chr(13),'<br>','all')#'>
<cfset email_body="#ReplaceNoCase(email_body,chr(10),'<p>','all')#'>
<cfmail to="#form.email#" from="hello<[EMAIL PROTECTED]>"
subject="Thanks">
#email_body#
</cfmail>
Can any one help?
Thank you.
Ins
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists