G
Greg Maxey
I have a user feedback form on my website that sends the e-mail to my
mvps.org e-mail account. I use this code in the .ASP file:
'create the email and send it
Set myMail=CreateObject("CDO.Message")
Mymail.From= UserEmail
Mymail.To= "(e-mail address removed)" 'change to your email
Mymail.Subject= "Website Feedback from " & Username
MyBody = "Message Type: " & MessageType & vbCrLf & vbCrLf
MyBody = MyBody & "Subject: " & Subject & vbCrLf & vbCrLf
MyBody = MyBody & "Subject Other: " & SubjectOther & vbCrLf & vbCrLf
MyBody = MyBody & "Comments: " & Comments & vbCrLf & vbCrLf
MyBody = MyBody & "Username: " & Username & vbCrLf & vbCrLf
MyBody = MyBody & "UserEmail: " & UserEmail & vbCrLf & vbCrLf
MyBody = MyBody & "ContactRequested: " & ContactRequested & vbCrLf
myMail.TextBody= MyBody
'Configure the server
Const cdoSchema = "http://schemas.microsoft.com/cdo/configuration/"
Mymail.Configuration.Fields.Item(cdoSchema & "sendusing") = 2
Mymail.Configuration.Fields.Item(cdoSchema & "smtpserver") = "mail.mvps.org"
'change to your server
Mymail.Configuration.Fields.Item(cdoSchema & "smtpserverport") = 25
Mymail.Configuration.Fields.Update
I would like to start using my gmail account for this purpose. I changed
the following three lines as show but I get an error about a connection to
the server when I try to implement it.
Mymail.To= "(e-mail address removed)"
Mymail.Configuration.Fields.Item(cdoSchema & "smtpserver") =
"smtp.gmail.com"
Mymail.Configuration.Fields.Item(cdoSchema & "smtpserverport") = 465
I got the values for smtp server and serverport from a web pages describing
how to set up OE to send and recieve gmail. I don't know the meaning of the
"sendusing" value.
Thanks.
mvps.org e-mail account. I use this code in the .ASP file:
'create the email and send it
Set myMail=CreateObject("CDO.Message")
Mymail.From= UserEmail
Mymail.To= "(e-mail address removed)" 'change to your email
Mymail.Subject= "Website Feedback from " & Username
MyBody = "Message Type: " & MessageType & vbCrLf & vbCrLf
MyBody = MyBody & "Subject: " & Subject & vbCrLf & vbCrLf
MyBody = MyBody & "Subject Other: " & SubjectOther & vbCrLf & vbCrLf
MyBody = MyBody & "Comments: " & Comments & vbCrLf & vbCrLf
MyBody = MyBody & "Username: " & Username & vbCrLf & vbCrLf
MyBody = MyBody & "UserEmail: " & UserEmail & vbCrLf & vbCrLf
MyBody = MyBody & "ContactRequested: " & ContactRequested & vbCrLf
myMail.TextBody= MyBody
'Configure the server
Const cdoSchema = "http://schemas.microsoft.com/cdo/configuration/"
Mymail.Configuration.Fields.Item(cdoSchema & "sendusing") = 2
Mymail.Configuration.Fields.Item(cdoSchema & "smtpserver") = "mail.mvps.org"
'change to your server
Mymail.Configuration.Fields.Item(cdoSchema & "smtpserverport") = 25
Mymail.Configuration.Fields.Update
I would like to start using my gmail account for this purpose. I changed
the following three lines as show but I get an error about a connection to
the server when I try to implement it.
Mymail.To= "(e-mail address removed)"
Mymail.Configuration.Fields.Item(cdoSchema & "smtpserver") =
"smtp.gmail.com"
Mymail.Configuration.Fields.Item(cdoSchema & "smtpserverport") = 465
I got the values for smtp server and serverport from a web pages describing
how to set up OE to send and recieve gmail. I don't know the meaning of the
"sendusing" value.
Thanks.