Search Options
close
Search the following clips:
All Clips
news
science
politics
food
economy
art
technology
health
internet
religion
psychology
Sign Up
Install
Learn More
Login
C# ASP - Send Email using Gmail acc
robertdondo
follow
0
8-10-2009 5:57 AM
291 views
Add a Comment
Login
to Comment. Not a member yet?
Sign up
Today's Top Clips
The Ephesian Terrace Houses
Moon Phases 2010
Never a Year Like 2009
IN SOVIET RUSSIA; JOE CAMEL SMOKES YOU.
Handbook for Living
Restoring Cells' Potential is Method of the Year
Afghanistan, New Year's Eve, 2009: Into Thine Hand I Commit My Spirit
20 Truly Epic Pictures
FASTER HORSEY, FASTER!
17 Cars That We Will Never See Again.
visit the
Top Clips page
View the Top Clips from
August 10, 2009
Embed This Clip In Your Site...
<div style="margin: 12px 0px; font-family: arial; color: #333333; background: #ffffff; border: solid 4px #e5e5e5; width: 100%; clear: left;"><div class="CM_CTB_Content_Wrap" style="margin: 0px; padding: 0px;background-color: #ffffff;"><div style="border-bottom: solid 1px #dcdcdc; white-space: nowrap; margin-bottom: 8px; background-color: #eeeeee ;background-image: url(http://clipmarks.com/images/source-bg.gif); background-repeat: repeat-x; height: 24px; line-height: 24px; vertical-align: middle; padding-bottom: 4px; color: #666666; font-size: 10px;" ><a href="http://clipmarks.com/clip-to-blog/" title="see clips that are hot right now"><img src="http://content.clipmarks.com/blog_embed/6c688082-d592-4a67-99d3-43e6cf8c219d/F3A84800-F4EC-4D34-B0E4-7CB7141C1396/" alt="" width="19" height="19" border="0" style="vertical-align: middle; margin: 0px 4px; display: inline; border: none; float:none;" /></a>clipped from <a title="http://dotnetguts.blogspot.com/2006/10/send-email-from-gmail-in-aspnet-20.html" href="http://dotnetguts.blogspot.com/2006/10/send-email-from-gmail-in-aspnet-20.html" style="font-size: 11px;">dotnetguts.blogspot.com</a></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://dotnetguts.blogspot.com/2006/10/send-email-from-gmail-in-aspnet-20.html"><STRONG>Simplest Way of Sending Email from Gmail</STRONG></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://dotnetguts.blogspot.com/2006/10/send-email-from-gmail-in-aspnet-20.html"><DIV>System.Net.Mail.SmtpClient mailClient = new System.Net.Mail.SmtpClient("smtp.gmail.com",587);</DIV></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://dotnetguts.blogspot.com/2006/10/send-email-from-gmail-in-aspnet-20.html"><DIV>System.Net.NetworkCredential("dotnetguts@gmail.com", "myPassword");</DIV></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://dotnetguts.blogspot.com/2006/10/send-email-from-gmail-in-aspnet-20.html"><DIV>mailClient.EnableSsl = true;</DIV></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://dotnetguts.blogspot.com/2006/10/send-email-from-gmail-in-aspnet-20.html"><DIV>mailClient.UseDefaultCredentials = false;</DIV></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://dotnetguts.blogspot.com/2006/10/send-email-from-gmail-in-aspnet-20.html"><DIV>mailClient.Credentials = mailAuthentication;</DIV></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://dotnetguts.blogspot.com/2006/10/send-email-from-gmail-in-aspnet-20.html"><DIV>"This is the mail subject", "Just wanted to say Hello");</DIV></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://dotnetguts.blogspot.com/2006/10/send-email-from-gmail-in-aspnet-20.html"><SPAN>//Smtp Mail <A href="#" class="kLink" target="undefined" id="KonaLink2"><FONT color="blue"><SPAN class="kLink">server</SPAN></FONT><SPAN id="preLoadWrap2"><DIV id="preLoadLayer2"><IMG src="http://kona.kontera.com/javascript/lib/imgs/grey_loader.gif" /></DIV></SPAN></A> of Gmail is "smpt.gmail.com" and it uses port no. 587<BR />//For different server like yahoo this details changes and you can<BR />//get it from respective server.<BR /></SPAN></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://dotnetguts.blogspot.com/2006/10/send-email-from-gmail-in-aspnet-20.html"><SPAN>//Proper Authentication Details need to be passed when sending email from gmail</SPAN></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://dotnetguts.blogspot.com/2006/10/send-email-from-gmail-in-aspnet-20.html"><SPAN>//Enable SSL<BR /></SPAN></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://dotnetguts.blogspot.com/2006/10/send-email-from-gmail-in-aspnet-20.html"><SPAN>//Create Mail Message Object with content that you want to send with mail</SPAN></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://dotnetguts.blogspot.com/2006/10/send-email-from-gmail-in-aspnet-20.html">System.Net.Mail.MailMessage MyMailMessage = new System.Net.Mail.MailMessage("dotnetguts@gmail.com","myfriend@yahoo.com",</blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://dotnetguts.blogspot.com/2006/10/send-email-from-gmail-in-aspnet-20.html"><DIV>MyMailMessage.IsBodyHtml = false;</DIV></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://dotnetguts.blogspot.com/2006/10/send-email-from-gmail-in-aspnet-20.html">mailClient.Send(MyMailMessage);</blockquote></div><div style="margin: 0px 6px 6px 4px;"><table style="font-size: 11px;border-spacing: 0px;padding: 0px;" cellpadding="0" cellspacing="0" width="100%"><tr><td style="background:transparent;border-width:0px;padding:0px;"> </td><td align="right" style="background:transparent;border-width:0px;padding:0px;width:107px" width="107"><a href="http://clipmarks.com/share/F3A84800-F4EC-4D34-B0E4-7CB7141C1396/blog/" title="blog or email this clip"><img src="http://content8.clipmarks.com/images/c2b-foot.png" border="0" alt="blog it" width="107" height="17" style="border-width:0px;padding:0px;margin:0px;" /></a></td></tr></table></div></div>
New from the makers of Clipmarks:
Amplify.com - Don't just share the news...Amplify it!
Clipmarks
Home
New Clips
Top Clips
Dashboard
Popular Topics
News
Life
Science
Technology
Entertainment
Get Started
Sign Up
Install Clipping Tool
How Clipping Works
Clip-to-Blog™
ClipSearch
Tools and Resources
FAQ
ClipWeek
Top Clippers
Top Tags
Site Map
About Clipmarks
About Us
Contact
Copyright
Privacy
EULA
OK