Jump to content

Email CDO problem


Akasha

Recommended Posts

Helloi want to have a button and when it is pushed it must sent an emailI have the following code

  Set myMail=CreateObject("CDO.Message")  	myMail.Subject="Sending email with CDO"  	myMail.From="nlv@mydomain"  	myMail.To="leandra_S@hotmail.com"  	myMail.TextBody="This is a message."  	myMail.Configuration.Fields.Item _  	("http://schemas.microsoft.com/cdo/configuration/sendusing")=2  	'Name or IP of remote SMTP server  	myMail.Configuration.Fields.Item _  	("http://schemas.microsoft.com/cdo/configuration/smtpserver") _  	="smtp server"  	'Server port  	myMail.Configuration.Fields.Item _  	("http://schemas.microsoft.com/cdo/configuration/smtpserverport") _  	=25   	myMail.Configuration.Fields.Update  	myMail.Send  	set myMail=nothing              Response.Redirect("../main.asp?message=Newsitem has been added and users are notified")

Getting this errorError Type:CDO.Message.1 (0x80040213)The transport failed to connect to the server. /Internal/Secretary/Newsitems/newsitemnotify.asp, line 192what's wrongps. for my smtp and port number i use the settings used in outlook, but this is an imap is that a problem

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...