Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

E-mail distribution list

Status
Not open for further replies.

josie2007

Technical User
Apr 14, 2007
90
US
Hi all,
How can I create an apps where I can send e-mail using the e-mail address I have on my database. this e-mail will be send out to all of them at the same time. Like creating a group e-mail. thanks
 
.Net 1.1 uses the System.Web.Mail namespace.
.Net 2.0 uses the System.Net.Mail namespace.

set the smtp settings
create a new MailMessage
set the properties of the message (subject, body, To, BCC, CC, from)
pass the message the SMTP.SendMail function.

if your sending out a message like a mailing list you may want to concider either emailing yourself with the clients BCC'd or sending each person their own message.

another solution is to configure an email address to forward messages to a group of people. I don't know exactly how to go about this programatically. somehow you need to interface with the stmp server to configure the forwarding@mydomain.com to forward to your list of email addresses.

I would assume if your client list is 100s of addresses this would be the better option. put the heavy lifting on the smtp server to forward messages instead of the application BCCing everyone.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top