murp

cfmail setup for Google

Nov 11th, 2014
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <cfset mailAttributes = {
  2. server="smtp.gmail.com",
  3. username="el.barto@gmail.com",
  4. password="eatmyshorts",
  5. from="el.barto@gmail.com",
  6. to="homer@thesimpsons.com",
  7. subject="Eat my shorts, man!"
  8. }
  9. />
  10.  
  11. <cfmail port="465" useSSL="true"
  12. attributeCollection="#mailAttributes#"
  13. >port 465, SSL enabled</cfmail>
  14.  
  15. <cfmail port="587" useTLS="true"
  16. attributeCollection="#mailAttributes#"
  17. >port 587, TLS enabled</cfmail>
  18.  
  19. <cfmail port="465" useSSL="true" useTLS="true"
  20. attributeCollection="#mailAttributes#"
  21. >port 465, SSL and TLS enabled</cfmail>
Add Comment
Please, Sign In to add comment