Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CFMAIL problem

Status
Not open for further replies.

DrStern

Programmer
Mar 28, 2003
53
US
Hi, all,
I have a problem when trying to send emails to accounts outside our domain. That is, if I send emails from webmaster@mydomain.com to user@mydomain.com, my CFMAIL works. But, is I sent an email from webmaster@mydomain.com to user@hotmail.com, doesn’t work. My server requires authentication. When I test the account name and password for my domain name “mail.mydomain.com” in outlook express, it does send the mails, but I don’t know why it is not sending the emails through CF. Now, the way I have my settings at the CF admin is: myuser:mypassword@mail.mydomain.com.

My code is:

<cfmail to="user@hotmail.com"
from="webmaster@mydomain.com "
subject="test 1" >
This is my first cfmail test!
</cfmail>

And the file that CF writes at the “C:\CFusionMX\Mail\Undelivr” folder reads:

server: myuser:mypassword@mail.mydomain.com:25
from: webmaster@mydomain.com
to: user@hotmail.com
subject: test 1
type: text/plain; charset=UTF-8
X-Mailer: ColdFusion MX Application Server
body:
body: This is my first cfmail test!
body:

Do any of you have an idea?

Thanks!!!

Dr. Stern
 
I'm sorry, but what do you mean with "if I setup the SMTP correctly"? I didn't install it, I would say it comes with windows by default (I guess).
Any thoughts?
 
Check your CF log files, a lot of times it will display the error message returned from the mail server explaining why the email wasn't sent. It's usually something like "Relaying Denied" or "Timeout waiting for Server Connection".



Hope This Helps!

ECAR
ECAR Technologies, LLC

"My work is a game, a very serious game." - M.C. Escher
 
This is the message that I'm getting at the mail log:

"Error","scheduler-0","05/31/05","17:05:13",,"Invalid Addresses; nested exception is: javax.mail.SendFailedException: 550 5.7.1 Unable to relay for dr_stern21@hotmail.com "

The "To" address does exist, so it's valid!

Any ideas?
 
i notice you have a space after your address.. "dr_stern21@hotmail.com " i'm not sure if that would cause a problem but try to get rid of it.

We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true.
 
Also, make sure that the "From" address is allowed to relay through your mail server. You may want to check and make sure that the CF server is allowed to relay as well. I've run into problems before where the mail server doesn't know the CF Server or "From" address is one of it's own so it doesn't allow mail to go out from it.



Hope This Helps!

ECAR
ECAR Technologies, LLC

"My work is a game, a very serious game." - M.C. Escher
 
Well in most cases you need to setup the SMTP on the server to make sure the mails are going out fine. I did that on my win2000 server using iMail server.

Check the CFADMINISTRATOR to make sure the mail settings are working. Have you tried a different email address??

[sub]
____________________________________
Just Imagine.
[sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top