Web Hosting Forum | Lunarpages

Author Topic: JavaMail Example / Wrapper  (Read 51116 times)

Offline Kelvin

  • Jabba the Hutt
  • *****
  • Posts: 733
JavaMail Example / Wrapper
« on: March 28, 2004, 03:30:39 PM »
Hi Folks,

I've uploaded a new JavaMail wrapper and example Jsp,  You can download it from

http://lunarwarriors.com/jsp/Mail.war

This version allows for Authentication to be switched on and off,  html based emails, multiple recipients (also CC & BCC).  Please read/edit the sendmail.jsp before using. Note as usual this is not supported by Lunarpages, any questions must be directed to this forum.
« Last Edit: August 27, 2005, 09:52:15 PM by Danielle »
Kelvin

"Failure is not an option. It comes bundled with the software."

Offline babckok

  • Space Explorer
  • ***
  • Posts: 8
JavaMail Example / Wrapper
« Reply #1 on: October 01, 2004, 10:10:00 PM »
It's working on tomcat server but not on Lp server.

Offline faisal

  • Trekkie
  • **
  • Posts: 13
JavaMail Example / Wrapper
« Reply #2 on: October 03, 2004, 05:49:57 AM »
It does work with lunar pages as I have proof of it. See
http://www.renjo.com/contactus.jsp
I have just used it as it is and only change the jsp.

Thanks for the help Kevin!

Offline babckok

  • Space Explorer
  • ***
  • Posts: 8
JavaMail Example / Wrapper
« Reply #3 on: October 03, 2004, 09:51:22 AM »
What files did you put in the lib folder?

Offline faisal

  • Trekkie
  • **
  • Posts: 13
JavaMail Example / Wrapper
« Reply #4 on: October 04, 2004, 12:59:29 AM »
Hi,
ativation.jar
and mail.jar

You should keep the class file same and then in the jps you need to make changes like specify your server address, password, login etc. Also specify "to" and "from".

It runs fine.

Faisal

Offline gvivek99

  • Spacescooter Operator
  • *****
  • Posts: 36
    • Send Gift to India at lowest price on web
JavaMail Example / Wrapper
« Reply #5 on: October 23, 2004, 11:21:01 AM »
I am testing this from my local system trying to use to send mail using LP SMTP server. But I am always getting

javax.mail.MessagingException: Could not connect to SMTP host: www.xxxx.com , port: 25

Any advice.

Thanks
gvivek99
You can send gift to India
            through
http://www.uphaar.net

Danielle

  • Guest
JavaMail Example / Wrapper
« Reply #6 on: October 23, 2004, 11:41:21 AM »
Hi gvivek99,

Is that the actual error message or did you replace your domain name with www.xxx.com ?  Also, you should not use www.domain.com for the SMTP host as www. is HTTP not SMTP.  Please use domain.com instead.

Thanks.

Offline gvivek99

  • Spacescooter Operator
  • *****
  • Posts: 36
    • Send Gift to India at lowest price on web
JavaMail Example / Wrapper
« Reply #7 on: October 23, 2004, 01:51:48 PM »
Sorry about typo mistake. I used domain.com as I got in my welcome mail.
 I am tryinh my program from command line. Is that a problem.

Thanks
You can send gift to India
            through
http://www.uphaar.net

Offline GMTurner

  • Berserker Poster
  • *****
  • Posts: 7499
    • Turner's Lounge
JavaMail Example / Wrapper
« Reply #8 on: October 23, 2004, 05:27:38 PM »
You might also want to make sure that your ISP has not blocked port 25.. more and more ISPs are blocking port 25 to make sure that you only use their SMTP server.... for your email client, are you able to use your domain as the SMTP server, or do you have to use your ISPs?
The above information may or may not reflect current policy, opinions, or views since it was likely made almost 10 years ago.

Offline gvivek99

  • Spacescooter Operator
  • *****
  • Posts: 36
    • Send Gift to India at lowest price on web
JavaMail Example / Wrapper
« Reply #9 on: October 23, 2004, 08:22:09 PM »
Hi GM,
           I think I should able to use my domain as SMTP server. I am not sure that to use SMTP server at LP. I have to be in their network or I can use these server from outside word too.

I am having one SMTP server on my local system and it works good to me. So it does not sounds ISP issue.

Hope this will help
Thanks
You can send gift to India
            through
http://www.uphaar.net

Offline colora22

  • Trekkie
  • **
  • Posts: 16
Re: JavaMail Example / Wrapper
« Reply #10 on: March 04, 2005, 10:36:21 PM »
I moved Mail.war to my public_html/webapps directory.  The only files
being extracted by resin are the class files for a bean.  I can't seem to find
any sendmail.jsp.

Prior to trying this I uploaded both mail.jar and activation.jar to my
WEB-INF/lib directory (I got these jars from java.sun.com) and am
still receiving a error message of:

package javax.mail not found on import

our domain name is coloradorealestatelocator.com
can't figure out which machine it is on. . . .

ed hubbard
ehubbard@eosdesigns.com
530.448.6792



Quote from: Kelvin
Hi Folks,

I've uploaded a new JavaMail wrapper and example Jsp,  You can download it from

http://lunarwarriors.com/jsp/Mail.war

This version allows for Authentication to be switched on and off,  html based emails, multiple recipients (also CC & BCC).  Please read/edit the sendmail.jsp before using. Note as usual this is not supported by Lunarpages, any questions must be directed to this forum.
« Last Edit: August 27, 2005, 09:52:59 PM by Danielle »

moilejterNotLoggedIn

  • Guest
JavaMail Example / Wrapper
« Reply #11 on: April 26, 2005, 07:47:37 PM »
Well - I ran into some trouble with my email web page, modeled on Kelvin's.  To test things out, I am now using the exact same JavaMail wrapper and example JSP that Kelvin mentions, in a web app I set up in my own web site.  But it seems to be broken :-(.  When I try to use it, I get this error:

Unable perform SMTP Send, Cause: javax.mail.SendFailedException: Invalid Addresses; nested exception is: class javax.mail.SendFailedException: 451 Temporary local problem - please try later

I am pretty sure my email web page used to work, until late last week - but support tells me nothing has changed on mars that could affect this... Any ideas?

Thank you!

Moises

moilejterNotLoggedIn

  • Guest
JavaMail Example / Wrapper
« Reply #12 on: April 26, 2005, 09:42:06 PM »
It seems the problem had to do with the return address specified for the email.  I used to use xyz@www.software-smiths.com (my site) - and I swear it used to work! :-)  But changing that return email address to xyz@software-smiths.com (just the domain) fixed it.  Thanks to tech support! :-)

Moises

Offline thepo2

  • Newbie
  • *
  • Posts: 1
Re: JavaMail Example / Wrapper
« Reply #13 on: August 22, 2005, 12:34:34 PM »
The link to the .war file doesn't work.  Can someone post a new link?

Offline moilejter

  • Intergalactic Cowboy
  • *****
  • Posts: 69
    • http://www.software-smiths.com
Re: JavaMail Example / Wrapper
« Reply #14 on: August 26, 2005, 07:38:33 PM »
With no promises, you can get a copy (I think it is a copy of the original Kelvin wrote) here:
http://www.software-smiths.com/Mail.zip
Notice this is not the original WAR file - just a copy of the expanded WAR, in ZIP form...

Moises

 

Share |