Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

use gmail smtp server in java

133 views
Skip to first unread message

fach...@gmail.com

unread,
May 15, 2012, 7:49:34 PM5/15/12
to
I need a mail server to send emails from my java applciation can I use gmail smtp server to send emails other than from and to address toher than gmail ?
Please advice and is there any limitations?

Andrzej Adam Filip

unread,
May 16, 2012, 5:37:53 AM5/16/12
to
http://support.google.com/mail/bin/answer.py?hl=en&answer=22370
Sending mail from a different address

http://support.google.com/mail/bin/answer.py?hl=en&answer=13287
Configuring other mail clients (for using gmail email account)

BTW
Sending "from" gmail addresses should be done via smtp.gmail.com
("A" DNS records) _with SMTP authentication_ (also to gmail addresses)
Sending "to" gmail addresses should be done via gmail.com
("MX" DNS records) and does not require authentication.
"A":smtp.gmail.com and "MX":gmail.com resolve to _different_ hosts
(when I wrote the post).
0 new messages