473,396 Members | 2,140 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

console application send email error

jam
Dear All,

I am writing a console and it send a email out when it hits error

it calls this
static void SendErrorEmail(string error)
{
System.Web.Mail.MailMessage mail = new System.Web.Mail.MailMessage();
System.Web.Mail.SmtpMail.SmtpServer = smtpServer;

mail.To = emailaddress;
mail.Subject = "error occur";
mail.From = "ab*@123.com.hk";
mail.Body = error;
System.Web.Mail.SmtpMail.Send(mail);
}
it gaves error Could Not Access CDO.Message Object

So what is the problem I am hiting??

jam

Nov 16 '05 #1
1 3077
do you have the permissions to send mail to the SMTP server?

HTH

Ollie Riches

"jam" <hk***@hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
Dear All,

I am writing a console and it send a email out when it hits error

it calls this
static void SendErrorEmail(string error)
{
System.Web.Mail.MailMessage mail = new System.Web.Mail.MailMessage();
System.Web.Mail.SmtpMail.SmtpServer = smtpServer;

mail.To = emailaddress;
mail.Subject = "error occur";
mail.From = "ab*@123.com.hk";
mail.Body = error;
System.Web.Mail.SmtpMail.Send(mail);
}
it gaves error Could Not Access CDO.Message Object

So what is the problem I am hiting??

jam

Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Boba | last post by:
Hi, I'm programming a WinForm application. I would like to enter commands that will send output that will help me to locate bugs in the future. I know that there is a way to send output by...
1
by: Philip Townsend | last post by:
Is there any way to send email from a console application? We have a simple console app that runs data updates and we need to be notified when errors occur. Email is the preferred method, though we...
17
by: Adam | last post by:
I need a console application to send me an e-mail....in the past I have use SQL Server's mail messaging to send my e-mails for console applications, but often the SQL Server mail message will not...
9
by: Steve Buster | last post by:
All right, I have read every forum, newsgroup etc about this issue and no one seems to know how to fix it. I am getting a "Server Application Unavailable" exception running my .NET 1.1...
3
by: Dean Slindee | last post by:
I have a exception handling class that could be called from either a windows project app or a console project app. Is there any way for this class to determine which type of app called it without...
0
by: F.C. | last post by:
Hello, :) I'm currently writing a frontend for a console application using VB .net. I'm using the traditional Process creation to launch it and redirect input and output to my windows...
10
by: viashino | last post by:
Hi, I have written a Console Application that is doing different things, like checking the status of different network Hosts. I would like to implement a WebInterface to show such status, and...
4
by: Mo | last post by:
Hi, I am writing a console application to send a key sequence to an old clunky application on a regular interval using the windows scheduler. I can get it to work if it is a windows form...
1
by: =?Utf-8?B?cm9kY2hhcg==?= | last post by:
hey all, i have a console application that uses the console to display message status of my process. what's the best way (low impact) to get the messages as they are now into an email? thanks,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.