Solved

Cfmail not working

Posted on 2000-04-07
6
254 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

919 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

16 Experts available now in Live!

Get 1:1 Help Now