-
October 8th, 2011, 11:04 AM
#1
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...
-
October 8th, 2011, 04:26 PM
#2
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.
-
October 8th, 2011, 05:00 PM
#3
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?
-
October 9th, 2011, 06:29 PM
#4
Re: how to send bulk mail?
-
October 10th, 2011, 01:16 AM
#5
Re: how to send bulk mail?
Originally Posted by QuinnJohns
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|