try {     MailMessage mail = new MailMessage();      SmtpClient SmtpServer = new SmtpClient("smtp.gmail.com");      mail.From = new MailAddress("senttoemailaddress@gmail.com");     mail.To.Add("senttoemailaddress@gmail.com");     mail.Subject = "Test Mail";     mail.Body = "This is for testing SMTP mail from GMAIL";      SmtpServer.Port = 587;      SmtpServer.Credentials = new System.Net.NetworkCredential("emailaddress.test@gmail.com", "passW0ord");      SmtpServer.EnableSsl = true;      SmtpServer.Send(mail);      MessageBox.Show("mail Send"); } catch (Exception ex) {     MessageBox.Show(ex.ToString()); }   I'm trying to run the above code to automatically send emails, the code executes up until it reaches smtpServer.send(mail) then it just stops, the email address that I use is valid and the password is valid.
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?
Classify orbits of conjugating action on $GL_2(\mathbb{C})$ I'm trying to solve    So far I've done the first part, evaluating the summation ;  where a is just n. I'm not sure where to go from here or what it even means deduce the second summation. I understand that the summation of simply $$\sum\limits_{k=0}^n\cos(kx)$$ is derived from looking at the real part of  $$\sum_{k=0}^n{\rm e}^{ikx} $$I'm guessing they want me to see how the second summation in the question is defined by 'playing around' with the original? Meaning of 'no earlier than X days after Y' I am having trouble understanding the following notice on the American Airlines AAdvantage (miles account) :     Note: Mileage credit requests can be submitted no earlier than 15 days   after all travel is completed.   What does it exactly mean? Which of the following statements is the correct interpretation?   I have to wait for 15 days after all my travel is completed before I can request my mileage credit If I want to request my mileage credit, I have to do so within 15 days after my travel is completed Something else   In any case, I wonder, is the original statement grammatically correct? Find a closed form of the series $\sum_{n=0}^{\infty} n^2x^n$ The question I've been given is this:  Using both sides of this equation:  $$\frac{1}{1-x} = \sum_{n=0}^{\infty}x^n$$  Find an expression for $$\sum_{n=0}^{\infty} n^2x^n$$ Then use that to find an expression for $$\sum_{n=0}^{\infty}\frac{n^2}{2^n}$$  This is as close as I've gotten:  \begin{align*} \frac{1}{1-x} &amp; = \sum_{n=0}^{\infty} x^n \\ \frac{-2}{(x-1)^3} &amp; = \frac{d^2}{dx^2} \sum_{n=0}^{\infty} x^n \\ \frac{-2}{(x-1)^3} &amp; = \sum_{n=2}^{\infty} n(n-1)x^{n-2} \\ \frac{-2x(x+1)}{(x-1)^3} &amp; = \sum_{n=0}^{\infty} n(n-1)\frac{x^n}{x}(x+1) \\ \frac{-2x(x+1)}{(x-1)^3} &amp; = \sum_{n=0}^{\infty} (n^2x + n^2 - nx - n)\frac{x^n}{x} \\ \frac{-2x(x+1)}{(x-1)^3} &amp; = \sum_{n=0}^{\infty} n^2x^n + n^2\frac{x^n}{x} - nx^n - n\frac{x^n}{x} \\ \end{align*}  Any help is appreciated, thanks :) How does RNA transcription determine which half of the DNA to use? I feel that I might have a complete misunderstanding here. If DNA has two strands, how does the machinery of RNA transcription determine which one to transcribe? How to install Python 3.4 on Ubuntu? How to show that $f$ is differentiable at $x=0.$ Is there a ZIP code I can enter when paying-at-the-pump in the USA with a foreign credit card? In the USA, many  fuel dispensers that accept credit cards require a  that corresponds to the billing address of the credit card.  In Canada, for instance, we have , so it's not obvious what you're supposed to type in since the gas dispensers have only numeric keypads.  Entering '00000' or '90210' seems to always result in failed authorization.  Is there a zip code that works for credit cards with foreign billing addresses? comma delineation of consecutive endnotes Consecutive footnotes can be separated by commas by invocation of the multiple option of the  package:    \documentclass{article} \usepackage[multiple]{footmisc} \begin{document} Comma delineation of consecutive footnotes fails upon conversion to endnotes% \footnote{First note.}% \footnote{Second note.}.% \end{document}   This comma delineation fails, however, if footnotes are converted to endnotes using the  package:    \documentclass{article} \usepackage{endnotes} \let\footnote=\endnote \usepackage[multiple]{footmisc} \begin{document} Comma delineation of consecutive footnotes fails upon conversion to endnotes% \footnote{First note.}% \footnote{Second note.}.% \theendnotes \end{document}   How can one preserve automated comma delineation of consecutive endnotes? I am trying to determine the size in bytes of the contents in a VARBINARY(MAX) field in SQL Server 2005, using SQL. As I doubt there is native support for this, could it be done using CLR integration? Any ideas would be greatly appreciated. Mismatch Reputation in the thumbnail and the actual Reputation Actually this was quite surprising. A casual troll in the Users Page revealed few users with negative vote. One example is here    Then trying to see what could have causes such a low reputation, I peeked inside the Profile Page of this particular User and was surprised to see a decent positive score.    Can someone explain to me how this can be possible? Logical XOR operator in C++? Which is the most portable of sed, awk, perl and sh? Source Code Margin Comments In the paper "Beautiful Code Compelling Evidence", by J.R. Heard -- Code is formated in a particular way which includes margin comments. I am looking for a way to do this as I think it is a very clear way to comment comment code in a literate programming style. What is the best way to vertically center the content of a div when the height of the content is variable.  In my particular case, the height of the container div is fixed, but it would be great if there were a solution that would work in cases where the container has a variable height as well. Also, I would love a solution with no, or very little use of CSS hacks and/or non-semantic markup. Clojure - Side Effects Happening Out Of Order While dabbling in Clojure I've written a very basic program to echo whatever the user types into it. However, it doesn't run in a way that I'm perceiving to be natural. Here's the code:  (defn goo []   (print "echo&gt; ")   (def resp (read-line))   (print resp) )   I would expect the code to run like this (for me typing in foo as the input to read-line):  user=&gt; (goo) echo&gt; foo foonil   But instead, the echo and read-line is switched:  user=&gt; (goo) foo echo&gt; foonil   Why does this happen? Is there a subtlety I'm missing?  EDIT: From Joe's answer, the updated correct solution is:  (defn goo []   (print "echo&gt; ")   (flush)   (def resp (read-line))   (print resp)   (flush) )   Also, the flushes aren't necessary if you use println instead of print. Are tile bonuses counted twice if 2 new words are formed? An example:    O  O?   There is a triple letter tile to the right of the bottom O, indicated with a ?.  If I place an X on it, making the words OX (vertical) and OX (horizontal), do I score 50 points (scoring the tile twice) or 34 (scoring it once)? Alignment of the titles in a ToC and \Roman{section} There is a problem with the alignment of the numbering of the ToC: When we use   \renewcommand{\thesection}{\Roman{section}}   the numbers encroach on the titles. When the command is commented out, the numbers are all aligned [from the first number on the left] but the titles do not begin at the same position.  What I want is to use \Roman{section} but with the numbers being displaced after V (or 9 in arabic) so that the first letters of the  titles are all aligned !  An illustration:  %\RequirePackage{fix-cm} \documentclass[a4paper, 11pt, twoside]{article}  \renewcommand{\thesection}{\Roman{section}}  \begin{document}   \tableofcontents \normalfont %\cleardoublepage  \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY}  \end{document} What does 5' and 3' mean in DNA and RNA strands? What are 5' and 3' in DNA and RNA strands? Please clarify with some images and please use simple English. When are attributive nouns plural? Sorry for the title, it is not very evident and intuitive but I really do not how to tell it better...  Well, you know, several times, or better, many times, we use this form:  If I want to say:      "development of special weapons was   the first point in Hitler's   program..."   I will say this (a better form):      "special weapon development was..."   OK...  is it      "special weapon development"   or      "special weapons development" (note   the plural...)   what's the grammar rule in order to understand how to use this very used form?