ColdFusion Programming/cfmail and google
Expert: Srini - 2/11/2008
QuestionQUESTION: sir, good day, ive been searching on the net in regards to cfmail and using google as my smtp server. i have this code but its not working. can you help me, heres the code:
<cfmail from="my name here" subject="subject_here" username="myusername@gmail.com" port="465" to="someone@domain.com" server="smtp.gmail.com" password="mypassword">
body here
</cfmail>
ANSWER: hi
Try username without @gmail.com
-srini
---------- FOLLOW-UP ----------
QUESTION: thank you very much for a quick reply.
i've tried it (removing the @gmail.com) but it still doesn't work.
i also tried setting the port to port="587" as i have googled but still with no success.
AnswerHi
Further research on CFMail.
Possible only thru CFMail coldfusion version 8.0. Gmail requires TLS connections, this is not supported by CFMail older version.
CFmail Properties for version 8.0.
<cfmail
from = "e-mail address"
to = "comma-delimited list"
bcc = "comma-delimited list"
cc = "comma-delimited list"
charset = "character encoding"
debug = "yes|no"
failto = "e-mail address"
group = "query column"
groupcasesensitive = "yes|no"
mailerid = "header id"
maxrows = "integer"
mimeattach = "path"
password = "string"
port = "integer"
priority = "integer or string priority level"
query = "query name"
replyto = "e-mail address"
server = "SMTP server address"
spoolenable = "yes|no"
startrow = "query row number"
subject = "string"
timeout = "number of seconds"
type = "mime type"
username = "SMTP user ID"
useSSL = "yes|no"
useTLS = "yes|no"
wraptext = "column number">