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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums on April 1st. BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com


Reply
Developer
Posts: 1,178
Registered: ‎02-19-2009
My Device: Not Specified
Accepted Solution

How to send an email using BlackBerry API.

Hi all,

as topic, do you know if BlackBerry offer some API to send email?
If yes what OS are supported? For example OS 4.2 or higher?

 

Is there some guide on how to use this API?

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: How to send an email using BlackBerry API.

Have you actually looked for some information on doing this yourself?

 

I suggest you do, and please do so before posting questions in general.

 

I would look at the developers guide, search this forum, and the KB.  I think you will find information that will help you do what you want in all three places. 

Developer
Posts: 1,178
Registered: ‎02-19-2009
My Device: Not Specified

Re: How to send an email using BlackBerry API.

You are right,

I founded what I need with a better search but now I've got a problem.


How to send an email using the default email address configured in the blackberry?

 

On this topic no one answered.

http://supportforums.blackberry.com/t5/Java-Development/How-to-send-email-using-RIM-api/m-p/321177/h...

 

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: How to send an email using BlackBerry API.

Think you will find someone has answered that.

 

Can you mark this as solved please.

Highlighted
New Developer
Posts: 19
Registered: ‎07-14-2008
My Device: Not Specified

Re: How to send an email using BlackBerry API.

public String getEmailAddress() 
    {
        String emailAddress;
        try {
            Session ourSession = Session.getDefaultInstance();
     
            emailAddress = ourSession.getServiceConfiguration().getEmailAddress();
        } catch ( Exception e ) {
            emailAddress = null;
        }
        return emailAddress;
    }

 

Developer
Posts: 1,178
Registered: ‎02-19-2009
My Device: Not Specified

Re: How to send an email using BlackBerry API.

thanks peter, I marked it.