Please to Gain access or to Create new account

Base of Knowledge - FAQs

How to send an email with ASP using CDO?

First of all it will have to create a mail account from his control panel Plesk, which is the one that it will use to send the mail.

Next it can copy the following suppressed file.asp and raise it to his web space, remember to modify the texts "sudominio.com" for the real name of his domain.

<%

Set myMail = CreateObject ("CDO.Message)
myMail. Subject = "Message of test"
myMail. From = "prueba@sudominio.com"
myMail. To = "prueba@sudominio.com"
myMail. HTMLBody = "East is the content of the message of test"
myMail. Configuration. Fields. Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
myMail. Configuration. Fields. Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "mail.sudominio.com"
myMail. Configuration. Fields. Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
myMail. Configuration. Fields. Item ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1
myMail. Configuration. Fields. Item ("http://schemas.microsoft.com/cdo/configuration/sendusername") = "prueba@sudominio.com"
myMail. Configuration. Fields. Item ("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "sucontraseña"
myMail. Configuration. Fields. Update
myMail. Send
set myMail=nothing
%>



Was the answer useful?

To add Favorites To add Favorites

To print this one article To print this one article

Also he can read
How do I believe a database? (Conference: 464)

Language:

I access direct

Login

Email

Password

To remember Information of User

To look


Copyright © 2010 www.1webhosting4you.com All rights reserved.

Free domains EU , speed test , , , , , , , , , , , , ,