how to send bulk mail?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: how to send bulk mail?

  1. #1
    Join Date
    Nov 2006
    Posts
    7

    how to send bulk mail?

    Hai all,
    I want to send bulk mail in asp.net using C#...Front End:Asp.Net with C# and Back End:Sql Server.
    Following code is used to sending from gmail only...how i send from yahoo,hotmail,rediffmail,etc...

    MailMessage mm = new MailMessage();
    mm.From =new MailAddress(FromTextBox.Text);
    mm.To.Add(ToTextBox.Text);
    if (FileUpload1.HasFile)
    {
    Attachment at = new Attachment(FileUpload1.PostedFile.FileName);
    mm.Attachments.Add(at);
    }
    mm.Subject = SubjectTextBox.Text;
    mm.Body = MessageTextBox.Text;
    SmtpClient sc = new SmtpClient();
    sc.Host ="smtp.gmail.com";
    sc.Port = 587;

    sc.EnableSsl = true;
    sc.Credentials =new System.Net.NetworkCredential(FromTextBox.Text,PasswordTextBox.Text);
    sc.Send(mm);
    Response.Write("Mail Sended");

    how to send bulkmail from gmail,yahoo,rediffmail,hotmail etc..
    how to attached single and multiple files and images...
    how to store sended mail with and without single and multiple attachments...
    how to do these all...please any body send code...
    thanks in advance...

  2. #2
    Join Date
    Jun 2005
    Location
    JHB South Africa
    Posts
    3,772

    Re: how to send bulk mail?

    Why ??? Why do you need to send BULK MAIL from so many Different 'Free Mail' providers..
    Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
    WPF Articles : 3D Animation 1 , 2 , 3
    Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
    Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
    All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.

  3. #3
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    3,632

    Re: how to send bulk mail?

    Frankly, why should anyone have an interest in having you send a bulk mail? After all these mail all end up in the junk mail folder and are being deleted without being read. Frankly, even if I get a mail that is passing the junk-mail filter I delete it without reading it. I don't read commersials that show up in my physical mailbox so why would I read one an electronical one?
    Debugging is twice as hard as writing the code in the first place.
    Therefore, if you write the code as cleverly as possible, you are, by
    definition, not smart enough to debug it.
    - Brian W. Kernighan

    To enhance your chance's of getting an answer be sure to read
    http://www.codeguru.com/forum/announ...nouncementid=6
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here
    http://www.codeguru.com/forum/misc.php?do=bbcode

    Get your free MS compiler here
    http://www.microsoft.com/visualstudio/eng/downloads

  4. #4
    Join Date
    Jul 2005
    Location
    Louisville, KY
    Posts
    201

    Re: how to send bulk mail?

    sounds like a spam bot.

  5. #5
    Join Date
    Jun 2005
    Location
    JHB South Africa
    Posts
    3,772

    Re: how to send bulk mail?

    Quote Originally Posted by QuinnJohns View Post
    sounds like a spam bot.
    My thoughts exactly...
    Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
    WPF Articles : 3D Animation 1 , 2 , 3
    Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
    Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
    All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center