Download the e-mail account

I am doing an application with an option to e-mail send'm finds it difficult to get information from the user's e-mail account. I created a LabelField to display the sender's e-mail address, but I do not have something good because it does not appear in the field.

public void sendMail() {}
Full book book = ServiceBook.getSB ();
Reviews [] ServiceRecord = book.findRecordsByCid ("CMIME");
If (records! = null)
{
for (int i = 0; i)< records.length;="">
{
ServiceRecord record = records [i];
String name = record.getName ();
type int = record.getType ();
Dim description As String = record.getDescription ();
Check to see if you want to use this account. If Yes...
ServiceConfiguration config = new ServiceConfiguration (record);
EmailSession session = Session.getInstance (config);
fromName = emailSession.getServiceConfiguration () .getEmailAddress () m:System.NET.SocketAddress.ToString ();
from.setText ("to:" + fromName);
}
}
  
Message NewMsg = new Message();
  
try {}
Beneficiary address [] = null;
recipient [0] = new Address (emailAddress.getText (), null);
newMsg.addRecipients (Message.RecipientType.TO, container);
newMsg.setSubject (subject.getText ());
newMsg.setContent (body.getText ());
Transport.Send (newMsg);
}
catch (MessagingException e)
{
Generative TODO catch block
e.printStackTrace ();
}

}

What Miss me?

Are you receive error messages during the call to sendMail()?

It seems that you do not call your setText on the thread of the event.

final String txt = "From: " + fromName;

UiApplication.getUiApplication().invokeAndWait(new Runnable(){
    public void run() {
        from.setText(txt);
    }
});

Something like this should work. This is a quick fix. There are better ways to organize the code.

Tags: BlackBerry Developers

Similar Questions

  • Why it takes too long to open attachments of the e-mail account?

    It takes forever to download attachments from my mail account. I tried to do the following tasks explained on the vista forum: http://windowshelp.microsoft.com/Windows/en-US/help/6b046ae9-1434-4423-9303-400ff6fe686b1033.mspx#ESD, but none of the fixed work possible.

    After clicking on open on the box pop up asking if I want to open or save the attachment, it takes too long to download. The transfer window remains open to showing that he is ready to download, but rest in this window of bhox. I press cancel and try to open once again, if the chance that it opens this file, otherwise it takes forever forceing me to cancel. Very small files most of the time, usually between 50 KB should take seconds.

    I even tried to save the files, but once again the same process. The transfer case remains open but does not download.

    One of the ideas.

    Thanks in advance.

    Hello

    It is not easy to tell exactly what is happening, but it must be something with the e-mail account provider and their page. For me, this case is not a typical problem of Vista, but you can try to find the solution on Vista from Microsoft IT Pro forum.

    By the way: you have an alternative email by another provider address? Is it the same situation?

  • iCloud don't re-create us the e-mail account

    Emails from my son of 2 years have been deleted and we contacted our provider which is extracting their server. The man said that he should take up to 24 hours. He said to check our e-mail settings (which we have not touched for many years, so nothing should change). We checked and everything is the same, but we decided to remove the e-mail account and recreate it, to nine. (There only 9 emails now, it created a folder & put them in so no worries of losing any email.)

    However, iCloud isn't us leaving recreate the email account! Whenever he tries to recreate the e-mail account, it is said: "this account already exists."

    Note: iCloud is disabled on his mac, but he receives her iCloud email on his iPad and iPhone.

    How to re - create his e-mail account on his desk within the e-mail? Thanks for your suggestions. It is on the BONE El Capitan. (Please note that I can also post this question in another category for the e-mail issues. Hope that's OK).

    When you say that iCloud is not let you re-create the e-mail account, what should I say? How and where you try to "recreate" the e-mail account? What you select to go to the place where recreate you it?

    See you soon,.

    GB

  • How can I change the filter settings for the e-mail account of my child?

    How can I change the filter settings for the e-mail account of my child?

    Hi Schaefle,

    May I know if you refer to web filtering? If Yes please visit this link to learn how to change the filter settings.

    Note: for to work in web filtering settings, you must install and configure the filter of family security on each computer your child uses.

    For more information on parental controls, please visit http://windows.microsoft.com/en-US/windows-live/essentials-help-center

    Thank you!

  • I can't connect to the e-mail account on my other computer, keeps saying my mapi or outlook express, do not set up

    I can't connect to the e-mail account on my other computer, keeps saying my mapi or outlook express, do not set up

    Hello

    ·          What is the exact error message that you receive with the error code?

    ·          Do you remember all the recent changes on the computer before the show?

    ·          What is the service pack installed?

    Meanwhile, we can see: Troubleshooting error messages that you receive when you try to send and receive e-mail in Outlook and Outlook Express: http://support.microsoft.com/kb/813514

  • Windows Live Alerts to the email address and the password, date of birth, ect... to veryify the e-mail account is active for real?

    Victorinox original title: Windows Live Mail alert.

    WIndows Live Alerts to the email address and the password, date of birth, ect... to veryify the e-mail account is active for real?

    Hello

    The question you have posted is better suited to the support of Windows Live Mail. I recommend you ask your question to the Windows Live Mail support for assistance.

    Hope the helps of information.

  • How to check if the e-mail account is defined or not?

    Hello

    my application crashes to "Store store = Session.waitForDefaultSession () .getStore () this line, because it does not account for the email set.

    We can check programmatically if the e-mail account is set or not?

    If you have any ideas please share.

    Thank you...

    http://supportforums.BlackBerry.com/T5/Java-development/check-if-quot-device-can-send-email-quot-EMA...

  • BlackBerry Bold 9700 smartphones - unable to access the e-mail account configuration

    9700 OS 6 on ATT

    The problem: the email accounts through the icon of the installer cannot access.  Configuration - mail accounts.  I can highlight the e-mail accounts in the Setup menu, but can't open it.  I can open all other options in the Setup menu

    I had this 9700 for 2 years and my configuration of e-mail account and operational full-time.  My email has been hacked and I fixed that on my desktop CPU but my 9700 will still not receive or send emails.  I did the following:

    1. Reset the battery removal
    2. Deleted service books

    Everything I could find on correcting my email on the 9700 account is that I have to reset my email from my 9700 account information.  Unfortunately, I can not access account configuration menu email form.  Help please.

    Hello Marshall

    Welcome to the Forums of the BlackBerry Support

    This is the KB that deals with this error:

    KB33220 : cannot access the configuration of Messaging Application or connect to BlackBerry ID on a BlackBerry Smartphone services.

     

    Or you can use your BIS Carrier site to add / modify your e-mail account or use your BlackBerry browser, go to www.blackberry.com/integrate to add / change an e-mail account.

  • BlackBerry smartphone how to remove the e-mail account?

    Hi I just bought a BB Storm and owned a BB curve. I gave my BB curve to my daughter so she can use it, I made a transfer of information to and from BB but my email account is still active on my BB Curve. I tried to wipe it complete, but it is still there, how do I remove my email address from my old BB?

    PHEW!

    Thank you!!!

    The e-mail configuration is stored in the ENCORE, not the BB itself (the BB has an interface for BIS, but BIS is the carrier). Thus, wiping the BB does nothing on the configuration. You have to go to

    • Settings > email settings

    PC/browser on your BIS site or carriers:

    and remove the configuration for the e-mail account.

    Hope that helps!

  • How to remove the e-mail account of the Mail app

    Original title: close a Yahoo e-mail account

    Hello friends,

    We had a guest in our home using my laptop for checking emails and al. I don't know if he pressed a few buttons inadvertently on the laptop, but mail app now has his email i.d. so whenever I'm connect-in the laptop, I get a notice about new emails coming on his account. When I go to the email app, calendar and people I have access to his e-mail inbox. However I'm unable to sign out of the account and to cancel the registration of the e-mail account.

    Can someone help me how to disconnect and cancel the registration of the account please?

    Concerning

    Hi Ravindra,

    Thanks for posting your query in Microsoft Community.

    When Mail is configured, it automatically configures the calendar app and people as well. I would refer to the following article which will help you remove this yahoo account.

    Delete an account

    Hope this information is useful. Please feel free to answer in the case where you are facing in the future other problems with Windows.

  • Y at - it an easy way to renumber the e-mail accounts in the records section

    I have a number of e-mail accounts linked to TBird... I just added a new I want to move to the top of the list of folders (left column). It seems that the only way to do this is to remove the "old"... to add the new and add the 'old'... is there a better way

    The download link shows you the pictures on how to do it.

    I assume that you have downloaded the file as and installed in thunderbird.
    How to install the Extension module:
    After you download addon extension *.xpi file to the downloads or desktop folder.

    In Thunderbird
    'Tools > "Add-ons"
    or
    'The menu icon ' > 'Add-ons'

    • Click the gear icon and select 'install module file.
    • Find the downloaded *.xpi file and click 'open '.
    • You may have to restart Thunderbird when you are prompted.

    It can easily be located on the 'Menu Bar' under 'tools '.
    How to activate "Menu Bar"
    See the image below

  • I use hp eprint and that you can not set the e-mail account. Should what settings I use for the Description, host name, Port and use SSL?

    I downloaded hp eprint app and you cannot configure e-mail account

    I suggest you ask on a forum of HP. It's nothing to do with Thunderbird, as the eprint software connects directly to your email provider that I see.

    Maybe this will help http://h30434.www3.hp.com/t5/ePrint-Print-Apps-Mobile-Printing-and-ePrintCenter/Cant-find-my-computer-eprint-email-address/td-p/680697.

  • Thunderbird, re - install can not find the e-mail accounts in the previous drive C:\

    QUESTION; Where should I go from here?

    STORY:
    My C:\ drive (!.) TB) began to balk when after that I got a little more than 800 GB stored on it. My tech told me that the case of the machine would hold two internal HDs. We bought an extra 1 TB HD and it installed Windows essential, all the drivers and my regular backup utility so that we can make an immediate reflection of the drive on an external hard drive.

    Two internal parts carry Windows 7 64 bit, and by changing the Boot Setup, I can boot from either - no errors or red flags.

    I downloaded TB 31.0, installed on the new disc. then copied it to App Data and Application Data including all files in TB from the old HD (2 Windows user accounts) to discrete files on an external drive. From there on, I copied them into the appropriate folders for the two users on the new HD. Thunderbird will otherwise not them, even if I used each solution and tip, I learned with TB on a dozen years. I worked on number of days following, checked several similar articles on the forum and do not see a solution. (And my tech has never wanted to learn something about Tbird; nor has he had to in the past.)

    I just uninstalled Thunderbird 31.0 and deleted content under TB in App Data records (2) and (2) the Application data on the new drive C:\. I first of all confirmed that all previous data is available on the old HD and that the copy on the external drive is complete and accurate - and without any locking Windows security. Local settings on both old-reader/users folders were locked and could never access, but some TB related files were there in the past.

    What should I do? (1) install an older version of Thunderbird and hope I can marry the old files in? or (2) what can suggest you?

    Thanks in advance. EDJ.

    I solved the problem with a drawer 3 rd (not the best) solution. I put all the profiles of previous TB (with all mail folders) side; then configure new TB accounts access to Gmail and Yahoo mail.
    Once I drained all accumulated mail servers, I'll go through the old records (under the old profiles) and carefully, one at a time, move the folders that I need to keep the local folders account. That method appeared in an another related posts; practical, easy and he killed me.

  • Cannot create the e-mail account, but can with windows live mail

    I have a thunderbird e-mail account will not create just I have contacted my ISP and I have all the correct settings, but every time that I get a message saying. Thunderbird could not find your e-mail account settings. but on my other email account with thunderbird Charter set up very well. but when I used the settings to configure the email account in windows live mail, it worked. My ISP told me that this is a problem with thrunderbird. can someone help me please.

    Not a problem with Thunderbird, a problem with your anti-virus crashes Thunderbird to access internet.

    the configuration of the Charter is here https://autoconfig.thunderbird.net/v1.1/charter.net

    Thunderbird can not find, if it cannot connect.

    Check the firewall component of the anri virus and make sure Thunderbird has full access to the internet.

  • How can I change the e-mail account in Firefox, it uses, when I send the email from a Web site?

    When I click on an e-mail link in a page, it comes up with a box asking if I want to use gmail or outlook, which I did not? I did not have this problem on my other computer. I need to know, in Firefox, how to change this option to use my e-mail account of Qwest. Not sure I'm explaining properly. Thank you

    The mailto: protocol automatically asks you what you want to use when you click mailto: links. Default value for me on Ubuntu is Thunderbird.

    You can't exactly use your e-mail address for the to do directly from Firefox (Firefox is not a messaging application), but you really need to sign in to your account of Qwest and copy / paste the e-mail address of the recipient.

    Another thing to do is to synchronize your mail from Qwest for Thunderbird, then when you want to use mailto:, you can choose Thunderbird with ease.

Maybe you are looking for

  • Virus? Site of words...

    I just looked up a lyric of song on a lyrics site and a pop blown up on my iMac with a warning and a number of 1800 to call... So I immediately you quit safari and cleared the history and then ran malware bytes and no malware according to malware byt

  • Need to update the graphics card HD

    Is it possible to update my G72B61 NR notebook generic PnPMonitor (1600x900@60Hz) Intel(R) Intel HD Graphic card so I can play Battlefield 3?This new game requires - a Minimum(AMD) graphics card: DirectX 10.1 compatible with 512 MB RAM (ATI Radeon 30

  • Program icon missing remove

    In Windows XP, Miss me the icon Add/Remove programs in the control panel (all views). Help!

  • When you rename a file highlights only the name and not the name extension.

    Hi all When I rename a file, it highlights only the name part of the file name and not the name extension.  I need the name of entire file highlighted when I rename a file.  Where is the setting to change this? Thank you Pete

  • Is mandatory coding in Dreamweaver

    should we have knowledge of coding to work in Adode Dreamweaver? because im a beginner...