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> trouble

Status
Not open for further replies.

Silvano

Programmer
Jul 16, 2001
386
US
- I am running cf server 4.5.1 and IIS Server on Win 2000; I have no problems whatsoever with it;
- SMTP appears to be OK; I checked and it's up and running;
- In the cf administrator, mail server is set to 127.0.0.1, server port is 25, Spool Interval 60 sec, Connection Timeout 60 sec; when verified this is message I receive: "ColdFusion connected to your server. Verification completed without error."

- Executing script reports no error; I get "Mail Sent!" output fine, but I'm getting nothing in my email???
- what am I missing here?
- anyone?...

I'll appreciate any help here,
sylvano

Here is the script:

<cfif IsDefined(&quot;sendMail&quot;)>
<cfmail to=&quot;#Form.To#&quot;
from=&quot;#Form.From#&quot;
subject=&quot;Testing&quot;>
Hi! #Form.Subject#
</cfmail>
<cfoutput>
Mail Sent!
</cfoutput>
</cfif>

<form action=&quot;index.cfm?sendMail=true&quot; method=&quot;post&quot;>
To:<input type=&quot;Text&quot; name=&quot;To&quot; value=&quot;dsylvano@hotmail.com&quot;>
From:<input type=&quot;Text&quot; name=&quot;From&quot; value=&quot;yourmail@whatever.com&quot;>
Subject:<input type=&quot;Text&quot; name=&quot;Subject&quot; value=&quot;testing&quot;>
<input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;Send&quot;>
</form>
 
Ok, sorry everybody. I better check for POP server, right?
If this is right, can you please tell me where I can find a good, (preferably free) POP server?
 
Hey Sylvano,

I would check the Cfusion\mail\log directory and look for entries in the errors.log file. It may be that the mail server is rejecting your message which means CF will not report an error and you will not receive the message. If this is the case, you'll find all of your messages in the CFusion\mail\undeliverable directory. The error log should give you a good idea of why the messages are failing if this is the case.

Hope this helps,
GJ
 
ok, I have found *.cfmail log files of the messages that I've tried to send; all files are in the cfusion/mail/undeliver folder;

the log file looks like this:

x-cf-version: 4.5.0
x-cf-server: 127.0.0.1
x-cf-port: 25
x-cf-timeout: 60
x-cf-from: yourmail@whatever.com
x-cf-to: dsylvano@hotmail.com

Content-type: text/plain
Date: Sat, 04 Aug 2001 11:28:16 -0800
From: yourmail@whatever.com
Subject: Testing
To: dsylvano@hotmail.com

Hi! testing

I still have no clue as why the messages are undeliverable;
(and yes, I triple checked, my email is correct)

anyone?
 
This is mail.log I am getting:

&quot;Error&quot;,
&quot;TID=780&quot;,&quot;08/04/01&quot;,&quot;10:54:48&quot;,
&quot;Failed to send the spooled mail file, C:\CFUSION\MAIL\spool\D.cfmail.
SMTP server replied &quot;5.7.1 Unable to relay for dsylvano@hotmail.com&quot;
Moved file to C:\CFUSION\MAIL\undelivr\E.cfmail.&quot;
 
Hi :)

two things:

1. there is an attribute called server where you determine the IP of the mail server or it's name (mail.hotmail.com) that you can use within the cfmail tag.

2.some mail servers reject to send an e-mail if the from or to are not email accounts on the same mail server.

hope this will help
regards
 
Hey Sylvano,

That indicates that the mail server is rejecting your message due to spam filtering. You will either need to have the mail server administrator add your CF server as a trusted host, change the &quot;from&quot; address to one the server will accept, or use a different mail server on your network that doesn't restrict relaying.

This isn't a problem with your code or the CF server and is just a matter of the mail server's configuration.

Hope this helps,
GJ
 
Big thank you for the help I am getting here; I am still working on this problem. It is correct that the problem is not the script or within coldfusion server;
I have found mail I am trying to send in the Inetpub\mailroot\Queue folder (it belongs to SMTP server);
that tells me that the problem I am having relates to the SMTP;
The error message:
- SMTP server replied &quot;5.7.1 Unable to relay for dsylvano@hotmail.com&quot; pointed me to the SMTP settings where I have option 'relay restrictions'; there, I checked 'All except the list below' option, (there is no selections on the list) may relay through this virtual server; I set same option for connections setting;

Apparently, the problem is within SMTP settings that I can't figure it out; I can find nothing in the documentation I have, other than how to configure SMTP server, and I just don't see wich part of the configuration is wrong?!?

Again, thanks everybody...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top