I am trying to send email  with help of my web page. I am using my Gmail id for that. I am getting error :   A connection attempt failed because the connected party did not properly respond after  a period of time, or established connection failed because connected host has failed to  respond 74.125.129.109:25   here is my c# code      using System;     using System.Collections.Generic;     using System.Linq;     using System.Web;     using System.Web.UI;     using System.Web.UI.WebControls;     using System.Net.Mail;     namespace sendmail     {       public partial class _Default : System.Web.UI.Page       {       protected void Page_Load(object sender, EventArgs e)       {       }       protected void btnSubmit_Click(object sender, EventArgs e)            {             MailMessage Msg = new MailMessage();             Msg.From = new MailAddress("email@gmail.com");             Msg.To.Add(txtToMail.Text);             Msg.Subject = txtSubject.Text;             Msg.Body = txtMessage.Text;             Msg.IsBodyHtml = true;                 SmtpClient smtp = new SmtpClient();             smtp.Host = "smtp.gmail.com";             System.Net.NetworkCredential NetworkCred = new System.Net.NetworkCredential();             NetworkCred.UserName = "email@gmail.com";             NetworkCred.Password = "mypassword";             // smtp.Timeout = 10000;             smtp.DeliveryMethod = SmtpDeliveryMethod.Network;            smtp.UseDefaultCredentials = false;             smtp.Credentials = NetworkCred;             smtp.Port = 25;             smtp.EnableSsl = false;             smtp.Send(Msg);        lblMsg.Text = "Email has been successfully sent..!!";             }        }  }
Instead of relying on my host to send an email, I was thinking of sending the email messages using my Gmail account. The emails are personalized emails to the bands I play on my show.   Is it possible to do it?
How do I remove snap? apt pretends it's not there but I can still call commands with it.  Trying to rm it says "read only file system"  root@tunnel:/# apt remove snap Reading package lists... Done Building dependency tree Reading state information... Done Package 'snap' is not installed, so not removed 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. root@tunnel:/# snap whoami email: - Showing that $\frac{z^n}{1+z^{2n}}$ is real for $|z|=1$. Is there a command that outputs ONLY the packages explicitly installed by the user? (ubuntu/debian) I have tried searching for this but there seems to be no command that can output a list of packages (ideally in Ubuntu) that I have installed, not including any dependencies. Given a template where the HTML cannot be modified because of other requirements, how is it possible to display (rearrange) a div above another div when they are not in that order in the HTML? Both divs contain data that varies in height and width.  &lt;div id="wrapper"&gt;     &lt;div id="firstDiv"&gt;         Content to be below in this situation     &lt;/div&gt;     &lt;div id="secondDiv"&gt;         Content to be above in this situation     &lt;/div&gt; &lt;/div&gt; Other elements   Hopefully it is obvious that the desired result is:  Content to be above in this situation Content to be below in this situation Other elements   When the dimensions are fixed it easy to position them where needed, but I need some ideas for when the content is variable. For the sake of this scenario, please just consider the width to be 100% on both.  I am specifically looking for a CSS-only solution (and it will probably have to be met with other solutions if that doesn't pan out).   There are other elements following this. A good suggestion was mentioned given the limited scenario I demonstrated&mdash;given that it might be the best answer, but I am looking to also make sure elements following this aren't impacted. Why is free will a widely discussed, established concept? Does this concept emerge from religious / spiritual doctrine? Why is there so much interest in this topic?  If a neural-network based AI machine with a certain high degree of complexity scores a perfect 100 every run in a turing test, have we not already refuted the idea of free will? In fact, let me extend this reasoning, if ANY machine scores a single point in a turing test (and not 100), have we not already disproved (or alternatively put in great doubt the existence of) free will? If we already created a machine that can master a certain degree of human interaction, have we not then demonstrated that human interaction is programmable? (given enough time for the creation of a complex or more appropriately elaborative neural system).   From the perspective of an external observer, such a machine would be qualitatively human although intrinsically quantitative behind a stream of 1's and 0's. It would exhibit a type of decision making indistinguishable from that of a human. Does this not reduce the type of decision making we understand to be "free will" to something quantitative, deterministic, materialist? Should I use "or" or "nor" in the following case? I wasn't forcing myself to say anything, or/nor trying to be funny.   "Or" sounds more grammatically correct to me. But "nor" has more Google results. So I'm confused. Stack Overflow technology makes me write bad answers Today I had some time and felt like writing a relatively good answer on Stack Overflow; explaining both the underlying mechanisms and good practices, unlike usual declarative answers in a "do that" style.  It took me like an hour of time, $50 if I were free lance. It'll bring me nothing but 3-5 occasional views, and - if I get lucky - some ignorant comments.  You know, it's quite discouraging.  Instead of pride for the job that was done, I feel frustrated. I know, this answer may offer help to the OP, if he ever notices it (being already satisfied with other answers).  So the only fate the answer will meet is to sink forever, below thousands other questions, falling like snow.  So, being a programmer, I am thinking of efficiency. It's a waste of time to spend so much effort to answer one question when there is no way to [actually] reuse it. So, I wouldn't do it again but just turn back into short answers mode without explanations.       Seeing other answers, I don't think I am only one with such feeling.  The current policy is driving knowledgeable and educational users away, yet it attracts inexperienced ones in numbers. Ones who will tell you to use [some technology] which they never have laid their hands upon. Ones who write answers just because they have learned some "good practice" from other questions, and this "knowledge" becomes an endless source of rep points.  The idea of Stack Overflow is rotten. It was excellent when trees were high and traffic was low.  It turned bad now; it has become a honeypot for all the "enthusiast programmers" of the world, eager to share their 2 cents faster than you can say the word "close".  You're killing a great resource. Despite all the nice words and proper declarations, it discourages the reuse of the knowledge. And encourages fast on-site answers.  Of course, the rules will tell you contrary. It's all nice and proper (if you don't mind it's strict mutual exclusivity). But mechanically, technologically it works in the way I described.  I tried to write a tag wiki. You know, it was biggest waste of time in my life. As a matter of fact, it is not a wiki at all; you can't even link to a certain section. Not to mention that nobody ever has the idea to read tag wikis.  Reference questions? Don't make me laugh. There is no good mechanism to store and categorize links. Favorites, although intended for the different purpose, are a chunk of crap when you want to use it as a reference. So, you can't compete with 30-seconds answers: a question will get 5 answers before you can even find an appropriate link.  Okay, I can organize links myself but, there are some problems:   I am just a human. I cannot remember everything I am just a human and I cannot answer questions at rate of 1 qpm. One person cannot fight the Tide. It's helpless. When technology makes people writing fast [incomplete] answers -  no good will of proper declarations can do a thing.  Even if a question gets finally closed, it won't hurt anyone - the hydra grew two more already.   You'll call me a brute for insulting honest users and innocent volunteers, but that's fact: There are much more inexperienced users than experienced ones. And inexperienced users have much more spare time to hang over than experts who have their job to do. So, from that fact we can conclude that most of the answers on Stack Overflow have a low quality. Nobody cares. But I do.   There should be a technical way to limit the activity of not-so-knowledgeable-yet-eager-to-answer users. There should be a technical preference for the closing a question over answering it (have a silly answer for the silly question? welcome to comments). There should be a technical solution to accumulate and structure knowledge, a system that lets you choose a good answer instead of writing it by hand.   That's the only way. Otherwise Stack Overflow will remain an automated dispenser of bad practices.  Well, I just felt like letting it out again. Thank you for reading. When to use IMG vs. CSS background-image? In what situations is it more appropriate to use an HTML IMG tag to display an image, as opposed to a CSS background-image, and vice-versa?  Factors may include accessibility, browser support, dynamic content, or any kind of technical limits or usability principles. I want to stop having to use sudo everytime I work in /var/www. How can I do that? I simply want to put all of my sites into this directory and work with them without too much pain. How can I straighten ALL the vertical UV lines at once? Is there a hot keyshort cut? Or if I have to do them one by one .. is there at shortcut for that? Thank you! Allow [tag:tag-name] syntax to link to any site How do I delete a folder which is nested quite deep and avoid "File name too long"? Setting environment variables on OS X What is the proper way to modify environment variables like PATH in OS&nbsp;X?  I've looked on Google a little bit and found three different files to edit:   /etc/paths ~/.profile ~/.tcshrc   I don't even have some of these files, and I'm pretty sure that .tcshrc is wrong, since OS&nbsp;X uses bash now. Where are these variables, especially PATH, defined?  I'm running  (Leopard). Is "flu" the only disease usually accompanied with "the"? From what I understand, you don't usually use "the" with diseases / illnesses / disorders ("have Alzheimer's / diarrhea / claustrophobia / dyslexia, etc." not "have the..."), but it's perfectly normal to say "have the flu". Is the flu the only exception?   Edit (this is only a side part, and can be glossed over if you will, so it's not a duplicate imo): What's so significant about the flu that other conditions don't have, so that it's entitled to "the"? Proof that Conditional of Poisson distribution is Binomial What is the best way to tokenize/split a NSString in Objective-C? How can I convert string to datetime with format specification in JavaScript? I tried Libreoffice, but its Import option while pasting in the cell is very  annoying.I also tried Gnumeric but I am not able to paste using middle button.Parcellite to make copy paste faster and middle button pasting is not working with Gnumeric. Is there any simple table maker app available that can accept only simple unformatted text? All these software are very complicated for this simple work. Can I choose to delay my turn in combat? In D&amp;D 4e there was an option to Delay your initiative:     Perform your actions as desired and adjust your initiative to your new   position in the order.   Does this rule to change initiative order still exist in 5th edition? I cannot find it in the PHB. Individual community preferences vs. SE network policy: who wins? In the recent question , the OP asks where the following question would be appropriate:     What would be the best way to approach someone that works for me about bad odor?   CHAOS team member Abby Miller  by suggesting the proposal  &#8212; which is in commitment as I'm writing this &#8212; because     One of the up voted example questions there is about dealing with an irritating coworker. This question will be perfectly on topic for that site.   In my opinion,  qualifies for the not constructive close reason*, which applies to all sites in the network, and therefore, the question shouldn't be allowed, no matter how much it has to do with workplaces.  I know Abby isn't the only one who disagrees with me about this. I once had a talk with a mod of some beta about the presence of poll/GTKY questions on his site. His position, in short, was that his community had different rules from SO and its members enjoyed such questions. I don't remember which site it was, it might even be graduated now, but I never did end up participating there.  Anecdotal examples are nice and all, but here's the real question: to what extent can individual communities/sites override network policies? To what extend should they be able to do so?  *: not constructive comes with the description "This question is not a good fit to our Q&amp;A format. We expect answers to generally involve facts, references, or specific expertise; this question will likely solicit opinion, debate, arguments, polling, or extended discussion."