-
Cdonts
I am creating a form which will send an email to customers with attachments they request. I would like for the from address to be just what I've specified but it also shows our real address that is sending the email. Is there a way to make it not show this email address?
Code:
<%
Dim strMailBody
Dim objNewMail
strMailBody = "Rep:" & Session("Rep") & Chr(13)
strMailBody = strMailBody & "Phone Number: " & Session("PhoneNumber") & Chr(13)
strMailBody = strMailBody & "Email: " & Session("Email") & Chr(13)
strMailSubject = "Technical Support"
Set objNewMail = Server.CreateObject("CDONTS.NewMail")
objNewMail.From = "Company Name"
objNewMail.To = Session("Email")
objNewMail.Subject = strMailSubject
objNewMail.Body = strMailBody
objNewMail.MailFormat = 0
For each File in Request.Form
objNewMail.AttachFile(File)
Next
objNewMail.Send
Set objNewMail = Nothing
%>
Thanks for any help.