Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 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 6th, 2006, 10:08 AM
Registered User
 
Join Date: Apr 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to nsrujan Send a message via Yahoo to nsrujan
Default Sending E-Mail from custom assembly

Hi all

I hav tired sending a mail from my custom assembly using following piece of code

SmtpMail.SmtpServer.Insert(0,"127.0.0.1");
MailMessage objmail=new MailMessage();
objmail.To="user@hotmail.com";
objmail.Cc="user1@yahoo.co.in";
objmail.Subject="From WebPart Page";
objmail.Body="This is Test";
objmail.From="test@yahoo.co.in";
SmtpMail.Send(objmail);

when i tried sending mail i get "Could not access 'CDO.Message' object" error message

Actaully the same piece of code is working fine for Asp.Net WebApplication that has been deployed in my local system

Are there any changes that has to be done while using a custom assembly ?

Thanks
Srujan.N





Similar Threads
Thread Thread Starter Forum Replies Last Post
Using A Custom Assembly, chap 5 p154 - 155 jmurdock BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 2 June 20th, 2007 05:01 PM
problems sending mail with java mail gandacuboy J2EE 2 December 20th, 2006 03:05 PM
sending mail Sona1883 Classic ASP Components 1 January 3rd, 2005 07:25 AM
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.