Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to send an email using <cfmail>

New Here ,
Jun 22, 2009 Jun 22, 2009

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

624
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Jun 22, 2009 Jun 22, 2009
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources