Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Contributor
hengike
Posts: 47
Registered: ‎08-26-2011
My Device: dsa

Sending mail through STMP server

Hi,
I'd like to use an smtp server and connect to it (auth etc)
And send mail through that.
But a cannot find any way :smileysad:
I cannot use

import javax.mail.internet.*;
import javax.servlet.http.*;
import javax.servlet.*;
This packages and i cannot find another how to :smileysad:
Thanks for replys :smileyhappy: 

 

Developer
simon_hain
Posts: 16,282
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: Sending mail through STMP server

blackberry java is based on j2me, you cannot use desktop java.

search the forum for some further clues.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Contributor
hengike
Posts: 47
Registered: ‎08-26-2011
My Device: dsa

Re: Sending mail through STMP server

Developer
simon_hain
Posts: 16,282
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: Sending mail through STMP server

no, it does not use the packages mentioned above.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Contributor
hengike
Posts: 47
Registered: ‎08-26-2011
My Device: dsa

Re: Sending mail through STMP server

yeah i see but it connects on http connect to the server and the from the server to the smtp. isnt there any way to connect directly to the smtp server?
Or any example? 

Contributor
hengike
Posts: 47
Registered: ‎08-26-2011
My Device: dsa

Re: Sending mail through STMP server

I search hard but i cannot find any code snippet or anything :smileysad:

Developer
streak81
Posts: 204
Registered: ‎08-09-2010
My Device: 9930, PlayBook

Re: Sending mail through STMP server

I posted this somewhere else too, but:

...you could implement a simple SMTP client that relies on a socket connection similar to this:

http://paulmcpd.blogspot.com/2009/02/j2me-smtp-client-this-one-works.html 

Contributor
hengike
Posts: 47
Registered: ‎08-26-2011
My Device: dsa

Re: Sending mail through STMP server

Thanks for reply i will give it a chance :smileyhappy:
I will accept if it work ^^