Results 1 to 4 of 4

Thread: Sending email to multiple recipients from my vb.net application?

  1. #1
    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!

  2. #2
    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)

  3. #3
    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"));

  4. #4
    Join Date
    Oct 2005
    Posts
    2,393

    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!

Similar Threads

  1. is it possible to hide email addresses from recipients?
    By Gajalakshmi in forum Technology & Internet
    Replies: 4
    Last Post: 18-09-2010, 10:35 AM
  2. Sending to Multiple Email Addresses From Cells
    By Aspen in forum Software Development
    Replies: 4
    Last Post: 04-03-2010, 07:16 PM
  3. Application for sending email from iphone
    By Gunwant in forum Portable Devices
    Replies: 4
    Last Post: 16-02-2010, 11:24 AM
  4. Sending email from ASP.NET Application
    By VijayW in forum Software Development
    Replies: 5
    Last Post: 13-02-2009, 06:25 PM
  5. Replies: 2
    Last Post: 21-02-2008, 06:50 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,304,580.88667 seconds with 16 queries