Solved

Cfmail not working

Posted on 2000-04-07
6
253 Views
Last Modified: 2013-12-24
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.

0
Comment
Question by:seahpc
6 Comments
 
LVL 2

Expert Comment

by:dlewis9
ID: 2695487
Things to check:

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...
0
 
LVL 5

Expert Comment

by:nathans
ID: 2695533

Test this first:
======================    
<CFMAIL TO="seahpc@iProperty.com.sg"
                  
            FROM="seahpc@iProperty.com.sg"
            SUBJECT="Testing"
SERVER="myhome.mailserver.com.sg">
Test Email
</CFMAIL>

======================    

If the above code works then try this
======================    
<CFMAIL TO="#Email#"
            query="GetAgency"
                   FROM="seahpc@iProperty.com.sg"
            SUBJECT="Testing"
SERVER="myhome.mailserver.com.sg">
            #Msg#
</CFMAIL>    
======================    
0
 

Expert Comment

by:sbouli
ID: 2698849
delete the " around your variable
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 

Expert Comment

by:manonng
ID: 2700865
hi
   will there be the username and password attributes in CFMAIL to able to received mail?


manon
0
 

Accepted Solution

by:
lcj earned 100 total points
ID: 2707147
I will double check on the email server setting in your CF Administrator option.

0
 
LVL 1

Expert Comment

by:GGena
ID: 2710194
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?
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now