View Single Post
Old 12-06-2010, 05:25 PM   #1
syncronize
New Member
 
Join Date: Nov 2010
Model: 7100T
PIN: N/A
Carrier: AT&T
Posts: 6
Default Using Blackberry version 4.5 send email without predefined to address

Please Login to Remove!

I'm using Blackberry 4.5. I'm trying to send a email from my app using MessageArguments.ARG_NEW which takes in 4 arguments. What I'm wondering is there a way to send a email using MessageArguments.ARG_NEW without passing in a to address. I would like to let the user enter the address then send. The code i'm using for this is located below.

You will see i"m passing in 4 arguments -> MessageArguments.ARG_NEW,TESTING_TO_ADDRESS, EMAIL_DEFAULT_SUBJECT, EMAIL_DEFAULT_BODY

What I would like to have happen is not pass in a to address and let the user enter the email address. What happens currently is I get two "TO" fields and one has the to address that I passed in and the other one is editable. I would like to have one "TO" field that is editable by the user. Is this possible?


Code:
MessageArguments mArgs = new MessageArguments mArgs = new MessageArguments(MessageArguments.ARG_NEW,Constants.TESTING_TO_ADDRESS, Constants.EMAIL_DEFAULT_SUBJECT, Constants.EMAIL_DEFAULT_BODY);
			 Invoke.invokeApplication(Invoke.APP_TYPE_MESSAGES, mArgs);
Offline   Reply With Quote