quote:
ORIGINAL: Spooky
What is the complete script?
Have you also changed the SMTP server?
Does the script work without the new loop?
When you say the results dont show up - do you mean the email never gets sent or is the content of the email not what you expect?
The complete script doesn't work yet. I have a test script that does.
' this works fine:
Set Mail = Server.CreateObject("Persits.MailSender")
Mail.Host = "localhost"
Mail.From = "webform@exaltfinancial.com" ' Specify sender's address
Mail.FromName = "BD" ' Specify sender's name
Mail.AddAddress "donovan@rten.org"
Mail.AddBCC "donovan.mora@gmail.com"
Mail.Subject = "test"
Mail.Body = "test form process from web site 8.30pm"
On Error Resume Next
Mail.Send
If Err <> 0 Then
Response.Write "Error encountered: " & Err.Description
End If
This doesn't work- tried commenting out most of the query part.
' change to address of your own SMTP server
strHost = "localhost"
If Request("Send") <> "" Then
Set Mail = Server.CreateObject("Persits.MailSender")
' enter valid SMTP host
Mail.Host = strHost
Mail.From = "webform@exaltfinancial.com"
Mail.FromName = "Exalt Web Form" ' optional
' Mail.AddAddress "drbob@exaltfinancial.com", "Dr. Bob"
Mail.AddAddress "donovan.mora@gmail.com"
Mail.AddBCC "donovan@rten.org"
Mail.AddReplyTo "drbob@exaltfinacial.com"
Mail.IsHTML = false
' message subject
Mail.Subject = "Employee Form Feedback"
' message body
strMsgHeader = "Form information follows" & vbCrLf
' for each qryItem in Request.QueryString
' strMsgInfo = strMsgInfo & qryItem & " - " & request.querystring(qryItem) & vbCrLf
' next
' strMsgFooter = vbCrLf & "End of form information"
Mail.Body = strMsgHeader ' & strMsgInfo & strMsgFooter
'On Error Resume Next
Mail.Send
If Err <> 0 Then
Response.Write "Error encountered: " & Err.Description
End If
End If
This site uses localhost. works in script 1.
On script 2, I get no error and I get the confirmation page - but no email. script 1 has no conf page. I do get the email. :)
I sent a message to support at aspemail.com also but have no response as yet.
I dont' understand this language so when I cobble things together I am not sure what is broken.
Thanks for any insight. :)