|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Form email not working
I have a feedback form and I want the contents of the form fields to be mailed to an email address specified in the ASP code and the address entered by the user in the feedback form. It only seems to work when the email address is from my local domain. It doesn't matter if the email address is entered in the form or if it is part of the ASP code (objMail.To = email@whatever). The form action calls confirmation.asp, which concatenates the form field contents and presents them to the user. Confirmation.asp displays correctly and all form contents are included correctly.
Does anyone have an idea what I am doing wrong? The ASP code from confirmation.asp is below. Thanks in advance for your help. stringman <% DIM strEmail, strName, strPhone, strComments, mail, reply, objMail, strMessage strEmail = request.form("eMail") strName = request.form("name") strPhone= request.form("phone") strComments = request.form("comments") strComments = Replace(strComments, Chr(13), "<br />") mail = ("stringerk@saic.com") reply = request.form("eMail") Set objMail = Server.CreateObject("CDONTS.NewMail") objMail.From = reply objMail.Subject = "User Feedback from OSIS" objMail.To = mail objMail.cc = strEmail objMail.BodyFormat=0 objMail.MailFormat=0 strMessage = "// UNCLASSIFIED //<br /><br />" strMessage = strMessage & "<b>Name: </b>" & strName & "<br />" strMessage = strMessage & "<b>Email: </b>" & strEmail & "<br />" strMessage = strMessage & "<b>Phone: </b>" & strPhone & "<br />" strMessage = strMessage & "<b>Comments: </b>" & strComments & "<br /><br />" strMessage = strMessage & "// UNCLASSIFIED //" objMail.Body = strMessage objMail.Send Set objMail = nothing Response.Write strMessage %> |
|
#2
|
|||
|
|||
|
Just a guess, but your mail server probably thinks someone is trying to relay mail through your server.
Check your mailserver and make sure it is set to relay mail in BOTH of the following cases: - The recipient is a local user - The destination is a local user Just a guess.... but that's what it sounds like to me. |
|
#3
|
|||
|
|||
|
Thanks. I don't have control over our mail server or the clients', but I'm learning the right questions to ask to get this thing troubleshot.
stringman |
|
#4
|
|||
|
|||
|
Just a thought, but if you are running windows 2000, cdonts is now cdo mail and there is a new format to sending it.
Quote:
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Form email not working |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|