Skip to main content
Participant
June 22, 2009
Question

How to send an email using <cfmail>

  • June 22, 2009
  • 1 reply
  • 682 views

Hi All,

I am new to coldfusion 8. I need to send a mail using <cfmail> tag of coldfusion 8. I am trying to do this by following the below code:-

<cfmail

to="bhavishya.soni@nextbrick.com" from="admin.mailinator@gmail.com" subject="Successful Registration" server="smtp.gmail.com"

           username="admin.mailinator@gmail.com" password="TEXT" type="text/html" port="465" charset="utf-8">

        Congratulations! You have successfully Send

</cfmail>

Using the above code, I am getting error as follows inside the "Coldfusion8\logs\mail.log" file.

"Error","scheduler-0","06/22/09","11:50:51",,"Exception reading response"

Anybody help me please, let me know where am i wrong? How can i send the authenticated mail using <cfmail> coldfusion 8. Is there need to set any attribute to send an authenticated mail in coldfusion 8.

I have configured coldfusion 8 with Myeclipse 6.0. I tried to set the useSSL=''true" and useTLS ="true" but these attribute is not being display in my IDE (MyEclipse 6.0).

Please help me.

Thanks in advance.

Regards,

Bhavishya

    This topic has been closed for replies.

    1 reply

    Inspiring
    June 22, 2009

    Bhavishya,

    You will need to use either the useTLS or useSSL attributes, with the correct port for each. Jamie Krug has a good blog post on CF8 and Gmail:

    http://jamiekrug.com/blog/index.cfm/2009/2/13/cfmail-using-Gmail-SMTP

    Don't worry if your IDE doesn't recognize the attributes (they're new to CF8 and might not have made it into the CFEclipse dictionary for syntax checking.