By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,306 Members | 1,657 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,306 IT Pros & Developers. It's quick & easy.

Sending Mail in C#

P: n/a
I have a client list in my addressbook
I have to send all of them mails.
Is there a way in which i can read my addressbook entries and send all of
them a mail
I want all this functionality in C# or vb
f possible can i send a mail directly to a contact group for example i have
created a group with the name of clientlists which has all my clients
grouped together.

Abhishek
Nov 16 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
psg
"Abhishek" <ab******@alwayshelpful.com> wrote in message
news:u1**************@TK2MSFTNGP10.phx.gbl...
I have a client list in my addressbook
I have to send all of them mails.
Is there a way in which i can read my addressbook entries and send all of
them a mail
I want all this functionality in C# or vb


For sending mail and more I use:
http://www.indyproject.org/download/DotNet.iwp
http://www.indyproject.org/download/Files/DotNet.iwp

Indy.Sockets.IndyMessage.Message
Indy.Sockets.IndySMTP.SMTP

RGDS PSG
Nov 16 '05 #2

P: n/a
fx 2.0 has a mail class.

--
William Stacey, MVP
http://mvp.support.microsoft.com

"Abhishek" <ab******@alwayshelpful.com> wrote in message
news:u1**************@TK2MSFTNGP10.phx.gbl...
I have a client list in my addressbook
I have to send all of them mails.
Is there a way in which i can read my addressbook entries and send all of
them a mail
I want all this functionality in C# or vb
f possible can i send a mail directly to a contact group for example i have created a group with the name of clientlists which has all my clients
grouped together.

Abhishek


Nov 16 '05 #3

P: n/a
On Mon, 24 Jan 2005 12:20:39 +0530, Abhishek wrote:
I have a client list in my addressbook
I have to send all of them mails.
Is there a way in which i can read my addressbook entries and send all of
them a mail
I want all this functionality in C# or vb
f possible can i send a mail directly to a contact group for example i have
created a group with the name of clientlists which has all my clients
grouped together.

Abhishek


Hi,

If you are using Outlook you can use Outlook COM interop to access the
address book.

For sending mail you can use the namespace System.Web.Mail.SmtpMail

Hans
Nov 16 '05 #4

P: n/a

If you are using Outlook you can use Outlook COM interop to access the
address book.

For sending mail you can use the namespace System.Web.Mail.SmtpMail

can u pls provide more info on this
Nov 16 '05 #5

P: n/a
Abhishek <ab******@alwayshelpful.com> wrote:

[someone else wrote] :

For sending mail you can use the namespace System.Web.Mail.SmtpMail

can u pls provide more info on this


An example of sending a mail message:

using System.Web.Mail;

class Foo
{
public static void Main()
{
MailMessage mess = new MailMessage();
mess.BodyFormat = MailFormat.Text;
mess.To = "jonathan@localhost";
mess.From = "jns@localhost";
mess.Subject = "This is a test";
mess.Body = "This is a test";
SmtpMail.Send(mess);
}
}

You can find more in the documentation at:

http://msdn.microsoft.com/library/de...temwebmail.asp

/J\
Nov 16 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.