BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 07-14-2011, 01:58 AM   #1 (permalink)
New Member
 
Join Date: Jun 2011
Model: 9800
PIN: N/A
Carrier: none
Posts: 8
Post Thanks: 1
Thanked 0 Times in 0 Posts
Default Sending E-mail from BB simulator 9800, urgent help

Please Login to Remove!

hai friends...!

i have to send the order details via e-mail from the simulator as part of my project..!

here is my code:

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

Address tolist = null;
try
{
//Address tolist[] = new Address[1];
tolist = new Address(objTo.getChoice(objTo.getSelectedIndex()). toString(), "");
}
catch(AddressException e)
{
System.out.println(e.toString());
}
try
{

msg.addRecipient(Message.RecipientType.TO, tolist);
}
catch (MessagingException e)
{
System.out.println(e.toString());
}

if(!objCc.getChoice(objCc.getSelectedIndex()).toSt ring().equals(""))
{
Address cclist = null;
try
{
//Address tolist[] = new Address[1];
cclist = new Address(objCc.getChoice(objCc.getSelectedIndex()). toString(), "");
}
catch(AddressException e)
{
System.out.println(e.toString());
}
try
{
msg.addRecipient(Message.RecipientType.CC, cclist);
}
catch (MessagingException e)
{
System.out.println(e.toString());
}
}

if(!objBcc.getChoice(objBcc.getSelectedIndex()).to String().equals(""))
{
Address bcclist = null;
try
{
//Address tolist[] = new Address[1];
bcclist = new Address(objBcc.getChoice(objBcc.getSelectedIndex() ).toString(), "");
}
catch(AddressException e)
{
System.out.println(e.toString());
}
try
{
msg.addRecipient(Message.RecipientType.BCC, bcclist);
}
catch (MessagingException e)
{
System.out.println(e.toString());
}
}

try
{
Address from = new Address("my email address", "my name");
msg.setFrom(from);
}
catch(AddressException e)
{
System.err.println(e.getMessage());
}

try
{
msg.setSubject(bsSubject.getText());
msg.setContent(txtBody.getText());
Transport.send(msg);
Status.show("message sent", 1500);
UiApplication.getUiApplication().popScreen(UiAppli cation.getUiApplication().getActiveScreen());
}
catch(MessagingException m)
{
System.err.println(m.getMessage());
}


when i debug the code,the code is working properly...! code is executing line by line in a proper manner..!

but the email has not been delivered to the To, Cc,Bcc addresses.

could you anyone please help on this issue? i have tested in BB Simulator 9800, using Eclipse plug-in.

i opened my mail account from the BB simulator's default browser, and was able to send the e-mail to another address.

thanks!
Offline  
Old 07-14-2011, 02:13 AM   #2 (permalink)
Spam Reporter
 
dc/dc's Avatar
 
Join Date: Oct 2005
Location: IAD
Model: 6230
Carrier: Voicestream
Posts: 14,524
Post Thanks: 214
Thanked 341 Times in 307 Posts
Default Re: Sending E-mail from BB simulator 9800, urgent help

You need to check the Developer section of this forum.
__________________
I h8 txtspk.
Offline  
Old 07-14-2011, 06:18 AM   #3 (permalink)
New Member
 
Join Date: Jun 2011
Model: 9800
PIN: N/A
Carrier: none
Posts: 8
Post Thanks: 1
Thanked 0 Times in 0 Posts
Default Re: Sending E-mail from BB simulator 9800, urgent help

thanx buddy..!

i posted on develpers forum, no more replies so far....! but many people have viewed...!
Offline  
Old 07-14-2011, 06:40 AM   #4 (permalink)
Spam Reporter
 
dc/dc's Avatar
 
Join Date: Oct 2005
Location: IAD
Model: 6230
Carrier: Voicestream
Posts: 14,524
Post Thanks: 214
Thanked 341 Times in 307 Posts
Default Re: Sending E-mail from BB simulator 9800, urgent help

Double-posting is bad forum etiquette. Don't do it.
__________________
I h8 txtspk.
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: Sending E-mail from BB simulator 9800, urgent help
Thread Thread Starter Forum Replies Last Post
Help understand output from messageflow.exe in BB ressource kit RonnieArrowECS BES Admin Corner 1 11-03-2011 12:41 PM
Real BB Mail Address? for Newbie savin2 General BlackBerry Discussion 5 08-03-2009 01:23 PM
E Mail Management between Laptop & BB Capt Desikan General BlackBerry Discussion 4 07-10-2008 09:17 AM
Not sending mail paulpr90 General Legacy Device Discussion 0 10-03-2005 11:48 AM

Molon LMO Motor 300RPM Impedance Protected
$7.75
Molon LMO Motor 300RPM Impedance Protected pictureDaven Power Output Meter OP 962-2 Watts Decibels Impedance
$79.99
Daven Power Output Meter OP 962-2 Watts Decibels Impedance  pictureZareba A50LIL 2 Joule 50 Mile Electric Fence AC-Powered Low-Impedance Controller
$75.0
Zareba A50LIL 2 Joule 50 Mile Electric Fence AC-Powered Low-Impedance Controller pictureVintage Kenwood Dynamic Microphone Impedance 600 with Cord
$19.99
Vintage Kenwood Dynamic Microphone Impedance 600 with Cord pictureVintage Kenwood Dynamic Microphone Impedance 600 with Cord
$19.99
Vintage Kenwood Dynamic Microphone Impedance 600 with Cord picture






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