Forum Moderators: open

Message Too Old, No Replies

Formmail ASP Works but no email

         

voices

12:57 am on Aug 8, 2006 (gmt 0)

10+ Year Member



Formmail ASP Seems to work but does not send email. The reason I say it works is that when I load the script directly it gives me the proper error msg.

Form could not be processed due to the following errors:

No form data submitted.
No referer.
Missing email recipient.

When I fill out the form it appears to send, there is no error msg, but email never arrives. This is a companies private server and I talked to level 3 support and they don't know much about the web. I don't know much about windows servers. My thought is that the script is not finding what it needs to actually send the mail.

Settings are:
referers = Array("www.companysite.com", "companysite.com" )
mailComp = "CDONTS"
smtpServer = "mail.companysite.com"
fromAddr = "guest@companysite.com"

for mailComp I have tried CDOSYS, ASPMail and CDONTS but I never get any mail. I have the mail set to send to webmaster@companysite.com

Where do I look to fix the problem?

Finally an error msg...
Email send failed: The transport failed to connect to the server. .

mrMister

3:40 pm on Aug 10, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



post your code

mattur

11:05 am on Aug 11, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I think voices is using the "Formmail ASP" script (from BrainJar?). This script gives you the option of using CDONTS or CDOSYS (the MS-supplied com objects for sending email) or 3rd party mail components like aspmail and jmail (must be manually installed to work).

I think CDONTS requires the local SMTP service to be running, so check the setup of the server. Note also that CDONTS doesn't provide error information if it fails to send. You can see this in the script, if you look towards the bottom at the "function SendMail()" code. I think Win 2003 only has CDOSYS, W2k has both.

I'd recommend using CDOSYS (or a 3rd party component) and then track back the error: is the smtp server address correct, try using its ip address, is a firewall or anti-virus blocking the port etc.