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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Javax Send Mail Error?

Status
Not open for further replies.

scripter73

Programmer
Apr 18, 2001
421
US
Hi,

What does it mean when I try to send an email using my SMTP server I specified in the ColdFusion Administrator along with a reference to <cfmail> in my code and I get the following in the mail.log file:

Invalid Addresses; nested exception is: javax.mail.SendFailedException: 550 5.7.1 Unable to relay for <email address>


.....where <email address> is my email address.

Thanks,
scripter73



Change Your Thinking, Change Your Life.
 
Show us the code.

Hope This Helps!

Ecobb
- I hate computers!
 

This page is landed on from another page that is a form submssion. The user enters the form, submits it, and the following code is processed. I don't received errors on this.

<font face=&quot;Verdana&quot; size=3>
This application emails scripter@domain.com from mail server 10.40.102.81:


<cfmail to=&quot;scripter@domain.com&quot; from=&quot;scripter@domain.com&quot; subject=&quot;Mail Receipt&quot; type=&quot;HTML&quot;>
<font face=&quot;Verdana&quot; size=2>
You have mail. Here are your form submissions:
Name: #form.name#<br>
Floor: #form.floor#<br>
</font>
</cfmail>

</font>


Thanks,
scripter73


Change Your Thinking, Change Your Life.
 
Everything looks OK in your <cfmail> tag. If you're getting a relaying error it's probably becuase your email address/domain is not allowed to relay through your mail server.

Hope This Helps!

Ecobb
- I hate computers!
 
This is usually because you are connecting to the mail server from outside of the ip address range that it thinks it owns.

In any case set up a normal Internet email program (Outlook Express, Eudora, Netscape Mail) and see if you can make it work from the same machine and the same mail host.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top