BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 12-09-2010, 07:12 PM   #1 (permalink)
New Member
 
Join Date: Nov 2010
Model: 7100T
PIN: N/A
Carrier: AT&T
Posts: 6
Post Thanks: 0
Thanked 0 Times in 0 Posts
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  
Old 12-09-2010, 08:12 PM   #2 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default Re: Using Blackberry version 4.5 send email without predefined to address

Did you try passing null to the "To:" address argument?
Offline  
Old 12-09-2010, 09:26 PM   #3 (permalink)
New Member
 
Join Date: Nov 2010
Model: 7100T
PIN: N/A
Carrier: AT&T
Posts: 6
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Using Blackberry version 4.5 send email without predefined to address

Yes I did. And i get the same outcome.
Offline  
Old 12-10-2010, 12:07 AM   #4 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default Re: Using Blackberry version 4.5 send email without predefined to address

You passed a null address and the resulting email had a "To:" address in it?
Offline  
Old 12-10-2010, 06:28 PM   #5 (permalink)
New Member
 
Join Date: Nov 2010
Model: 7100T
PIN: N/A
Carrier: AT&T
Posts: 6
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Using Blackberry version 4.5 send email without predefined to address

When I pass a null address I get two 'To:' address fields stacked on top of each other. One is editable and one is not. What I would like is just one 'To:' address field that doesn't have a predefined address and is editable by the user.
Offline  
Old 12-30-2010, 01:42 PM   #6 (permalink)
New Member
 
Join Date: Nov 2010
Model: 7100T
PIN: N/A
Carrier: AT&T
Posts: 6
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Using Blackberry version 4.5 send email without predefined to address

Here's what worked. Thanks!

Code:
String eventName = Event.getSelectedEvent().getShortName();			 
			 String uri = " ";			 
			 Message mg = new Message();
			 try{
				 mg.setSubject("Say Something");
				 mg.setContent(uri);
				 Invoke.invokeApplication(Invoke.APP_TYPE_MESSAGES, new MessageArguments(mg));
			 }
			catch (Exception e)
			{
				CCLogger.error("OOps," + e.getMessage());
			}
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads for: Using Blackberry version 4.5 send email without predefined to address
Thread Thread Starter Forum Replies Last Post
Differences between recently released GSM BlackBerry OS files Raptor464 General BlackBerry Discussion 3 10-07-2009 06:52 PM
More iPhone vs. BB djm2 BlackBerry Versus 116 07-17-2008 10:42 PM
T-Mobile's Smart Phone Comparison Chart! UPDATED & NEW! :) secrecyguy General BlackBerry Discussion 5 06-02-2007 03:42 PM
Vodafone and Dimension Today Installation Information (7130e) zarza Media Center 42 06-12-2006 10:14 PM
BES for Domino 4.0 SP4 - Coming Soon jibi BES Admin Corner 0 03-01-2006 11:29 AM





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.