Skip to main content
Participant
November 20, 2008
Question

CFMAIL not working online

  • November 20, 2008
  • 3 replies
  • 517 views
I'm trying to send the email from my AOL account... it works fine hosted locally... and doesnt when I upload it to my GoDaddy hosted account... Is there some GoDaddy setting I need to use... or if I have to use a GoDaddy created email address... what settings do I use... I'm not much of a programmer... so please explain like ur talking to a 2-year old.

<---THE CODE IS BELOW --->
<CFMAIL FROM="harryleroybrown@aol.com" TO="harryleroybrown@aol.com" SUBJECT="Survey Request Submitted !" server="smtp.aol.com" username="harryleroybrown" password="doctor" PORT="587">
There has been a form submission on your site, here's what they had to say:

Sender name: #form.requesting_company#
Sender email: #form.Requestor_Email_Address#

Address (1st location only): #form.location1_address_street#, #form.location1_address_city#,#form.location1_address_state#
Message Sent: #DateFormat(now(), 'mmmm dd, yyyy')# #TimeFormat(Now(), 'hh:mm:ss tt')#

</CFMAIL>
    This topic has been closed for replies.

    3 replies

    December 1, 2008
    Highly unlikely you are going to be able to do exactly what you want to do.

    1) AOL will probably disallow a connection remotely like this
    2) GoDaddy might not allow a connection out like this
    3) GoDaddy will probably not allow you to send an email out from their servers with an AOL address

    Good idea regarding removing the username, password, server and port. Hopefully you have a godaddy email account attached to your hosting that you can try first. Then try to get more complicated.

    Participating Frequently
    November 20, 2008
    I use GoDaddy for dedicated server and they're very restrictive on SMTP and the only way of sending email is through their own SMTP gateway so i doubt shared hosting would be any different.

    However, CFMAIL will take the mail server settings from the coldfusion administrator so why not try removing your server, port, username,password and seeing if it sends your messages on the godaddy servers. Chances are it will work!

    Inspiring
    November 20, 2008
    you should really check with GoDaddy if they allow sending emails using
    <cfmail> from another domain and what settings you need to use...

    and i hope those were not the real username and password in your code,
    or that you have immediately changed them in the aol account...

    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com/