• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Facing problems using smtp.gmail.com as smtp server

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.

I was trying to use smtp.gmail.com as the smtp server for sending out emails. I made all the enteries in the WEB-INF/config/jforum-custom.conf.
But it is not working. The default port for smtp is 25 but gmail is using 465 .. Could this be the reason ?? has anyone else has configured jforum with gmail ?? Any idea what needs to be done to resolve this ..??

Thanks for your time
Dhillon
[originally posted on jforum.net by dhillon]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can set like this:



However, to make things simpler, I added a new configuration key to the cvs: mail.smtp.port.

Have fun.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rafael,

thank for the tip. but i tried to give the port number like you have given, but it did not work.

Is there anything else i could try out ??

Thanks,
Dhillon
[originally posted on jforum.net by dhillon]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi again,

I took the latest code from the cvs and them tried to debug with it .. Spammer is not able to make the connection with the gmail smtp server. It does not throw an error but just hangs there on the

transport.connect(host.substring(0, colon), Integer.parseInt(host.substring(colon + 1)),
username, password);

In the mean time could you suggest me a free smtp server which has been tried and test with the forum.

Any help would be highly appreciated.

Thanks for you time
Dhillon
[originally posted on jforum.net by dhillon]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does you mean by "hang"?

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is not able to connect to smtp server and the operation times out. I was using eclipse to debug it, so in the debug mode it just hang over when executing the statement below..

Dhillon
[originally posted on jforum.net by Anonymous]
 
when your children are suffering from your punishment, tell your them it will help them write good poetry when they are older. Like this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic