aspose file tools
The moose likes JForum and the fly likes Using gmail as my SMTP server Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » JForum
Reply Bookmark "Using gmail as my SMTP server" Watch "Using gmail as my SMTP server" New topic
Author

Using gmail as my SMTP server

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Hey
I'm having a bit of trouble using Gmail as my SMTP server. I'm using jforum 2.1.8 and in the admin console I have the following settings:

Email Address to use as "sender" me@gmail.com
SMTP Server smtp.gmail.com
SMTP Port [See below]
SMTP Server requires authorization? True
Requires SSL? False
SMTP username ( only if using authorization ) me@gmail.com
SMTP password ( only if using authorization ) mypassword
Send a test email E-mail: me@yahoo.com

If I set the port to be 25 I get this error:

MUST ISSUE A STARTTLS command first

So then I tried port 465 and it just hangs....

Any ideas?
Thanks in advance

[originally posted on jforum.net by sroberts82]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
try port 587
[originally posted on jforum.net by bwfrieds]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
hi,
I get the same error on port 587: MUST ISSUE STARTTLS
[originally posted on jforum.net by sroberts82]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
So that just means that the ssl connection is not established, right?

http://mail.google.com/support/bin/answer.py?hl=en&answer=13287&disablechatbrowsercheck=1
[originally posted on jforum.net by bwfrieds]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
great stuff, thanks. For anyone else my settings are:

Email Address to use as "sender" me@gmail.com
SMTP Server smtp.gmail.com
SMTP Port 465
SMTP Server requires authorization? True
Requires SSL? True
SMTP username ( only if using authorization ) me@gmail.com
SMTP password ( only if using authorization ) mypassword
Send a test email E-mail: me@yahoo.com
[originally posted on jforum.net by sroberts82]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Thanks sroberts82!

I had the same problem but now it works like a charm using these settings!
[originally posted on jforum.net by jmrsjcds]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using gmail as my SMTP server
 
Similar Threads
Aspirin Cannot Send Mails
now, I met the error "null",which files should I overwrite
Error: Send a test email
Mail and notification
Hi, trying to get spring-struts example to work...