• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Facing problems using smtp.gmail.com as smtp server

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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]
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic