The text of this article is not in this database — only its details are. Read it on the old site: Sending mails with attachments using Gmail
14 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
The text of this article is not in this database — only its details are. Read it on the old site: Sending mails with attachments using Gmail
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
Neeraj GuptaPosted Dec 11, 2010, 5:54 AM
Hello mam , I send mail sucessfully but when i send a mail with aatachment then it genrate a error .it cant delte the attach file from server . plz help
Abhimanyu K VatsaPosted May 30, 2010, 10:35 AM
hello sir, it is really nice and useful article but I am facing 4 errors as given below: ****************************************** Error 1 'ASP.default_aspx.GetTypeHashCode()': no suitable method found to override c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\sendemailattachementsfromanyemailid\d7fe77ef\6cfcb158\App_Web_pi98-vh7.0.cs 1472 Error 2 'ASP.default_aspx.ProcessRequest(System.Web.HttpContext)': no suitable method found to override c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\sendemailattachementsfromanyemailid\d7fe77ef\6cfcb158\App_Web_pi98-vh7.0.cs 1476 Error 3 'ASP.default_aspx' does not implement interface member 'System.Web.IHttpHandler.IsReusable' c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\sendemailattachementsfromanyemailid\d7fe77ef\6cfcb158\App_Web_pi98-vh7.0.cs 241 Error 4 Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class (e.g. Page or UserControl). C:\Documents and Settings\Administrator\Desktop\SendEmailAttachementsFROManyEmailID\Default.aspx.cs 25 33 C:\...\SendEmailAttachementsFROManyEmailID\ Help me sir
irfanPosted May 17, 2010, 9:21 AM
nice yaar
Apurba sahaPosted Nov 30, 2009, 12:59 AM
Hi I wamnt to send thousand of mail automatically.I have written the below code but it's throwing exception " Operation Timed Out".I am able to send mail from my outlook configured with gmail Account. MY code as below. try { System.Net.Mail.MailMessage mail = new System.Net.Mail.MailMessage(); System.Net.NetworkCredential cred = new System.Net.NetworkCredential(UserEmailTxt.Text, EmailPwdTxt.Text); mail.To.Add(To.Trim());//"[email protected]" mail.Subject = Sub.Trim();//"Test Subject"; mail.From = new System.Net.Mail.MailAddress(UserEmailTxt.Text); mail.IsBodyHtml = true; mail.Body = Body.Trim();//"This is a sample text message"; System.Net.Mail.SmtpClient smtp = new System.Net.Mail.SmtpClient(SMTPSrvTxt.Text.Trim()); smtp.UseDefaultCredentials = true; smtp.EnableSsl = true; smtp.Credentials = cred; smtp.Port = Int32.Parse(SMTPPortTxt.Text.Trim()); //587; smtp.Send(mail); MessageBox.Show("mail sent Successfully"); LogScreenMessage("Mail has been sent to::" + To); return true; } catch (Exception ex) { this.LogScreenMessage("Mail Sent failed::"+ex.Message); return false; } Please suggest me.. Regards Apurba
Nikhil KumarPosted Sep 14, 2009, 7:10 AM
Very nice article Meetu ...
satya narayanaeditedPosted Aug 26, 2009, 12:12 PMEdited Aug 26, 2009, 12:13 PM
It is really great !
nazir kPosted Aug 17, 2009, 2:55 AM
nice article!!! keep writing.