Another way to verify the mail server is responding (in CF5 anyway) is to
use the undocumented CFusion_VerifyMail function.  All the usual warnings
when using undocumented features apply here--it may go away, not function,
is not supported, etc.  I wouldn't base production code on it, but it's an
option.  Use it like this:

<CFSET Msg = CFusion_VerifyMail('127.0.0.1',25,60)>

<CFIF Len(Msg)>
        Mail server error! <CFOUTPUT>#Msg#</CFOUTPUT>
<CFELSE>
        Mail server OK
</CFIF>

Chris Lofback
Sr. Web Developer

TRX Integration
28051 US 19 N., Ste. C
Clearwater, FL  33761
www.trxi.com


> -----Original Message-----
> From: Bosky, Dave [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 04, 2002 1:24 PM
> To: CF-Talk
> Subject: cfmail verification
> 
> 
> When using CFMAIL to send mail to folks is there anyway to 
> verify cfmail
> actually set the email or at least verify the mail server 
> setup in cfadmin
> is functioning properly?
> 
> Dave
> 
> 
> HTC Disclaimer:  The information contained in this message 
> may be privileged and confidential and protected from 
> disclosure. If the reader of this message is not the intended 
> recipient, or an employee or agent responsible for delivering 
> this message to the intended recipient, you are hereby 
> notified that any dissemination, distribution or copying of 
> this communication is strictly prohibited.  If you have 
> received this communication in error, please notify us 
> immediately by replying to the message and deleting it from 
> your computer.  Thank you.
> 
______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
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

Reply via email to