<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Web Forms</title><link>http://forums.asp.net/18.aspx</link><description>All about building ASP.NET Pages - server controls, events, validation, etc.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Help Me! Sending email</title><link>http://forums.asp.net/thread/2398275.aspx</link><pubDate>Tue, 03 Jun 2008 15:50:03 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2398275</guid><dc:creator>pixelsyndicate</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2398275.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=18&amp;PostID=2398275</wfw:commentRss><description>&lt;p&gt;from all the research i have done for this issue, the problem is that the connection isn&amp;#39;t actually opening. Some searches I have done suggest that the particular port you are using might be closed off at the OS or the Firewall.&amp;nbsp; Also, the mailClient.Credentials might need something extra beyond a username/password. perhaps you can only READ emails from the GMAIL SMTP server and not actually send through this type of transport.&amp;nbsp; It&amp;#39;s hard to say since I generally use my ISP host&amp;#39;s SMTP server to send email (some block sending though a network not of their making, like Charter communications, to prevent people using their service as SPAM machines).&lt;/p&gt;
&lt;p&gt;are you building a spam machine? &lt;img src="http://forums.asp.net/emoticons/emotion-2.gif" alt="Big Smile" /&gt;&lt;/p&gt;</description></item><item><title>Re: Help Me! Sending email</title><link>http://forums.asp.net/thread/2398152.aspx</link><pubDate>Tue, 03 Jun 2008 15:17:31 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2398152</guid><dc:creator>jornjae</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2398152.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=18&amp;PostID=2398152</wfw:commentRss><description>&lt;p&gt;Thanks for your advise and I modified the code as what you told me.&amp;nbsp;Unfortunately, I&amp;#39;ve got this error. Could you tell me how to fix it out?&lt;/p&gt;
&lt;p&gt;&lt;img style="WIDTH:990px;HEIGHT:619px;" height="619" src="http://www.designparty.com/member/510107G/images2/error111.jpg" width="990" align="middle" alt="" /&gt;&lt;/p&gt;</description></item><item><title>Re: Help Me! Sending email</title><link>http://forums.asp.net/thread/2398028.aspx</link><pubDate>Tue, 03 Jun 2008 14:41:39 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2398028</guid><dc:creator>pixelsyndicate</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2398028.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=18&amp;PostID=2398028</wfw:commentRss><description>&lt;p&gt;you may need to make some more settings changes to your mailClient object, based on what I see in your gmail configuration (SSL and PORT)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mailClient.Port = 995;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mailClient.EnableSsl = true;&lt;/p&gt;</description></item><item><title>Please Help! Sending email</title><link>http://forums.asp.net/thread/2398006.aspx</link><pubDate>Tue, 03 Jun 2008 14:35:24 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2398006</guid><dc:creator>jornjae</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2398006.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=18&amp;PostID=2398006</wfw:commentRss><description>&lt;p&gt;I&amp;#39;d like to send email&amp;nbsp;from&amp;nbsp;my ecommerce web by using a Gmail but I don&amp;#39;t know how to modify&amp;nbsp;the code(I didn&amp;#39;t write it myself). Thanks for your help.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;This&amp;#39;s the code :&lt;br /&gt;&lt;/strong&gt;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;// Generic method for sending emails&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public static void SendMail(string from, string to, string subject, string body)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Configure mail client (may need additional code for authenticated SMTP servers)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SmtpClient mailClient = new SmtpClient(ABCConfiguration.MailServer);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NetworkCredential nc = new NetworkCredential(&amp;quot;&lt;a href="mailto:abc@gmail.com"&gt;abc@gmail.com&lt;/a&gt;&amp;quot;, &amp;quot;1234&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mailClient.Credentials = nc;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Create the mail message&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MailMessage mailMessage = new MailMessage(&amp;quot;&lt;a href="mailto:abc@gmail.com"&gt;abc@gmail.com&lt;/a&gt;&amp;quot;, to, subject, body);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Send mail&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mailClient.Send(mailMessage);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;In web.config&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;lt;add key=&amp;quot;MailServer&amp;quot; value=&amp;quot;smtp.gmail.com &amp;quot; /&amp;gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;This&amp;#39;s gmail configuration :&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;Incoming Mail (POP3) Server - requires SSL: pop.gmail.com&lt;br /&gt;Use SSL: Yes&lt;br /&gt;Port: 995&amp;nbsp; &lt;br /&gt;Outgoing Mail (SMTP) Server - requires TLS: smtp.gmail.com (use authentication)&lt;br /&gt;Use Authentication: Yes&lt;br /&gt;Use STARTTLS: Yes (some clients call this SSL)&lt;br /&gt;Port: 465 or 587&amp;nbsp; &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>