Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Cfmail not working

Posted on 2000-04-07
6
Medium Priority
?
268 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Understanding Web Applications

Without even knowing it, most of us are using web applications on a daily basis. Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We often confuse these web applications tools for websites.  So, what is the difference?

 

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 200 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

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…
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

604 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