views:

23

answers:

2

Hello folks

Our website created with "google apps" site
Which hostName is required to send mail ?

my website url is http://mydomain.com which is pointing to http://sites.google.com/a/mydomain.com/

I want to send email to registerd user.

I am using appache commomns jar to send mail to user.

currently i get error message "Sending the email to the following server failed : http://mail.google.com/a/mydomain.com:25

I used smtpPortAddress =25 & hostName=http://mail.google.com/a/mydomain.com

I am not spending money on email server setup so wants to send email through Our website which created with "google app"

Which hostName is required to send mail ?

Hope for the Best co-operation from your side !!!

Thanks in advance !!!

A: 

You could use any mail server to sent your mail.

But if you like to use GMail the server is smtp.gmail.com. But you also will have to make sure you authenticate as a valid gmail user.

JochenJung
A: 

I do not know if you can use port 25, for the encrypted SMTP port you can use

Host: smtp.gmail.com
Port: 465
Authentication: Yes
Username: [email protected]
Password: #YOUR_PASSWORD#
Security: SSL

Either way, just use smtp.gmail.com with your @yourdomain.com name.

Thilo
Vaibhav Bhalke