473,385 Members | 1,907 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,385 software developers and data experts.

Sending e-mail programaticaly

I am developing a C# windows application that will allow a user to send an
e-mail to an SMS server when events happen in the system. I was going to use
System.Web.Mail namespace and use the smtpmail class to compose and send the
mail.

The application is a windows based application and when I build the
application I get an error on the using System.Web.Mail line.

Does the application have to be run on a server? I am working on XP
Professional system.

Are there additional ways to send e-mail programmatically in .Net? Any
advice or information is greatly appreciated.

--
Ron Harter | Tongue, Tied and Twisted
rh*****@pobox.com | Just an earth bound misfit ... I
| Pink Floyd

Jul 21 '05 #1
2 1278
Personally, I have never liked the idiosyncracies of System.Web.Mail which
wraps CDO.SYS "under the hood".

Fortunately, there are a number of open source or freeware SMPT mail
packages for .NET, in 100% managed code.
Try looking in the user samples at gotdotnet.com, or you might want to look
at Quiksoft's "freesmtp", for another.
Peter

"Ron Harter" <rh*****@pobox.com> wrote in message
news:eF**************@TK2MSFTNGP15.phx.gbl...
I am developing a C# windows application that will allow a user to send an
e-mail to an SMS server when events happen in the system. I was going to
use
System.Web.Mail namespace and use the smtpmail class to compose and send
the
mail.

The application is a windows based application and when I build the
application I get an error on the using System.Web.Mail line.

Does the application have to be run on a server? I am working on XP
Professional system.

Are there additional ways to send e-mail programmatically in .Net? Any
advice or information is greatly appreciated.

--
Ron Harter | Tongue, Tied and Twisted
rh*****@pobox.com | Just an earth bound misfit ... I
| Pink Floyd

Jul 21 '05 #2
The (compile time) error you are getting just means that you have to add a
reference to System.Web.dll to your project before you can use the
System.Web.Mail namespace.

You may or may not like System.Web.Mail but in most cases it works fine if
you can live with the fact that it is indeed just a wrapper around CDO.

HTH, Jakob.
"Ron Harter" wrote:
I am developing a C# windows application that will allow a user to send an
e-mail to an SMS server when events happen in the system. I was going to use
System.Web.Mail namespace and use the smtpmail class to compose and send the
mail.

The application is a windows based application and when I build the
application I get an error on the using System.Web.Mail line.

Does the application have to be run on a server? I am working on XP
Professional system.

Are there additional ways to send e-mail programmatically in .Net? Any
advice or information is greatly appreciated.

--
Ron Harter | Tongue, Tied and Twisted
rh*****@pobox.com | Just an earth bound misfit ... I
| Pink Floyd

Jul 21 '05 #3

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

Similar topics

3
by: Paul Lamonby | last post by:
Hi, I am sending a file from the server as an email attachment. The file is being attached no problem and sending the email, but I get an error when I try to open it saying it is corrupt....
1
by: coder_1024 | last post by:
I'm trying to send a packet of binary data to a UDP server. If I send a text string, it works fine. If I attempt to send binary data, it sends a UDP packet with 0 bytes of data (just the...
3
by: Robert A. van Ginkel | last post by:
Hello Fellow Developer, I use the System.Net.Sockets to send/receive data (no tcpclient/tcplistener), I made a receivethread in my wrapper, the receivethread loops/sleeps while waiting for data...
4
by: yaron | last post by:
Hi, I have a problem when sending data over TCP socket from c# client to java server. the connection established ok, but i can't send data from c# client to java server. it's work ok with...
3
by: Sydney | last post by:
Hi, I am trying to construct a WSE 2.0 security SOAP request in VBScript on an HTML page to send off to a webservice. I think I've almost got it but I'm having an issue generating the nonce...
3
by: Sells, Fred | last post by:
I'm using MSW XP Pro with Python 2.4 to develop but production will be Linux with Python 2.3. (could upgrade to 2.4 if absolutely necessary) I can also switch to Linux for development if...
9
by: Miro | last post by:
VB 2003 at the end of the code, this works great. bytCommand = Encoding.ASCII.GetBytes("testing hello send text") udpClient.Send(bytCommand, bytCommand.Length) and this recieves it Dim...
0
by: remya1000 | last post by:
by using FTP i can send files to server using vb.net. if the file is big, then it will take some time to complete the sending process to server.or if we were sending 3-4 files to the server one by...
10
by: Markgoldin | last post by:
I am sending an XML data from not dontnet process to a .Net via socket listener. Here is a data sample: <VFPData> <serverdata> <coderun>updateFloor</coderun> <area>MD2</area>...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...

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.