programmatically, select Send using email address

Hi all

I would like to write that an application with function can allow the user to select the default send using e-mail address. Anyone have idea?

Thank you for your attention and help

Hello

If you change to change the default mail setting, you can use the following code. Hope you find it help

Public Sub SendMessage() throws IOException, MessagingException

{

Store store = getStore (email from one of the registered e-mail);
Records file [] = store.list (Folder.SENT);
Folder sentfolder = files [0];
Message msg = new Message (sentfolder);
msg.addRecipient (net.rim.blackberry.api.mail.Message.RecipientType.TO, address);

msg.setSubject ("Subject");
String body = 'Something';
msg.setContent (body);
Transport.Send (MSG);

}

Public Store getStore (String regEmail)
{
Full book sb = ServiceBook.getSB ();
SRS [] ServiceRecord = sb.getRecords ();
for (cnt int = srs.length - 1; cnt > = 0; cnt-) {}
If (srs [cnt] .getCid () .equals ("CMIME')) {}
ServiceConfiguration sc = new ServiceConfiguration (srs [cnt]);
If (SC. GetEmailAddress(). Equals (regEmail))
{
Store is Session.getInstance (sc) .getStore ();.
store return;
}
}
}
Return Session.getDefaultInstance () .getStore ();
}

Tags: BlackBerry Developers

Similar Questions

  • There is a scam going around threatening to close accounts Yahoo if you do not send their email address and password?

    I received an email supposedly from Yahoo, asking my e-mail ad-dress and password, threatening to close my account if I did not send these. It sounded like a scam. Am I wrong? Why would-Ya -.
    Hoo need to ask me for that?

    It's his suspect.

    Why not ask about this in a support forum for Yahoo?

    Or maybe in a support forum for anything that you use for email?

    Firefox does not have same e-mail, so I wonder why you even asked all here?

  • With the last update auto-fill in frequently used email addresses were significantly slower to the point is now a nuisance.

    When you send e-mail to the same people over and over Thunderbird starts automatically what you guess after just a few keystrokes.

    For example, if I type js it will before semi-automatic [email protected] and I won't have to type something more.
    In the last update, the performance has regressed to what was instant now a few tenths of a second and is a big nuisance.
    Now I type in js and click on enter I just get js. If I type js and then pause for a moment and then fills semi-automatic.

    Can you if you please correct it.

    I don't think you should have concerns about installing MoreFunctionsForAddressBookbecause it's an add-on well known and widely used.

    It is unlikely that Mozilla will cancel the changes, but it may be months or years before they solve the problem. If the combination of the add-on and the CT 31 does not for you, it is always possible to reinstall the previous version:

    http://FTP.Mozilla.org/pub/mozilla.org/Thunderbird/releases/24.8.0/Win32/

  • Direct mail - send muliple email addresses

    I don't know how to ask the question Microsoft but like many other people, I use Live Mail to collect mail from a number of POP boxes and then I answer under the same name. It would be really nice to be able to Live Mail auto divide sent as incoming mail items sent in different boxes. The search feature is good to find a piece of outgoing mail, but would be very useful to divide them.

    Hello

    no use asking him here

    This is not microsoft

    Try live help forums

    http://windowslivehelp.com/

  • Please EXAMINE MY, MY IP ID AND SEND VERIFICATION CODE to MY EMAIL ADDRESS THAT IS * E-mail address is removed from the privacy *.

    Hi, I'm the real owner of the * address email is removed from the privacy * I know the secret code and my password but I do not use my secondary e-mail that is written on my info, so I can't get the verification code.  I just reset my password for 10. time I guess, but I can not connect. He said that my account is temporarily blocked.   It's probably the 20. time that I write in the forum (first of all here)

    I'm tired to write my problem several times...

    In short, it is the solution that should be made by you: study please me (Bank of the IP ID represents what you name it) and send the email address verification code * address email is removed from the privacy * so I can connect without problems.

    Please help me as soon as possible...

    I'm crazy for 5 days...

    I posted this on Windows Live solution center as a Windows live ID section but nobody helps me for 5 days...

    They all seem like they are robots. (they are just giving the links that I have overcome several times)

    Really give wages to sending links like bots?  Everything I know how employees think about their job because I have 30 under my command.

    I know the problem I know that the solution that they take effect only but no one... HELP ME AS SOON AS POSSIBLE PLEASE...

    I got this e-mail in order to recover * address email is removed from the privacy... *

    Where I put my complaint? Can I use my network and get in touch with Microsoft officials that I already know? or someone will solve my problem as soon as possible?

    Hi tolkiii,

    We cannot help with issues such as changing the alternative e-mail address without being able to connect to the Windows Live account.

    You must wait for a response from the Windows Live Solutions Center.

    Check out the link using Windows Live:

    http://windowslivehelp.com/product.aspx?ProductID=1

    Hope this information is useful.

    Jeremy K
    Microsoft Answers Support Engineer

  • Windows mail seized semiautomatic selects all email address

    Suppose that my AutoComplete cache already has an e-mail address "fr.vicky <*** email="" address="" is="" removed="" for="" privacy="" ***="">", when I type "fr.v", it highlights that email address but it does not select entire address. Instead, it selects only "icky <*** email="" address="" is="" removed="" for="" privacy="" ***'="" part.="" if="" i="" keep="" typing="" 'i'="" at="" this="" time,="" it="" will="" put="" 'fr.viom="">' in the receptive field. This happens before. What could cause this problem?

    Try to clear the AutoComplete cache and restarting. It is in the registry and could have been corrupted.

    How to delete registration completion email in Windows Mail
    http://www.Winhelponline.com/articles/245/1/how-to-clear-the-email-auto-complete-entries-in-Windows-mail.html

    How to remove an address from the list of AutoComplete in Windows Mail
    http://email.about.com/od/windowsmailtips/Qt/et_del_autocomp.htm

  • How can I add my email address to my digital signature?

    In the past, whenever I've digitally PDF documents, signed my used email address appears next to my digital signature in Adobe Acrobat Standard 9.0.  However, because I bought a new computer and upgraded to Windows 10 when I sign digitally a document my e-mail does not appear next to my signature.

    How can I add my email address to my digital signature?  And why it no longer appear?

    Are you still using Acrobat 9? If so, BONE is not important. If you use a signature certificate that contains no email field (it's optional) now?

    I believe that most users did not want to send in the appearance of the default signature, so it was deleted. If you are now using a newer version of Acrobat, as 11 or DC, you can create a custom look in which you must check "Distinguished Name". This is where email comes in the certificate.

  • AYahoo (business) account with two email addresses stopped working properly on Firefox a few days ago. OK in other browsers, Firefox ok on other accesoriess.

    Worked fine until a few days ago. We have an account of Yahoo business, with two addresses. Normally, we can see only an e-mail account to the time, and to change the points of view, there is a drop-down list box top left of Yahoo mail which normally allows the selection of the desired account. Now in these last days, by selecting the drop-down list box only will take you to the Yahoo profile update page, not the drop down menu which allows us to change the e-mail account, we want to see. Correct operation is noted in IE9, but neither Firefox 32-bit or 64-bit allows you to select the second email address.

    try to read Web sites look bad or display differently they should

  • HP Officejet 4630: Email address

    I created my eprint and the printer gave me an email address. When I register for their account in the snapshot of ink, it displays a different email address of the printer. I try to change in Hp connected, it gives me an error message. Any ideas on how to get the same email addresses?

    Hey @icehckylvr,

    Welcome to the Forums of HP Support! I hope you enjoy your stay here.

    I understand that you are trying to register for instant ink and the email address listed on your Officejet 4630 e-all-in-one printer is not the same as figure on the printer email address. I can help you with that.

    If for the printer email addresses do not match that means one of three things happening:

    1. The printer is not the same physical printer which was originally setup for ePrint.
    2. The associated connected HP account email address isn't used email address initially.
    3. The printer has been reset or had removed from web services.

    Any case, it's what happens there are two ways to solve this problem: find the e-mail address associated with the original account HP connected or remove and enable Web Services on the printer.

    If you decide to find the email associated with the original account, then you will find the account yourself, with no assistance from HP Cloud Services. Unless you already have an instant account ink HP Cloud Services have no way to be able to help find the original HP connected account.

    If you decide to remove and enable Web Services, then:

    1. On the printer, click web services icon that looks like a tablet with a phone beside her.
    2. Click on the button "-" next to settings.
    3. Scroll to delete Web Services and press OK.
    4. From the main screen click the icon of web services again.
    5. Click on I accept and click on Yes.
    6. The printer prints a page with a new claim code, which you can use to add the printer for the current connected HP account.

    Please let me know if it solves your problem. If you have any other questions, let me know and I will be able to help you further.

    I hope that this helps the inscription to instant ink and I hope you have a wonderful evening!

    If this solves your problem then please help others to find this post by clicking on accept as Solution on my post.

    If you appreciate my help so please let others know by clicking on the icon below my post thumbs up.

  • can I change my email address

    I want to change [email address redacted] to [email address redacted]. Can I do this?

    Never send your email addresses on a public forum. He'll get picked up by spammers and not nice people.

    MSN Hotmail: main problems and Support information - http://support.microsoft.com/kb/316659
    Contact Hotmail (MSN) - http://www.hotmail.msn.com/cgi-bin/dasp/ua_info.asp
    Phone: http://support.msn.com/accessnumbers.aspx
    Support for users of MSN, Hotmail - https://accountservices.passport.net/CustomerSupport.srf
    Support for hotmail application - http://www.hotmail.msn.com/cgi-bin/support MS - MVP - Elephant Boy computers - Don ' t Panic!

  • Is it possible to send an email to everyone in my address book WITHOUT typing/select each address individually?

    My old e-mail address will be aborted and I need to tell everyone in my address book of Mozilla Thunderbird. Is it possible to send an email to everyone in my address book WITHOUT typing/select each address individually?

    Hello zmerill
    Yes it is possible and simple to do.
    -In the composition of the TB window, display on the left address books
    -Select the address book you
    -Select normally the first contact (left click)
    -by pressing the SHIFT key, select the last contact (-> all selected)
    -just below the last contact, use the button you want.

    In an address book, it is also possible to create a mailing list.

    Stone

  • How can we change the preference which e-mail address thunderbird uses to send an email when you use the button "write"?

    I currently have two accounts in use on my thunderbird. When sending emails on Mozilla Thunderbird, immediate preference is to send from the first account I added to the program, but most of the time, I only want to send emails on the second account. I often forget to change the e-mail address of the sender to the top of the message window that becomes a gene. I don't know there must be a way to change the preferences around, but for the life of me I can't find it anywhere!

    If you are viewing emails and folders for the account 'A' and choose to write a new message, and then FROM use e-mail address of account 'A'.

    If you were displaying foldres 'B' and email account and choose to write a new message, and then FROM use account address email 'B '.

    If you view e-mails in local folders and choose to write a new message, then FROM using anything that is set as default.

    At the top e-mail account is the default e-mail account.

    You can change which account is set as the default value.

    • 'Tools' > 'account settings '.
    • Select the e-mail account you want to set as default
    • Click on "Actions account."
    • Select: "set as default"
    • Click OK to save the changes.

    The news 'Tools' > 'Account settings' guess you have activated all your toolbars. Otherwise, you can also access the "Account settings" via:

    • '3 bar menu icon' > 'Options' > 'account settings '.

    or

    • Right click on the email account in the left pane of the folder, and then select "settings".

    As you have only two e-mail accounts, it is easy to exchange the default and change the order that they are displayed. If later, you add several email accounts and need to change the order of these accounts, not only to define a default value, you can use this addon:

    Please note that this addon also lets you reorganize the folders.

  • I can't send an email to several addresses e-mail using the mail on my iMac running OS 10.11.4.  The email goes into the Outbox, but it cannot be sent from there.  Any suggestions? Thank you.

    I can't send an email to multiple email addresses, using Apple mail on my iMac running OS 10.11.4.  With all the addresses email goes into the Outbox, but cannot be sent from there.  All solutions?  Thanks for your help.

    That could happen if one of the addresses is incorrect.

  • Someone uses another SMTP relay and then using my email address to send spam.

    Someone uses another SMTP relay and then using my email address to send spam. They have no access to my hotmail otherwise I see on sent items. I can see the SMTP server on the header. What should do?

    They send SPAM to some of my contacts.

    Someone uses another SMTP relay and then using my email address to send spam. They have no access to my hotmail otherwise I see on sent items. I can see the SMTP server on the header. What should do?

    They send SPAM to some of my contacts.

    Not a question for the forum of Virus and malware/scanning software and removal of threats.

    A moderator will move your post to the Forum Microsoft Account, Hotmail, Skydrive.

    http://ask-Leo.com/my_contact_list_is_getting_spam_from_me_what_do_i_do.html

  • I need to change my password. I've been hacked. Someone is using my email address to send messages to my contacts

    My email address has been hacked to send spam under my name.    I have to close my account or change my password.   Help, please.

    Hello

    HotMail has its own Forums, so you can ask your questions there.

    Windows Live Solution Center - HotMail - HotMail Forums Solutions
    http://windowslivehelp.com/

    Hotmail - Forums
    http://windowslivehelp.com/forums.aspx?ProductID=1

    Hotmail - Solutions
    http://windowslivehelp.com/solutions.aspx?ProductID=1

    How to contact Windows Live Hotmail Support
    http://email.about.com/od/hotmailtips/Qt/et_hotmail_supp.htm

    Windows Live Hotmail Top issues and Support information
    http://support.Microsoft.com/kb/316659/en-us

    Compromised account - access unauthorized account - how to recover your account
    http://windowslivehelp.com/solution.aspx?SolutionID=6ea0c7b3-1473-4176-b03f-145b951dcb41

    Hotmail hacked? Take these steps
    http://blogs.msdn.com/b/securitytipstalk/archive/2010/07/07/Hotmail-hacked-take-these-steps.aspx

    ===============================================================

    Proceed to a very thorough check for malware and then change your password by e-mail.

    It is possible for a person to send the email that 'seems' to be of your
    account but that is not really - called "Spoofing." That means its 'Possible' emails
    were not really you, although they may have your contact list. Have someone
    who receives the e-mails to check the header to see where he is actually sent by and
    NOT only the answer to the address.

    How to read the message headers
    http://www.high-speed-Internet-Access-Guide.com/articles/email-headers.html

    E-mail spoofing
    http://en.Wikipedia.org/wiki/E-mail_spoofing

    E-mail spoofing and Phishing
    http://www.mailsbroadcast.com/email.broadcast.FAQ/46.email.spoofing.htm

    Understanding E-mail Spoofing
    http://www.windowsecurity.com/articles/email-spoofing.html

    Fraudulent emails (false)
    http://pages.eBay.com/education/spooftutorial/

    Google search - email Spoofing
    http://www.Google.com/search?hl=en&EI=FB1nS9DiNo7CsQPNhKGdAw&SA=X&Oi=spell&resnum=0&CT=result&CD=1&ved=0CAgQBSgA&q=email+spoofing&spell=1

    =============================================

    If you need search malware here's my recommendations - they will allow you to
    scrutiny and the withdrawal without ending up with a load of spyware programs running
    resident who can cause as many questions as the malware and may be more difficult to detect as the
    cause.

    No one program cannot be used to detect and remove any malware. Added that often easy
    to detect malicious software often comes with a much harder to detect and remove the payload. Then
    its best to be thorough than paying the high price later now too. Check with them to one
    extreme overkill point and then run the cleaning only when you are sure that the system is clean.

    It can be made repeatedly in Mode safe - F8 tap that you start, however, you must also run
    the regular windows when you can.

    Download malwarebytes and scan with it, run MRT and add Prevx to be sure that he is gone.
    (If Rootkits run UnHackMe)

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN

    Malwarebytes - free
    http://www.Malwarebytes.org/

    Run the malware removal tool from Microsoft

    Start - type in the search box-> find MRT top - right on - click RUN AS ADMIN.

    You should get this tool and its updates via Windows updates - if necessary, you can
    Download it here.

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN
    (Then run MRT as shown above.)

    Microsoft Malicious - 32-bit removal tool
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=AD724AE0-E72D-4F54-9AB3-75B8EB148356&displaylang=en

    Microsoft Malicious removal tool - 64 bit
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=585D2BDE-367F-495e-94E7-6349F4EFFC74&displaylang=en

    also install Prevx to be sure that it is all gone.

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN

    Prevx - Home - free - small, fast, exceptional CLOUD protection, working with others
    security programs. It is a single scanner, VERY EFFICIENT, if it finds something to come back
    here or use Google to see how to remove.
    http://www.prevx.com/   <-->
    http://info.prevx.com/downloadcsi.asp  <-->

    Choice of PCmag editor - Prevx-
    http://www.PCMag.com/Article2/0, 2817,2346862,00.asp

    Try the demo version of Hitman Pro:

    Hitman Pro is a second scanner reviews, designed to save your computer from malicious software
    (viruses, Trojans, rootkits, etc.). who infected your computer despite safe
    what you have done (such as antivirus, firewall, etc.).
    http://www.SurfRight.nl/en/hitmanpro

    --------------------------------------------------------

    If necessary here are some free online scanners to help the

    http://www.eset.com/onlinescan/

    New Vista and Windows 7 version
    http://OneCare.live.com/site/en-us/Center/whatsnew.htm

    Original version
    http://OneCare.live.com/site/en-us/default.htm

    http://www.Kaspersky.com/virusscanner

    Other tests free online
    http://www.Google.com/search?hl=en&source=HP&q=antivirus+free+online+scan&AQ=f&OQ=&AQI=G1

    --------------------------------------------------------

    Also follow these steps for the General corruption of cleaning and repair/replace damaged/missing
    system files.

    Run DiskCleanup - start - all programs - Accessories - System Tools - Disk Cleanup

    Start - type this into the search-> find COMMAND to top box and RIGHT CLICK-
    RUN AS ADMIN

    Enter this at the command prompt - sfc/scannow

    How to analyze the log file entries that the Microsoft Windows Resource Checker
    (SFC.exe) program generates in Windows Vista cbs.log
    http://support.Microsoft.com/kb/928228

    Run checkdisk - schedule it to run at the next startup, then apply OK then restart your way.

    How to run the check disk at startup in Vista
    http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html

    -----------------------------------------------------------------------

    If we find Rootkits use this thread and other suggestions. (Run UnHackMe)

    http://social.answers.Microsoft.com/forums/en-us/InternetExplorer/thread/a8f665f0-C793-441A-a5b9-54b7e1e7a5a4/

    I hope this helps.

Maybe you are looking for