Solved

Cfmail not working

Posted on 2000-04-07
6
255 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
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
file too large for website 6 69
setup wamp server for first time 2 68
DNS @ Naked Domain Record 5 83
How to install a renewed SSL certificate on Windows 2012 server 7 71
In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

785 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