Question

Coldfusion mail not sending

Asked by: andrewaiello

Hey all,
 
     I recently setup the galleon message boards on my coldfusion server (
http://galleon.riaforge.org/) and everything seems to work except when it sends e-mails to users.  I have IIS 5.1 set up on my windows XP machine and i think everything is configured properly.  It doesn't throw up any errors; mail just doesn't get sent at all.  Can someone help me figure this out?  Thank you.

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2007-07-23 at 21:46:37ID22716176
Tags

coldfusion

,

mail

Topics

ColdFusion Application Server

,

Email Software

Participating Experts
1
Points
500
Comments
33

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Firewire Boards
    Does anyone know of a UK supplier of a 'Firewire-type' board that I can use with a Pentium II to download from a JVC DL900.
  2. Message Board...
    Hello, How can i create a Message board page w/o using CGI & perl???....Can i use JavaScript??...If can, please provide me a sample code. Thnkx T.N
  3. Hey Road Warrior!
    Thanks for the help! I have another problem with my PCChips Mainboard M590 I had 96 megs of SDRAM in my computer and I took out 32 and added 128 and when I did it slowed way down. I can use the 128 by it self and that works but, I would like to have 194 megs thats why I bough...
  4. throw ()
    Does throw () need to be added to both the declaration in the header file and the definition in the implementation file, or just one (which one)?

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: SBennettPosted on 2007-07-24 at 08:26:07ID: 19557020

are the mail messages getting put into the c:\cfusionmx7\mail\underlivr\ folder or are they actually being successfully sent to the SMTP server and getting stuck there?

If they getting stuck in the undelivr folder then you should be able to look a the coldfusion mail log (c:\cfusionmx7\logs\mail.log) to get the error messages.

If they are not getting stuck in the undelivr folder then you should check the logs on your SMTP server.

 

by: andrewaielloPosted on 2007-07-24 at 21:45:15ID: 19562737

They are getting stuck in the coldfusion undelivered folder.  I checked the logs and am getting errors like:

"Error","web-3","07/23/07","00:53:22",,"Mail: 'Forums Confirmation Required' From: 'forum@localhost' was missing server information."

"Error","scheduler-2","07/23/07","01:14:56",,"Could not connect to SMTP host: 127.0.0.1, port: 25;   nested exception is:       java.net.ConnectException: Connection refused: connect"

and then when I enabled relaying (as someone requested) I get stuff like:

"Error","scheduler-1","07/23/07","01:45:42",,"Invalid Addresses;   nested exception is:       class javax.mail.SendFailedException: 550 5.7.1 Unable to relay for test@excite.com "


Any thoughts on how to approach this?  Thanks

 

by: SBennettPosted on 2007-07-25 at 08:55:07ID: 19566727

do you have your mail settings configured properly in coldfusion administrator?

Make sure the ip matches the ip on your SMTP service.
Make sure the port is the correct port.
Assuming you have a recent version of CF you should not have to have an open relay (in fact I would recomend never having an open relay unless you are specifically allowing only certain ip's to relay messages), just enter the username and password in the mail server settings like "user:password@127.0.0.1"
check the "Verify mail server connection" box and hit "submit changes" to make sure CF can connect to the SMTP server.


 

by: andrewaielloPosted on 2007-07-25 at 09:15:44ID: 19566952

Okay I'll check that when I go home; but I do remember that when i set it up the coldfusion verify mail check did say "OK"

 

by: SBennettPosted on 2007-07-25 at 09:29:30ID: 19567123

It is possible for it to say OK but not really work. The verification does not actually attempt to send an email it just establishes and SMTP connection to verify the server can be contacted. In your SMTP servers relay settings you should be able to allow/whitelist a list of trusted IP's so I would make sure that 127.0.0.1 is on that list.

 

by: andrewaielloPosted on 2007-07-26 at 07:10:29ID: 19574582

Okay, the IP in the coldfusion mail config was different from the IP in the SMTP config so i changed it.  (it was 192.168.1.33 for the SMTP, and 127.0.0.1 for the coldfusion, now they are both 192.168.1.33)  I know these refer to the same computer but i figured i'd make it exactly the same anyway; both of the ports are 25.  This still did not work though; but I noticed that this time the mail didnt appear in the coldfusion undelivered folder (at least not after i gave it a few minutes).   What do you think my next step should be?  Thanks.

 

by: SBennettPosted on 2007-07-26 at 08:42:40ID: 19575529

Ok now you will want to check the configuration of your SMTP service.

Check this by load Internet Information Services Manager
Right click SMTP Server, choose properties
Choose the Delivery Tab
Click Advanced

Do you have a Smart host set?

If you do then the SMTP server cannot find the Smart Host to deliver the messages to.
If you dont then you probably have a DNS resolution problem or a firewall issue

Here is a brief descriptioin of the two options for delivery of mail:

Smart Host
This setting tells the server to send all mail to another SMTP server.  So if you have an email account with your ISP then they generally give you an SMTP Address for you to send mail to, you could use this address for the Smart Host, in which case all outbound mail gets sent to that server for delivery onwards.

Direct Delivery
With this option your SMTP server delivers mail directly to the SMTP Server resposible for the domain the mail message is getting sent to.  What it does is looks up who is the responsible mail server for the domain and sends the mail to that server.

Try the following articles:
HOW TO: Configure the SMTP Virtual Server for Message Delivery
http://support.microsoft.com/default.aspx?scid=kb;en-us;303734&Product=iis50

HOW TO: Test the Windows 2000 SMTP Service Outbound Mailflow Without Using DNS
http://support.microsoft.com/default.aspx?scid=kb;en-us;297988

 

by: andrewaielloPosted on 2007-07-26 at 09:03:02ID: 19575747

Okay I will check that when I go home.    I just wiped this computer and am reinstalling everything from scratch; and i just downloaded the ISS and installed it; so i am figuring that I do not have a smart host set up.  

 

by: andrewaielloPosted on 2007-07-26 at 15:04:19ID: 19578733

If i don't have a smarthost set up should I try to set one up using the second link you posted?  Also, you mentioned possible firewall issues... do I have to punch a hole in my router and firewall for port 25?  Thanks.

 

by: SBennettPosted on 2007-07-26 at 15:13:57ID: 19578788

you will have to make sure your firewall is allowing it, and also (since this seems to be a home internet connection), You may want to check with your ISP and make sure they are allowing port 25 traffic through your internet connection. Many ISP's will block SMTP traffic on home internet connections to prevent spam.

 

by: andrewaielloPosted on 2007-07-26 at 20:52:01ID: 19580153

Okay, I checked and there is NO smart host set up.  When I hit the check DNS button in that panel; it checks out okay (domain name is valid).  I punched a port hole in my firewall and my router for port 25, but it still doesn't work. And again, strangely I am not seeing the mail go to he undelivered folder.  Thanks.  

 

by: SBennettPosted on 2007-07-27 at 14:20:26ID: 19582459

Have you tried setting up the smart host option? and have you contacted your Internet service provider to see if maybe they are blocking the SMTP traffic?

 

by: andrewaielloPosted on 2007-07-27 at 14:26:55ID: 19582504

I think I have optimum online; I'll give them a call when I go home.  Can i avoid the need for this if I setup a smarthost?  If so, how do I go about setting that up; do I need some other server or something (I don't know much about this stuff)?

 

by: SBennettPosted on 2007-07-27 at 14:42:57ID: 19582612

if you use smart host then you will need access to an smtp account on another server.

 

by: andrewaielloPosted on 2007-07-27 at 16:45:19ID: 19583069

Are there any free services that have this sort of thing (aol, gmail, etc)?

 

by: andrewaielloPosted on 2007-07-27 at 18:04:25ID: 19583247

I get the sneaking feeling that i may not be understanding the concept properly... if so I apologize for my idiocy.

 

by: SBennettPosted on 2007-07-31 at 13:24:07ID: 19603889

perhaps you should read through this 5 page tutorial on SMTP and IIS

http://www.windowsitlibrary.com/Content/141/09/1.html

 

by: andrewaielloPosted on 2007-07-31 at 14:25:47ID: 19604360

Thanks, I'll check that out.

 

by: andrewaielloPosted on 2007-08-01 at 08:44:27ID: 19609890

Okay, I read all that information and have a little bit clearer picture of whats going on; still trying to figure out how to proceed though.  It seems to set up a smart host it I would have to know the IP/DNS information of a dedicated smart host.  I am sure you can't just pick the IP address of any old one, its gotta be something you have access/rights to or whatnot: this is the thing I can't seem to find any information on; is it like, say if you had a working SMTP server on your computer; I would put the IP address of your computer in as my smart host and it would work (as in my SMTP would send emails to your SMTP which would then deliver them)?  I am assuming i would need some password or something for that to happen?  

Now, I'm not sure if I need a smart host, but either way it seems that because the mail is no longer appearing in the coldfusion undeliver folder i should check the logs of the SMTP server.  

Also, earlier you stated "just enter the username and password in the mail server settings like "user:password@127.0.0.1"    I didn't see where this (user/password) was applicable...maybe this is my problem; which field in which tab were you talking about?   Thanks.

 

by: andrewaielloPosted on 2007-08-02 at 08:12:04ID: 19617691

Changed the point value to 500 since this is more involved than I thought.

 

by: SBennettPosted on 2007-08-03 at 08:24:27ID: 19625781

you would use "user:password@127.0.0.1" in the coldfusion mail server setting if your email server required authentication.

What you need to do is check your SMTP server logs to see if you can find any reasons why your emails are not being sent. Also have you check with your Internet Service Provider as to weather they block SMTP from traffic?

 

by: andrewaielloPosted on 2007-08-03 at 08:50:33ID: 19626056

I have Optimum online; and I have been reading that they do in fact block port 25 (at least old news articles from 2004 said so).  Apparently you can pay 10 bucks a month to lift this restriction; no way!

I found this article though, which may help:  http://www.citidexliweb.com/help/CablevisionEmail.html

Is this equivalent to using optonline.net as a smart host?   I will try it when I go home; do you think this will work?  Thanks.

 

by: SBennettPosted on 2007-08-03 at 08:54:18ID: 19626102

its worth a try. I would just set your mail server in coldfusion administrator to mail.optonline.net and see what happens.

 

by: andrewaielloPosted on 2007-08-03 at 08:56:18ID: 19626126

Oh so i wouldnt even be using my ISS SMPT thing at all?  

 

by: SBennettPosted on 2007-08-03 at 09:06:37ID: 19626254

you may also want to set the mailerid in your cfmail tag to that of microsoft outlook. the default coldfusion mailerid is blocked by many anti spam mechanisms.

<cfmail mailerid=Microsoft Outlook, Build 10.0.34163

 

by: SBennettPosted on 2007-08-03 at 09:08:11ID: 19626273

If you can cut out the middle man by getting rid of the IIS SMTP service then that would be best just make sure you do the mailerid thing so your isp's SMTP server thinks you are sending it from outlook.

 

by: SBennettPosted on 2007-08-03 at 09:09:04ID: 19626283

looks like my quote got turned into a box... strange

 

by: andrewaielloPosted on 2007-08-03 at 09:29:34ID: 19626451

Lol;  thanks, I got a good feeling that this will work;  I'll keep you posted.  

 

by: andrewaielloPosted on 2007-08-03 at 21:49:07ID: 19629988

Grr.. still no luck.  I added that mailerID stuff to the cfmail tag and changed the mail server in coldfusion to optonline.net.   When that didn't work I tried mail.optonline.net and mail-hub.optonline.net (that people suggested on the net.  Still no go..

 

by: andrewaielloPosted on 2007-08-04 at 02:12:49ID: 19630353

The optonline website says the mail server is mail.optonline.net  but this gives me the following error:

"Error","scheduler-0","08/04/07","02:11:28",,"550 5.1.8 invalid/host-not-in-DNS return address not allowed "

 

by: SBennettPosted on 2007-08-06 at 09:28:37ID: 19639416

This error means that the SMTP server does not like the return address that you are using. try using a valid email address in both the "to" and "from" fields. For example if you are using a test email address like:

<cfmail from="foo@foo.com"

then chane it to your real address.

 

by: andrewaielloPosted on 2007-08-06 at 10:09:55ID: 19639745

Ahh, i see.  Hopefully this means we are getting closer to getting it working then.    If i am getting this error instead of the other one it would suggest that the optonline mail server is functional, yes?   Thanks.

 

by: SBennettPosted on 2007-08-06 at 10:15:29ID: 19639787

yes, you are connecting to the SMTP server but it is set to prevent spammers from sending out emails so all your information needs to be legit.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...