Authenticated email using classic ASP
The below placed content will help you to send authenticated mail using classic ASP.
<%
Dim ObjSendMail
Set ObjSendMail = CreateObject(CDO.Message)
'Configuration for remote SMTP server
'Network Send
ObjSendMail.Configuration.Fields.Item (http://schemas.microsoft.com/cdo/configuration/sendusing) = 2
'Name of SMTP server
ObjSendMail.Configuration.Fields.Item (http://schemas.microsoft.com/cdo/configuration/smtpserver) =
'SMTP port
ObjSendMail.Configuration.Fields.Item (http://schemas.microsoft.com/cdo/configuration/smtpserverport) = 25
'MaxESP SMTP servers require authentication
'Basic Authentication
ObjSendMail.Configuration.Fields.Item (http://schemas.microsoft.com/cdo/configuration/smtpauthenticate) = 1
'SMTP username as configured in the control panel
ObjSendMail.Configuration.Fields.Item (http://schemas.microsoft.com/cdo/configuration/sendusername) =
'SMTP user password as configured in the control panelObjSendMail.Configuration.Fields.Item (http://schemas.microsoft.com/cdo/configuration/sendpassword) =
ObjSendMail.Configuration.Fields.Update
'Configuration for email message
'Email To address
ObjSendMail.To =
'Email Subject
ObjSendMail.Subject = Subject Content
'Email From address
ObjSendMail.From =
'Email Body
ObjSendMail.TextBody = Body Content
ObjSendMail.Send
Set ObjSendMail = Nothing
%>
Note: In above mentioned code,
replace
replace
replace
Not at all
helpful Not much
helpful Some what
helpful Very
helpful Extremely
helpful | ||||||||
What could be better? (Optional)
X
Not related to my issue
Too complicated explanations
Too much information
Incorrect information
Unclear information
Incomplete information
Too old information
Do you have any other feedback about this faq ? 1000
|