Probably a stupid question about sending electronic mail but not be received (or sent)

Hello

I try to send an email from my BB. I use this code below...

Message msg = new Message();

try {}
String emailAddress = "[email protected]";
msg.addRecipient (Message.RecipientType.TO, new address (emailAddress, emailAddress));
                    
String fromAddress = properties.fetch () .getFromEmailAddress ();
If (fromAddress.length () > 0) {}
msg.setFrom (new address (fromAddress, fromAddress));
}
                    
If (properties.fetch () .isCopyEmailToSelf ()) {}
If (fromAddress.length () == 0) {}
                            
Returns false;
} else {}
msg.addRecipient (Message.RecipientType.BCC, new address (fromAddress, fromAddress));
}
}
                    
msg.setSubject ("Testing");
                    
content
String content = "some test string";
                    
msg.setContent (content);
                    
Transport.Send (MSG);
} catch (AddressException e) {}
                    
Returns false;
} catch (MessagingException e) {}
Returns false;
}

I followed the tutorials in the knowledge base. I want users of my application to be able to configure the address and I don't want to save a copy of the email to any folder/email address on the phone.

I'm currently debugging the code and it does throw an exception, and it is correctly signed. However, I get e-mails in the e-mail account 'to' or 'to' if account I have configured the application to bcc a copy for the account.

Do I need to configure the appliance to send emails? I don't want to use any account e-mail on the device.

Thank you

SArah

"can be sent to programtically without going through an email account set up on the phone?

There is no API that I'm aware of that will support this.

"When you say"works"he throws any exceptions, but it sends no emails no more"

Doing so on the Simulator, not the end of the email to the top in the list of Messages.  The Simulator will attempt to send it and then, since you don't have the ESS work, give up.

"If the user must create an account on the phone, do I need to modify the code to use it.

As mentioned, I don't think that this code works without an account on the phone, so I think that this question is moot.

"If you use the e-mail account on the device how is, you can define an address «of» the message?

I don't think you can define an address.

"you have more than one e-mail account on a device?

Yes.

You might find these links useful:

http://supportforums.BlackBerry.com/T5/Java-development/sending-email-messages/Ta-p/442790

http://supportforums.BlackBerry.com/T5/Java-development/retrieve-the-default-email-address-for-the-d...

http://supportforums.BlackBerry.com/T5/Java-development/send-a-message-from-a-non-default-email-addr...

Do a search too, I'm sure you'll find other useful things.

Tags: BlackBerry Developers

Similar Questions

  • Shows bad Contacts in the field when sending electronic mail, but not in the contacts list, so I can't delete them

    When I press the 'to' on the e-mail domain, all my contacts appear. However, at the end of the show 5 contacts list that are not my contacts! I checked my list of contacts and they do not appear. So so I can't delete them. My question is, how to remove? I took a page if someone wants to see it. Any help will be appreciated.

    I'm going to assume that contact names you see may be something you do not want to reveal, perhaps something like "Drunkgirlroom".

    It is a waiting Group network Invitation causing your problem. To resolve this issue, you must decline the Invitation by following these steps:

    1. click on Contacts.
    2. click on discovers invitations.
    3. click on groups.
    4. click on No, thank you.

    For reference, see the following:

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_xp-security/found-unauthorized-names-on-my-Hotmail-contact/1d8c122f-2f7a-E011-9b4b-68b599b31bf5

    I hope this helps.

  • Question about sending e-mail to multiple recipients

    Hi all

    I'm creating a workflow that will send a notification by email each time a new campaign is created. I learned that R16 is able to send emails to multiple recipients, the only concern I have is that I can't find everything will have on how to do it. It is indicated in the Guide of Preview R16 administrator you can select "specific"E-mail address ", enter several e-mail addresses directly, tried to enter several e-mail addresses separated by comma - [email protected], [email protected], [email protected] for example, but it does not work and invites me to enter a valid email address. Could someone guide me on how to enter several e-mail addresses when you select 'Specific E-mail address' or how to do it in the expression builder to set the expression that defines the list of emails. I know that by using addresses group e-mail can be used as an alternative to this requirement, but I hope that their way to proceed with workflows.

    Thank you
    Wayne

    Wayne,

    Outlook uses one; to divide email addresses have you tried?

    see you soon
    Alex

  • stupid question about UAC

    OK, it's a REALLY stupid question about UAC.

    I have several icons on my desktop. Some of them are games that must be run as administrator in XP compatibility mode.

    I rarely accidentally tried to open the icon, particularly if you use the keyboard to choose what I want.

    Is there a reason if I accidentally open a game that pushes me in height DO NOT hit 'Cancel' if I didn't intend to play the game at the moment, but trying to open something else? Something like a process being left in suspense, memory leaks, or any other reason why I can't Abort to launch the application to the UAC prompt?

    Hey, Slick,

    Clicking Cancel will prevent the running total process if you do not have to worry about the still ongoing services for memory leaks or game, etc..
    I hope this helps.
  • I just bought an acrobat adobe education dc pro license via originalsoftware.de. The activation code, sent by electronic mail, does not work... Help, please!

    I am a student at LMU Munich and I just bought the Acrobat from adobe education dc pro license via originalsoftware.de. The activation code, sent by electronic mail, does not work... It has 20 characters. Help, please!

    Thank you very much

    Philipp.

    It's probably a redemption code, https://redeem.licenses.adobe.com/getserial

    If the foregoing is unable to help you, contact adobe for hourly pst support by clicking here and, when available, click on "still need help," https://helpx.adobe.com/contact.html

  • "" Is probably the dumbest question you've ever had, but I am new to Adobe stock, more dollar club, and I guess that since there is no button to say "Download Image" that the "license and save" meant by download. I did it, it took a picture

    "" Is probably the dumbest question you've ever had, but I am new to Adobe stock, more dollar club, and I guess that since there is no button to say "Download Image" that the "license and save" meant by download. I did, it took a picture off my amount allocated, but I did not download. I followed the indications of support for downloading questions and all done to take another credit away from me and I still haven't a download. What Miss me?

    If you check your history of license, you will see the images that you have acquired a license.

    I added a credit to your account in order to replace the image duplicated under license by mistake.

    Kind regards

    Bev

  • Mail does not go to the "sent" folder and many others who were there disappeared

    may be a coincidence, but had to replace the router today. When back in emails, a lot of sent mail, including those in progress, showing not sent e-mail folder, but are still visible in the Gmail Web site.

    Looking for a suggestion to recover items in the sent mail folder. I use this fairly widely.

    Hello

    Thanks for posting the question on Microsoft Community Forums.

    It seems that the mails are not displayed in the sent files. Is this correct?

    Please answer a few questions to refine the question.

    What mail client do you use? You use Microsoft Outlook or Windows Live Mail?

    If you have questions about Windows Live Mail, post the question in the Online Forums.

    http://answers.Microsoft.com/en-us/windowslive/Forum/email

    If the question is about Microsoft Outlook, you can post the question here:

    http://answers.Microsoft.com/en-us/Office

    Hope this information helps. Provide more information so that we can help you.

  • a stupid question about the string conversion error

    I learn generic

    well generic allows setting the data type that you add to the fields of the object, right?

    I made a simple example

    class generic < String >

    {

    The name of the string;

    void set (String name)

    {myIdName = name ;}

    String get() {return myIdName ;}

    }

    class using {}

    Public Shared Sub main (String [] args)

    {

    generic < String > gn = new

    (generics) < String >;

    GN. Set (90);

    System.out.println ("name entered is:" + gn.get ());

    }

    }

    now the line

    GN. Set (90);

    I know that I send a string to the value method, but I wanted to see the error that comes when I send the argument of type other than a string and sent 90 to set method (without quotes)

    the error that slammed me is

    method defined in the class generic < String > cannot be applied to the given types

    required: java.lang.String

    found: int

    reason: int real argument cannot be converted to a java.lang.String by method invocation conversion

    corresponding to a variable of type String: String extends the object declared in the class generic

    OK here is my stupid question

    I know that int cannot be converted to a string and put 90 quotes will correct the error

    What intrigued me is the last line

    "Chain extends object declared in the class generic.


    I know that everything is under the object class

    that means that means line... ??

    thnq

    What intrigued me is the last line

    "Chain extends object declared in the class generic.


    I know that everything is under the object class

    that means that means line... ??

    Which refers to the class definition you provided:

    generic class

    You "stated" in your 'generic' class a 'collar' stretching ' the object '. It reads as if it said "String declared in the class generic.

    See "Generic Types" in the Java Tutotial

    http://docs.Oracle.com/javase/tutorial/Java/generics/types.html

    Search for the word 'object' and you'll see that word highlighted in the world. Although it appears highlighted read this line:

    As you can see, all instances of the object are replaced by T. A variable of type can be any non-primitive type you specify: any type of class, any interface, any type of table or even another variable of type.

    On this page, you will see this:

    A generic class is defined with the following format:

    class name { /* ... */ }
    

    Where each one is read as: T1 extends object ', "T2 extends object", etc.

    When you said this:

    generic class

    You replaced "T1 extends object" with "String extends object".

  • Question of sending e-mail with Treo Pro

    I always have the same problem with T-Mobile by sending emails. I have all my settings correct and with incoming and outgoing servers (using T-Mobile) and I can only receive, not send them. I'm extremely frustrated with that by the way I think about the passage of carriers to Verizon and get rid of the phone. Don't get me wrong, I've always loved Palm and treo. I thought that if I got the unlocked version of the Pro, it would work just as my Treo 755 has no problem. The only thing really different between the Pro and the 755 is now that it is running Windows Mobile software vs of the Palm (and of course all the improvements). I really need help on this cause I am actually count the days here until I change provider and go BlackBerry. Someone keep me a person of Palm and help out me! Thank you!

    Have you deleted the email account and re-create it to see if you can e-mail?  Get the Cannot Connect to server error?

    Is a known issue with WinMo 6.1 on sending e-mails with some e-mail providers that a fix has been posted here:

    http://www.Microsoft.com/downloads/details.aspx?FamilyId=d9d71b2e-d2dd-44F2-86e5-1e53aad7fb7a&displaylang=en

    This patch is not a ROM update, so each time a hard reset is done this patch will need to be reinstalled.

    Message edited by thetreoguy on 03/27/2009 18:40
  • Stupid question about compatibility

    I would be happy to search the forum for inDesign to discssions on compatibility with other editions, but it seems that it is impossible. Where this stupid question.

    Problem: a uniform translation ends me back-saved files in InDesign CS, which I created originally, but I can't open them.

    This that I have to spend $500 on an upgrade so I can open it or is there a way they can back - save it so I can open it?

    Thank you

    I think that I get it now. I doubt that the files have been saved as files InDesign CS. As I said before, it is impossible to back - save as InDesign files. Only InDesign X can save to a file, InDesign X. very probably, the provider is you open files in a later version of InDesign and save as native file of this version, InDesign 4, 5 or 6, you cannot open.

    You have three options:

    1. You are upgrading InDesign to be compatible with the version of the provider.
    2. Only translated text files, then you replace the text in your files.
    3. Having the export INX since InDesign 4 provider. If they use later to edit it can be a loss of hassle and risks of formatting.
  • REALLY stupid question about virtual machines and disks of cancellations.

    I'm a bit hesitant to ask this question because it might make me look stupid, but...

    When I'm done using Virtual PC and a virtual machine running Windows XP Pro with Vista 64 Home Premium because the host os, often I did not any significant changes to the hard disk of the virtual machine.

    What I save gets saved to a network share on my server for files and printing from Win98 and saved on a flash drive.

    Assuming that I do no configuration changes or anything else I want to keep, is there a reason barely stopping properly when I 'cancellations discs' enabled?

    Any reason, I can not save time by pressing the 'X' button and choose 'disable and remove changes '?

    I am aware of patches, but took me to inform me of the patches, and I can get patches when it's convenient for me and I always validate changes when I install the patches. I'm not using it for anything other than my classes of the school of the evening for the time being, so it is not much of a value of protection on the virtual machine, and I used to write papers on the host operating system. I just use the virtual machine to play with the admin tools in an environment where I can easily fix it a massive screw-up without spending hours to reinstall Windows.

    Hey SlickRCBD,.

    Not a stupid question at all! :)

    It's very well hit the X when you have activated the disks of cancellations. And corruption or problems with the active virtual machine will be resolved when using the drive to cancel it.

    Cody C
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • New in AS3: stupid question about event listeners...

    Hi all

    I am a newbie in Flash and have a question about event listeners. I have a site I'm developing with a movie clip navigation which is composed of several buttons. What is the right way to write the event listener?

    Here's a sample of what I have:

    I have a clip called 'buttons_mc' that contains the symbols of individual button with various names such as "btn_history". So far, I don't have an instance name for the clip of the film itself.

    My event listener:

    btn_history.addEventListener (MouseEvent.CLICK, history);

    I have to put something before the "btn_history" which refers to the video? I get this error message:

    1120: access of undefined property btn_history.

    Thank you!!!

    Julia

    Yes, it is preferable to have at least one layer dedicated to actionscript.  I often use a couple... one for code shared (functions and variables) and a level of the frame code (stop(), etc.).

    The code must be in a scenario where the button is directly accessible.  If your button is accessible in frame 1, which means that it does not animate in place such that it is not really intended to be used until you get somewhere near the bottom of the timeline, then you can target the button of the timeline that holds the buttons_mc movieclip.  So as I described earlier, if you give this movieclip an instance name of "buttons", and then to assign a code to the button on the inside you should use...

    Buttons.btn_history.addEventListener (MouseEvent.CLICK, history);

    But if the button exists somewhere down the timeline inside the buttons_mc due to the animation of the button, which means that there is more than one key image for the button, then you must place the code that you have initially shown in the last keyframe to the bottom of the timeline where he set the button in place.

    .

  • A stupid question about backup...?

    I have my production Oracle running on HP - UX database.
    I don't have any other HPUX box to test my recovery to ensure that backups are recoverable.
    Maybe this is a stupid question. Is it possible to restore the back upward in HP - UX on Enterprise Linux?
    Oracle 10g R2
    Thank you
    Smith

    Is it possible to restore the back upward in HP - UX on Enterprise Linux?

    N °

  • Electronic mail are not sent

    After the upgrade to El Capitan, my email will not send any account. He asked my password each time on two e-mail accounts. Accounts are ones I have from my ISP.

    In e-mail preferences, it is said that my SMTP server is offline.

    I read the various messages about questions by e-mail, but they are everywhere, so if someone could give a straight answer, he could make it easier to understand what I have to do.

    Thank you

    Brenda

    You know the right STMTP server address and password?

    To reset the outgoing e-mail server follow these steps:

    Under the mail menu bar > Preferences...  Choose your email account in the left pane, and then under the mail server outgoing (SMTP) select "change the list of SMTP server.  Remove the old outgoing mail servers that do not work (with the button [---]) and recreate the connection to the server with the sign [+] button.

  • Addition of Google Chrome, now Safari does not open, impossible to link electronic mail links.  Just received message "Safari is closed."  Tried deleting 3rd party add ons. Is went into preferences, Safari is the default browser, but it does not open.

    Add Google Chrome, now Safari opens Cannot link e-mail links.  Just received message "Safari is closed."  Tried deleting 3rd party add ons. Is went into preferences, Safari is the default browser, but it does not open.

    Third party extension and plug-ins?

    If Safari is slow, unresponsive, which closes unexpectedly, or has other issues

    The problem may be caused by a Safari Extension, Internet plug-in or another add-on.

    The safari Extensions, Internet plug-ins, and other modules are designed to improve or customize the browsing experience. Modules are widely available on the Internet, and some are installed as part of an application or other software. If you have Add-ons installed, an add-on might be at the root of the issue.

    If the problem is the unwanted pop-up windows, advertisements and graphics while surfing on the web, discover how to remove the ad-injection (adware) from your Mac software.

    Disable the Safari Extensions

    You can disable Extensions Safari to learn if all are causing the problem.

    1. In the Safari menu, choose Preferences.
    2. Click the Extensions icon, and then select an extension from the list.
    3. Uncheck the box enable disable this extension.

    If turning off an extension solves the problem, look for updates of the extension by clicking Update in the lower left corner of the window. Or remove the extension by clicking on the button uninstall.

    Remove Internet plug-ins and other add-ons.

    You can remove Internet plug-ins and other add-ons to see if everything is the origin of the problem. To find them, quit Safari and open these folders in library:

    • The library folder at the top level of your hard drive. Open it from the Finder by choosing go > go to folder in the menu bar. Then type /Library and then click OK.
    • The record library in your home folder. Open it by organizing the Option while choosing go > library in the menu bar.

    The folders in the library contains the following folders for modules. Move all the files in these folders to the trash.

    • Internet Plug-Ins
      Do not remove the default Browser.plugin, nslQTScriptablePlugin.xpt, Composer.webplugin of Quartz or QuickTime Plugin.plugin.
    • Input methods
    • InputManagers
    • ScriptingAdditions

    If the removal of the files in these folders solves the problem, quit Safari again and gradually put the files until you find the one at the origin of the problem:

    1. Open the Recycle Bin and select one of the files that you removed. Chose file > back up. The file back to its folder.
    2. Open Safari and see if the problem returns.
      • If the issue is returned, you have identified the add-on causing the problem. Do not use or contact its manufacturer for an updated version.
      • If the question does not return, quit Safari and put back another file.

Maybe you are looking for