seahpc
asked on
Cfmail not working
Hi,
I try uses the cfmail to send out mail
but i can't seems to receive it.
The codes is
<CFMAIL TO="#GetAgency.Email#"
FROM="seahpc@iProperty.com .sg"
SUBJECT="Testing"
SERVER="myhome.mailserver. com.sg">
#Msg#
</CFMAIL>
The #GetAgency.EMail# is the Email address I retrieve from a query (GetAgency)
#Msg# is a formatted message.
Any idea/reason why I cannot receive mail ? my server is correct.
I try uses the cfmail to send out mail
but i can't seems to receive it.
The codes is
<CFMAIL TO="#GetAgency.Email#"
FROM="seahpc@iProperty.com
SUBJECT="Testing"
SERVER="myhome.mailserver.
#Msg#
</CFMAIL>
The #GetAgency.EMail# is the Email address I retrieve from a query (GetAgency)
#Msg# is a formatted message.
Any idea/reason why I cannot receive mail ? my server is correct.
Test this first:
======================
<CFMAIL TO="seahpc@iProperty.com.s
FROM="seahpc@iProperty.com
SUBJECT="Testing"
SERVER="myhome.mailserver.
Test Email
</CFMAIL>
======================
If the above code works then try this
======================
<CFMAIL TO="#Email#"
query="GetAgency"
FROM="seahpc@iProperty.com
SUBJECT="Testing"
SERVER="myhome.mailserver.
#Msg#
</CFMAIL>
======================
delete the " around your variable
hi
will there be the username and password attributes in CFMAIL to able to received mail?
manon
will there be the username and password attributes in CFMAIL to able to received mail?
manon
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
We had very similar problem. The solution was in right DNS setup of mail-server. You should be careful exactely about "back" DNS address. It is quiete often error in setup of DNS: everything looks like working, but in some situation doesn't.
PS I saw someone has published URL with differencies ASP and CF. Couldn't you send me it to gena@amaze.net.au?
PS I saw someone has published URL with differencies ASP and CF. Couldn't you send me it to gena@amaze.net.au?
Cold Fusion Administrator Settings -- try putting the server address in there and use the test mail option..
Error log -- there should be a log file in the mail directory...you may need to enable logging in the CF administrator.
Spool directory -- there's a spool directory that the messages are placed in before they are sent..might check to see if there's anything in there...there is also a "undeliverable" folder for ones that cannot be sent for some reason..
If you're not getting an error when you run the page, then there must be an error elsewhere..
hope one of those helps..if you have the server name set up in the administrator, you don't have to specify it on the CFMAIL tag..
the code looks good to me...