Is your mail server on the same machine as CF? Check it's running.

It probably has nothing to do with being in a CFC. Create a simple cfm page
to test it.

Adrian

> -----Original Message-----
> From: arya krishnan [mailto:arun.b.shou...@gmail.com]
> Sent: 29 May 2009 19:17
> To: cf-talk
> Subject: cfmail problem in cfc
> 
> 
> Hi All,
> 
> I am able to send mails via cfmail tag in cfm pages but not in cfc. I
> used to send mails from cfc but now it is throwing the below error
> message.Please advice where i am going wrong
> 
> "Error","scheduler-2","05/29/09","06:15:32",,"Could not connect to SMTP
> host: 12
> 7.0.0.1, port: 25;   nested exception is:
> java.net.ConnectException: Conne
> ction refused"
> javax.mail.MessagingException: Could not connect to SMTP host:
> 127.0.0.1, port:
> 25;
>   nested exception is:
>         java.net.ConnectException: Connection refused
>         at
> com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1008)
>         at
> com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:19
> 7)
>         at javax.mail.Service.connect(Service.java:233)
>         at
> coldfusion.mail.MailSpooler.getConnection(MailSpooler.java:908)
>         at coldfusion.mail.MailSpooler.deliver(MailSpooler.java:773)
>         at coldfusion.mail.MailSpooler.sendMail(MailSpooler.java:704)
>         at
> coldfusion.mail.MailSpooler.deliverFast(MailSpooler.java:1028)
>         at coldfusion.mail.MailSpooler.run(MailSpooler.java:938)
>         at coldfusion.scheduling.ThreadPool.run(ThreadPool.java:201)
>         at coldfusion.scheduling.WorkerThread.run(WorkerThread.java:70)


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322996
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to