471,317 Members | 1,505 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

How can I send e-mails?

Hi,

How can an e-mail be send from a window application and from a web-based
one?
Is there a control that I can use, eventually from the Tool Box?

Thanks,
Doru
Feb 23 '06 #1
5 1050
"Doru Roman" <do*******@rogers.com> wrote in message
news:Ol**************@TK2MSFTNGP12.phx.gbl...
How can an e-mail be send from a window application and from a web-based
one?
Is there a control that I can use, eventually from the Tool Box?


1) Launch your web browser (e.g. IE, Netscape, FireFox, Opera etc)

2) Go to http://www.google.com

3) Type the string below in the box:

"C#" "send mail"

4) Hit the button
Feb 23 '06 #2
Thanks Mark for the reply.
I tried the examples I found, something like this:
MailMessage myEMail = new MailMessage();

myEMail.From = "do**@rogers.com";

System.Web.Mail.MailMessage message=new System.Web.Mail.MailMessage();

myEMail.To = "do**@rogers.com";

myEMail.Subject = "Test de trimis";

myEMail.Body = "This is the test";

SmtpMail.SmtpServer = "smtp.broadband.rogers.com";

But it doesn't work without authentication.

I use .NET 2001 and if I try this code

myEMail.Fields.Add
("http://schemas.microsoft.com/cdo/configuration/sendusername","username");

it doesn't exist in the MAIL classes, it doesn't have a Fields definition.


Feb 23 '06 #3
Hello Doru,

Did u install SMTP Service?

DR> Thanks Mark for the reply.
DR> I tried the examples I found, something like this:
DR> MailMessage myEMail = new MailMessage();
DR> myEMail.From = "do**@rogers.com";
DR>
DR> System.Web.Mail.MailMessage message=new
DR> System.Web.Mail.MailMessage();
DR>
DR> myEMail.To = "do**@rogers.com";
DR>
DR> myEMail.Subject = "Test de trimis";
DR>
DR> myEMail.Body = "This is the test";
DR>
DR> SmtpMail.SmtpServer = "smtp.broadband.rogers.com";
DR>
DR> But it doesn't work without authentication.
DR>
DR> I use .NET 2001 and if I try this code
DR>
DR> myEMail.Fields.Add
DR> ("http://schemas.microsoft.com/cdo/configuration/sendusername","user
DR> name");
DR>
DR> it doesn't exist in the MAIL classes, it doesn't have a Fields
DR> definition.
DR>
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Feb 23 '06 #4
Hi Michael and thanks for the reply. How can I install it?
"Michael Nemtsev" <ne*****@msn.com> wrote in message
news:9c**************************@msnews.microsoft .com...
Hello Doru,

Did u install SMTP Service?

Feb 23 '06 #5
Under IIS I checked and there is a Default SMTP virtual server installed.
Feb 23 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

15 posts views Thread by Steve Horrillo | last post: by
reply views Thread by zhimin | last post: by
6 posts views Thread by John J. Hughes II | last post: by
3 posts views Thread by ultr | last post: by
11 posts views Thread by hazz | last post: by
15 posts views Thread by cj | last post: by

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.