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

New Contributor
Posts: 3
Registered: ‎05-14-2012
My Device: 9630
My Carrier: Telus

Message Sending ( not standard way ).

Hi All.

I would like to create email on BlackBerry without creation on the Outlook / Account side ..

I need to create a message , send it and delete...

I don't need to have it in outlook side.


First solution was to delete it in both places ( request some settings change in outlook ).

But it's not good solution for the client.. He used this option already to NOT delete emails

on outlook by deleting them on BlackBerry...


So I need to find a solution how to Create message and DO NOT save this message in Outlook.


This is how currently we create send a message...



			Store store = Session.getDefaultInstance().getStore(); Folder[] folders = store.list(Folder.SENT); Folder sentfolder = folders[0];

			Message msg = new Message(sentfolder);
			Address RecipientsList[] = new Address[1];

				String emailAdress = GET_EMAIL_ADRESS_TO();
				RecipientsList[0] = new Address( emailAdress , emailAdress);
				msg.addRecipients(Message.RecipientType.TO, RecipientsList);
				String MessageBody = GENERATE_MESSAGE(event);

				return 1;


Posts: 17,025
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Message Sending ( not standard way ).

as long as you use an exchange account to send mails they will be synchronized.

you could use another mail account, or you could implement smtp on another mail account.
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