Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have some C# code that I use for my contact form. I know it works and is not the issue. I signed up a few weeks ago and have been slowly moving away from my hosting sites mail servers.

I setup a few accounts already with google apps and when I send emails with them and to them through thunderbird they receive it.

Now I am trying to use google as my smtp to send out emails. However it does not work(I don't get really get an error expect for a timeout error as it can't send the email).

I tried using this

SMTP Host: smtp.gmail.com
username: support@mydomain.com
password: 1234567
port: 587

However this does not work. Do I need to use some other host from google since I am using my own domain name(even though I am using their services still?)

share|improve this question
    
Does your app login to the server first before sending the mail ? –  Sathya Aug 17 '10 at 21:12
add comment

1 Answer 1

up vote 2 down vote accepted

You need authentication to use Google's SMTP servers. use either TLS/STARTTL on port 587 or SSL on port 465.

http://mail.google.com/support/bin/answer.py?hl=en&answer=13287

share|improve this answer
    
Sorry I forgot to add that I tried both port 587 and 465. –  chobo2 Aug 17 '10 at 21:03
    
you are actually using TLS or SSL rather than straight SMTP? –  Colin Pickard Aug 17 '10 at 21:26
    
what do you mean by "straight smtp"? –  chobo2 Aug 17 '10 at 22:00
3  
He means that just by using port 587 or 465 doesn't mean that you are using the encryption that Google requires. Your SMTP client must be configured to use SSL or TLS in order for it to work. –  heavyd Aug 17 '10 at 22:16
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.