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

CFMAIL

Status
Not open for further replies.

alexfusion

Programmer
Feb 5, 2001
94
AR
Hello friends:
I am Alejandro from Argentina.I am learning ColdFusion.I think it is great!!!
My question is:
I am trying to send emails by using CFMAIl tag.
I went to the ColdFusion Administrator and enter the SMTP server information.I verified the conection to the server.It was ok.The port is 25.
Then I write the code to use CFMAIL.
I wrote a simple page for sending email.
The sender information is correct(my own email address)
The recipient information is correct too.I checked it and it is ok.
Then I send the email.The code works ok and send the email.
But I when I check if I got the email,I get the mailer daemon message from the SMTP server,telling me that the message is undeliverable and it was rejected.
Once again I checked all the information and I don't see any error.
Anyone can see what is wrong?

I put this info for CFMAIL tag:
sender:mixale@hotmail.com
subject:hello
recipient:mixale@hotmail.com

The email is sent but then the SMTP server rejects the message.
Any help welcome!!!!!!


Thank you so much!

Alejandro
 
Your code:

>>sender:mixale@hotmail.com
>>subject:hello
>>recipient:mixale@hotmail.com

Perhaps it got rejected because sender and recipient are the same. I know some SMTP servers don't accept this, so maybe you should test it with another email address.
Glad you enjoy working with CF! Adios amigo :)

<webguru>iqof188</webguru>
 
I am afraid you will need to set the &quot;From&quot; to a vlid email account on the server.

You can often &quot;open&quot; your mail server to allow forwarding by &quot;anyone&quot; but... unless you want your email server to become a spam server for a hacker I wouldn't do that...
 
There are many ways a SMTP server can be configured to handle incoming mail and a lot of configs include rules to stop spamming. These often interfere with programs that need to generate e-mail originating from addresses that the server doesn't know about. If you can post the exact error message found in the CF mail log, I or someone in the forums can probably tell you what is causing the SMTP server to reject your message.

Good luck,
GJ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top