Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
July 22, 2014, 03:55:42 PM

Pages: [1] 2   Go Down
  Print  
Author Topic: JavaMail Example / Wrapper  (Read 40647 times)
Kelvin
Jabba the Hutt
*****
Offline Offline

Posts: 733



« 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 » Logged

Kelvin

"Failure is not an option. It comes bundled with the software."
babckok
Space Explorer
***
Offline Offline

Posts: 8


« Reply #1 on: October 01, 2004, 10:10:00 PM »

It's working on tomcat server but not on Lp server.
Logged
faisal
Trekkie
**
Offline Offline

Posts: 13


« 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!
Logged
babckok
Space Explorer
***
Offline Offline

Posts: 8


« Reply #3 on: October 03, 2004, 09:51:22 AM »

What files did you put in the lib folder?
Logged
faisal
Trekkie
**
Offline Offline

Posts: 13


« 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
Logged
gvivek99
Spacescooter Operator
*****
Offline Offline

Posts: 36


WWW
« 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
Logged

You can send gift to India
            through
http://www.uphaar.net
Danielle
Guest
« 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.
Logged
gvivek99
Spacescooter Operator
*****
Offline Offline

Posts: 36


WWW
« 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
Logged

You can send gift to India
            through
http://www.uphaar.net
GMTurner
Berserker Poster
*****
Offline Offline

Posts: 7502



WWW
« 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?
Logged

The above post was made at a time when I gave a dang and doesn't necessarily reflect my current views or opinions.

For those no longer with us ... Grr..!!

Turner's Lounge
gvivek99
Spacescooter Operator
*****
Offline Offline

Posts: 36


WWW
« 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
Logged

You can send gift to India
            through
http://www.uphaar.net
colora22
Trekkie
**
Offline Offline

Posts: 16


« 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 » Logged
moilejterNotLoggedIn
Guest
« 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 Sad.  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
Logged
moilejterNotLoggedIn
Guest
« 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! Smile  But changing that return email address to xyz@software-smiths.com (just the domain) fixed it.  Thanks to tech support! Smile

Moises
Logged
thepo2
Newbie
*
Offline Offline

Posts: 1


« 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?
Logged
moilejter
Intergalactic Cowboy
*****
Offline Offline

Posts: 69


WWW
« 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
Logged
Pages: [1] 2   Go Up
  Print  
 
Jump to: