hi,
I have been using this code to send email from our asp app.(see below) recently, our email hosting company change email system to SSL type
(in outlook, you have to check SSL checkbox)
now the code does not work anymore, any ideas? thx
Set myMail=CreateObject("CDO.M
essage")
myMail.Subject="subject"
myMail.From="aaa@aaa.com"
myMail.To="aaa@aaa.com"
myMail.Cc="aaa@aaa.com"
myMail.TextBody="message"
myMail.Configuration.Field
s.Item("
http://schemas.microsoft.com/cdo/configuration/sendusing")=2
'Name or IP of remote SMTP server
myMail.Configuration.Field
s.Item("
http://schemas.microsoft.com/cdo/configuration/smtpserver")="l
ocalhost"
'Server port
myMail.Configuration.Field
s.Item("
http://schemas.microsoft.com/cdo/configuration/smtpserverport"
)=25
'Use SSL for the connection (True or False)
myMail.Configuration.Field
s.Item("
http://schemas.microsoft.com/cdo/configuration/smtpusessl") = True
myMail.Configuration.Field
s.Update
myMail.Send
set myMail=nothing
msg="Message has been sent"
Start Free Trial