Dim objNewMail, objNewMail1
Set objCDOMail = Server.CreateObject("CDONTS.NewMail")
objCDOMail.To = "[email protected]"
objCDOMail.From = "[email protected]"
txtBody = "Someone has contacted you from your site" & VbCrLf & VbCrLf & "Name: " & name & VbCrLf & VbCrLf & "Phone: " & phone & VbCrLf & VbCrLf & "Email: " & email & VbCrLf & VbCrLf & "Case description: " & descrip
objCDOMail.Subject = "Someone has contacted you from your website"
objCDOMail.Body = txtBody
objCDOMail.Send
Set objCDOMail = Nothing
If email <> "" Then
Set objCDOMail1 = Server.CreateObject("CDONTS.NewMail1")
objCDOMail1.To = email
objCDOMail1.From = "[email protected]"
txtBody = "This is an automated response. Please do not reply........has received your message. Thank you for telling us about your case. We will attempt to contact you using the information you have provided. You may also reach us at 1-888 blank during normal business hours or you may leave a message after business hours" & VbCrLf & VbCrLf & VbCrLf & VbCrLf & "You have submitted the following information:" & VbCrLf & VbCrLf & "Name: " & name & VbCrLf & VbCrLf & "Phone: " & phone & VbCrLf & VbCrLf & "Email: " & email & VbCrLf & VbCrLf & "Case description: " & descrip
objCDOMail1.Subject = "Your submission has been received"
objCDOMail1.Body = txtBody
objCDOMail1.Send
Set objCDOMail1 = Nothing
End If
|