Skip to main content
January 24, 2009
Question

Forms sends...but no email received!

  • January 24, 2009
  • 4 replies
  • 433 views
When I submit the page containing this code I get a success message, but never receive the email. Can anyone point me in the right direction? Thanks!
    This topic has been closed for replies.

    4 replies

    Participating Frequently
    January 26, 2009
    Whoops, missed that. Regarding the last two posts:

    If the mailserver you're specifying doesn't allow you to relay through it then you'll need to supply a username/password, or set the server to allow relay. I'm certain comcast won't allow relay, so you must provide the SMTP user/pass to go through that server. Come to think of it...I'm not even sure that will work as Comcast may have that blocked in some manner. Can you have the CF server send on it's own, i.e. specify 127.0.0.1 as the mailserver and see what happens? Or does your host have a mailserver you can relay through?

    The other post was good too - make sure logging is enabled and see what the logs say.
    Inspiring
    January 26, 2009
    > <cfmail to="#toaddress#" from="web_contact_form@site.com" subject="#subject#"
    > server="mail.comcast.net">

    Has this sever been set to allow your CF server to relay email from it? Do
    you need to authenticate to it to be able to send?

    Have you switched mail logging on in CF, and is anything being logged?

    Are emails accumluating in CF's undeliverable mail directory?

    Is the mail server logging anything?

    --
    Adam
    Inspiring
    January 26, 2009
    Your Server info is incomplete.
    The format should be like this;
    SERVER="address@domain.com:password@OUTGOINGSMTP.DOMAIN.com"

    Of course you'll have to populate those values, for example;
    SERVER="bob@bobswebsite.com:lumpy112@mail.bobswebsite.com"

    So, although you have named the server (server="mail.comcast.net") you don't give all the account details for the cfmail server to access and utilize that account to send via.

    Good Luck
    Participating Frequently
    January 24, 2009
    Check the CF logs to see what they say about the message, and/or check the spool and undeliverable folders to see if your messages are stuck in limbo. You can also use the failto parameter of cfmail

    failto = "fail_message_addr"

    to send a message to an alternate address if it fails; though if there's something wrong with sending messages in general via CF on your server that won't be especially helpful.