Advertisement

07.03.2008 at 06:32PM PDT, ID: 23538545
[x]
Attachment Details

--URGENT--  Sending email from ASP

Asked by mcrmg in Active Server Pages (ASP)

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.Message")
myMail.Subject="subject"
myMail.From="aaa@aaa.com"
myMail.To="aaa@aaa.com"
myMail.Cc="aaa@aaa.com"
myMail.TextBody="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")="localhost"
'Server port
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport")=25
'Use SSL for the connection (True or False)
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = True
myMail.Configuration.Fields.Update      
myMail.Send
set myMail=nothing
msg="Message has been sent"Start Free Trial
 
Loading Advertisement...
 
[+][-]07.03.2008 at 06:58PM PDT, ID: 21930568

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 07:01PM PDT, ID: 21930580

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 07:18PM PDT, ID: 21930647

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 07:23PM PDT, ID: 21930662

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 07:28PM PDT, ID: 21930675

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 07:30PM PDT, ID: 21930682

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Active Server Pages (ASP)
Sign Up Now!
Solution Provided By: neeraj523
Participating Experts: 2
Solution Grade: A
 
 
[+][-]07.03.2008 at 07:30PM PDT, ID: 21930686

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 08:31PM PDT, ID: 21930856

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628