According to 
http://mail.google.com/support/bin/answer.py?hl=en&answer=13287 
<http://mail.google.com/support/bin/answer.py?hl=en&answer=13287> gmail 
requires either SSL or TLS to send email from a client

I tried your code, but added the following and it worked:
    port="465"
    useSSL="true"

I haven't tried it, but if you want to use TLS instead of  SSL, you can do
    port="587"
    useTLS="true"


TechInfo wrote:
> Did you try putting ALL the attributes into the attributeCollection?  
> Even the "port" and "useSSL" ??  I just read that it is an "all or 
> nothing" collection.
>
> Jevo
>
> Matthew Smith wrote:
>   
>> I posted earlier about using cfmail with google hosted mail.  I was told it 
>> would require cf8.  We ended up upgrading the account to cf8, but I still 
>> can't get it to work.  Here is what I have.  The page runs without error, I 
>> just don't ever receive the test mail:
>>
>> <cfset mailAttributes = {
>> server="smtp.gmail.com",
>> username="webs...@website.com",
>> password="password",
>> from="webs...@website.com",
>> to="rece...@gmail.com",
>> subject="Eat my shorts"
>> }
>> />
>>
>> <cfmail port="465" useSSL="true"
>> attributeCollection="#mailAttributes#"
>>   
>>     
>>> port 465, SSL enabled</cfmail>
>>>     
>>>       
>> <cfmail port="587" useTLS="true"
>> attributeCollection="#mailAttributes#"
>>   
>>     
>>> port 587, TLS enabled</cfmail>
>>>     
>>>       
>> <cfmail port="465" useSSL="true" useTLS="true"
>> attributeCollection="#mailAttributes#"
>>   
>>     
>>> port 465, SSL and TLS enabled</cfmail>
>>>     
>>>       
>>
>>     
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:330253
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