Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 18-02-2009
Member
 
Join Date: Aug 2008
Posts: 40
Sending email to multiple recipients from my vb.net application?

Hi,

I want to know if I can send an email to multiple recipients from my vb.net application with a send command button?

Please help me with the same!
Reply With Quote
  #2  
Old 18-02-2009
Member
 
Join Date: May 2008
Posts: 44
Re: Sending email to multiple recipients from my6 vb.net application?

To specify multiple recipients for a MailMessage, simply separate each recipient with a semicolon. For example:

mail.To = "me@mycompany.com;him@hiscompany.com;her@hercompany.com";

The following code snippet demonstrates this technique.

Code:
Dim mail As New MailMessage()
mail.To = "me@mycompany.com;him@hiscompany.com;her@hercompany.com"
mail.From = "you@yourcompany.com"
mail.Subject = "this is a test email."
mail.Body = "this is my test email body."
SmtpMail.SmtpServer = "localhost" 'your real server goes here
SmtpMail.Send(mail)
Reply With Quote
  #3  
Old 18-02-2009
Member
 
Join Date: May 2008
Posts: 115
Re: Sending email to multiple recipients from my6 vb.net application?

Use code something like

Code:
MailMessage msg = new MailMessage();
msg.To.Add(new MailAddress("blah1"));
msg.To.Add(new MailAddress("blah2"));
msg.To.Add(new MailAddress("blah3"));
Reply With Quote
  #4  
Old 18-02-2009
Member
 
Join Date: Oct 2005
Posts: 2,389
Re: Sending email to multiple recipients from my6 vb.net application?

According to me here you will understand how to send the email to multiple recipients with a lot more options regarding emails from your vb.net program!

http://www.dotnetspider.com/resource...ine-Image.aspx

I hope this helps you!
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Sending email to multiple recipients from my vb.net application?"
Thread Thread Starter Forum Replies Last Post
is it possible to hide email addresses from recipients? Gajalakshmi Technology & Internet 4 18-09-2010 10:35 AM
Sending to Multiple Email Addresses From Cells Aspen Software Development 4 04-03-2010 07:16 PM
Application for sending email from iphone Gunwant Portable Devices 4 16-02-2010 11:24 AM
Sending email from ASP.NET Application VijayW Software Development 5 13-02-2009 06:25 PM
mpeg file too large to email--recipients email's returned undelive HandelMan Windows XP Support 2 21-02-2008 06:50 AM


All times are GMT +5.5. The time now is 12:14 PM.