Frequently Asked Question

FAQ / Windows Shared Hosting


Authenticated email using classic ASP



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 with your server name for e.g. (dnswind.com),
with your user name for e.g. (test1@sitename.com),
replace with your password,
replace with the mail id of the receiver.

How this faq is helpful:

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

Related Tags :