ColdFusion 8 likes Google Apps

Well at least it likes their mailserver enough to connect to it right out of the box. This will definitely be a /big/ thing for all those that use Google Apps.

Step 1:

Step 2:

<cfmail to="me@mine.com" from="me@myother.com" type="text/html" subject="This will test against gmail">
If this email gets through, it means CF8 can use Google Apps Mailserver as it's mailserver!<br />
Isn't that grand?
</cfmail>
email sent?

Step 3:

Voila!

Comments
Seth Bienek's Gravatar This is great news... Any word on whether CFPOP has gotten the love as well?
# Posted By Seth Bienek | 7/2/07 7:23 AM
Peter J. Farrell's Gravatar BTW, you can also use the use new attribute "useTLS" which takes a boolean in the cfmail tag as well if you don't have access to the admin or only need TLS on certain emails.
# Posted By Peter J. Farrell | 8/26/07 3:47 PM
Ian's Gravatar It worked if I used my gmail account on the mail server but if I used another account (myname@mydomain.com) hosted on google apps, connection verification failed.
# Posted By Ian | 10/17/07 2:22 AM
Dan O'Keefe's Gravatar I was able to get this to work without configuring it in the administrator if I added the port and useSSL arguments to CFMAIL:
<cfmail to="whoever"
      from="myemailname"
      subject="google hosted mail server test"
      server="smtp.gmail.com"
      port="465"
      username="myemailname"
      password="999999"
      useSSL="yes">Did it work</cfmail>
# Posted By Dan O'Keefe | 6/30/08 7:15 PM
BlogCFC was created by Raymond Camden. This blog is running version 5.9.1.001. Contact Blog Owner