Wrox Programmer Forums
|
ASP CDO As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP CDO section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 18th, 2005, 08:33 AM
Registered User
 
Join Date: Feb 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Issue in sending mail

The pickup directory path is required and was not specified while attempting to send a mail

MailMessage message = new MailMessage();

//Set the UserId
message.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "XXX");
//Password
message.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "");
//SMTP PortNo
message.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpserverport", "25");
//Authentication Type
message.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", 1);
message.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusing",1) ;
message.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout", 60);

SmtpMail.SmtpServer = "XXX";

//Set all other required Parameter of email.
message.To = "XXX";
message.From = "XXX";
message.Subject = "Test Mail";
message.Body = "This is a test mail";

SmtpMail.Send(message);

Thanks in advance
 
Old February 18th, 2005, 11:41 AM
Registered User
 
Join Date: Feb 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks...The issue was resolved by setting 2 for the sendusing attribute






Similar Threads
Thread Thread Starter Forum Replies Last Post
problems sending mail with java mail gandacuboy J2EE 2 December 20th, 2006 03:05 PM
sending mail ashokparchuri General .NET 3 May 5th, 2005 02:42 AM
sending mail anita VB How-To 3 September 30th, 2004 03:48 PM
Sending e-mail to different mail box! Calibus Classic ASP Databases 4 September 3rd, 2004 05:48 PM
Sending both text mail and HTML mail - CDONTS madhukp Classic ASP Basics 1 October 8th, 2003 01:05 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.