Advertisement

04.04.2008 at 01:51PM PDT, ID: 23297406
[x]
Attachment Details

CDO SendUsing problem for sending mail

Asked by CSecurity in Active Server Pages (ASP), Microsoft Access Database, Email Servers

Hello. I have attached code...

I defined SendUsing method to 2 and I defined all other variables. But I get this error:
The "SendUsing" configuration value is invalid.

And also my Mailer object doesn't have this property:
objCDOSYSCon.Fields.Update

But all web sites I see, they all used it.

But I do like this:
objCDO.Configuration.Update;

and this one works for me.

What's wrong with my code, here is my code:
Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
var objCDO = Server.CreateObject("CDO.Message");
var objCDOSYSCon = Server.CreateObject ("CDO.Configuration");
objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "something";
objCDOSYSCon.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusername") = "something";
objCDOSYSCon.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "something";
objCDOSYSCon.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = "25";
objCDOSYSCon.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = "1";
objCDOSYSCon.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2;
objCDOSYSCon.Fields.Update
objCDO.from = "something"
 
objCDO.to = (rsBoxes.Fields.Item("Email").Value)
objCDO.cc = (rsBoxes.Fields.Item("Parent_Email").Value)
 
objCDO.bcc = "something"
objCDO.Subject = "Something"
objCDO.TextBody =  "Something";
objCDO.Send()
objCDO = null
[+][-]04.04.2008 at 02:12PM PDT, ID: 21285687

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.

 
[+][-]04.04.2008 at 02:14PM PDT, ID: 21285698

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

Zones: Active Server Pages (ASP), Microsoft Access Database, Email Servers
Sign Up Now!
Solution Provided By: CCongdon
Participating Experts: 3
Solution Grade: A
 
 
[+][-]04.04.2008 at 02:21PM PDT, ID: 21285736

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.

 
[+][-]04.04.2008 at 08:19PM PDT, ID: 21286986

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

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

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