Forum Moderators: open

Message Too Old, No Replies

CDONTS Email Problem

I submit fhe form, but get no response

         

brett2_UMBC

10:01 pm on Apr 24, 2003 (gmt 0)

10+ Year Member



Using the code below, I have inserted it after my insert record in my registration page. My registration page uses all ASP to insert a new record based upon user input, and check to make sure the password is the same as the confirmation. THis code is supposed to send me the email; however, it doesn't. Can anyone help me?


<%
If (CStr(Request("MM_insert")) = true ) Then

Dim StrEmail, StrName

StrEmail = MM_fieldsStr("email")
StrName = MM_fieldsStr("fullname")

Dim objMail
Set objMail = CreateObject("CDONTS.NewMail")
With objMail
.From = strName & " " & strEmail
.To = "brett2@umbc.edu"
.Subject = "[UMBC EMS] Add Member " & strName & " [UMBC EMS]"
.Body = strName & " requests authorization to the UMBC EMS Member Section" & vbCrLf & vbCrLf & "Email Address: " & strEmail & vbCrLf & vbCrLf & "==========================================" & vbCrLf & Date() & " at " & Time()
.Send
End With
Set objMail = Nothing

MM_RedirectURL = "add_success.asp"

Else

MM_redirectURL = "add_failure.asp"

End If
%>

Thanks in advance for your help.

~Brett

WebJoe

11:01 pm on Apr 24, 2003 (gmt 0)

10+ Year Member



And it doesn't redirect you to the add_failure.asp-page...?

duckhunter

12:25 am on Apr 25, 2003 (gmt 0)

10+ Year Member



Try wrapping quotes around the true

If CStr(Request("MM_insert")) = "true" Then

brett2_UMBC

5:52 am on Apr 25, 2003 (gmt 0)

10+ Year Member



That's correct WebJoe, it doens't take me to the failure page. I don't know why, the way it's set up, it should. And DuckHunter, I tried the "true" change, and it didn't work. Is there something missing? Did I code something wrong? My email address is correct. This seems to be a recurring issue though because my contact page is the same way, everyone else gets email from the site except me; however it's the same script throughout. The only things that are happening before the email is sent, is the insertion of the record. That works totally fine everytime. Thanks for all your help.

~Brett

Digga

8:58 am on Apr 29, 2003 (gmt 0)

10+ Year Member



Hi Brett,

I've got this running by making the change that duckhunter suggested and then remove this 'strName & " " & ' from the .From field.

Digga

Sharing Knowledge Saves Valuable Time!