Read mail from my email Account

Hai friends..
I've just started working with the mail API.. I've gone through the code samples but couldn't get a clear picture on how to extract the body of an email message in some mailbox of mine.. Let me elabourate..
I have an email account say [email protected] which is an smtp based account
smtp address = smtp.mail.xyz.net
pop address = pop.mail.xyz.net
authentication id = abc, password = passwd
I want to extract the contents of an email residing in my INBOX using a java program.. Can somebody send a sample code of how to do this
Warm egards
Dst

Don't know if this will help but I found a tutorial on the Sun website:
http://developer.java.sun.com/developer/onlineTraining/JavaMail/contents.html

Similar Messages

  • Using mail app from 2 diff computers to access mail from same email account

    I have a mac at home and at work. I would like to receive my email at my mac at work and at home using apple mail. I dont know if it is relevant or not, but my mac at work is on 10.2 and is an older imac with an older mail app obv. And my mac at home is on 10.5. The problem is that once my home computer retrieves the emails from gmail, my work computer wont get those same messages. How do I get both computers to retrieve all of the messages from my gmail inbox? I like the fact that if I get my mail at one computer, I cant get that mail at another computer. What do I do and what are my options?

    Doesn't gmail allow you to set up your account as an IMAP account? That would solve the problem.
    If gmail doesn't let you configure as an IMAP account, consider getting another email provider. I'm not an AOL fan boy by any means (I actually run my own personal 5-account postfix/dovecot-IMAP email server at home), but they are IMAP, they are free, and Apple Mail's new account wizard (at least on Tiger and later) really streamlines the creation of an AOL/AIM email account. Plus, if you use iChat, you already have the AIM account set up. If not, you have to pay a visit to webmail.aim.com and create an account (no need to download the AIM application that they are pushing)

  • Sending e-mail from BT email account

    Hello,
    hope someone can help. We are abroad and have managed to get hold of a mobile "pay as you go" with three. When connected and opening e-mail all emails are received but it is not possible to send.
    Can anyone help please ?
    Many thanks,
    rgds Mandie

    timron wrote:
    Hello,
    hope someone can help. We are abroad and have managed to get hold of a mobile "pay as you go" with three. When connected and opening e-mail all emails are received but it is not possible to send.
    Can anyone help please ?
    Many thanks,
    rgds Mandie
    Hi Mandie.
    I assume you're probably using a laptop using Outlook or Windows Mail, something like that.
    In order to send from these sorts of programs, you normally have to alter the settings of each email account to use the smtp server of the connection you are on - and then alter when you have finished.
    The best method is to use webmail. Login to :-
    http://mail.yahoo.com
    where the Yahoo! ID is your full BTinternet email address.
    If you've never used webmail before, it may take a little while to get used to, but give it a go. Of course, any sent emails will be stored within webmail, not "Outlook/Windows Mail/Thunderbird" - and any email addresses you may need to use will have to be copied manually (or copy/paste) from "Outlook/Windows Mail/Thunderbird"
    http://www.andyweb.co.uk/shortcuts
    http://www.andyweb.co.uk/pictures

  • Cannot send mail from yahoo email account.

    I recently developed a problem with sending messages through the ipad mail app. The primary server is Yahoo! SMTP Server with the SSL use on and port 465 open. However the hostname isn't specific. Just says "Yahoo! SMTP Server". I can't access it to change it so I made a second one below it as outbound.att.net because on AT&T website they changed the smtp settings. The outgoing mail port # is still the same...465 and I read online to change to 25 if the account is a business yahoo email but mine isn't and the ipad froze on me while attempt to verify. Can someone help me sort this out? I only have this issue when I'm on the actual data plan and I'm on the go.

    Not sure about yahoo, but for gmail, I done the following:
    Set up using Exchange on iPhone, it'll keep prompting for password.  On PC use captcha option, log in to gmail account from PC after completingg captcha option, enter password on iPhone.
    See how that goes for gmail, let us know.
    Hopefully someone will have fix for yahoo.

  • Is it possible to receive email in icloud from another email account?

    Hi,
    Does anyone knows is it possible to receive mail from another email account in icloud?

    The iCloud control panel requires Windows Vista or later.
    Regards.

  • Mail 8.2 Sending Messages from Wrong Email Account

    This has been happening more often than not lately on the Mail 8.2 app. It's driving me crazy, and really messing up my business since I have a professional email (using Outlook) and a personal email (Gmail).
    Both email accounts are setup on my Mac Mail. What has been happening is that when I write an email with my professional email (Outlook) and hit send everything seems fine and it will send (like it should!). It shows up in my sent messages in the Mac Mail app under my Outlook account and everything, great!... Oh, but the thing is, it doesn't really send from my Outlook account.
    When I log into my Outlook account on my web browser, the email is not shown to have been sent. But, When I log into my Gmail account on the web... What?! There is the message in my Gmail sent folder! How??? It has my signature from my Outlook account and everything. To add to the strangeness, when I look at my Mail app on my iPhone, it says that the email was sent from my Gmail, and not my Outlook...
    So, Mail on my Mac says sent from intended email account (Outlook), but in reality it somehow gets magically sent from my personal Gmail account... and shows up on the webpages and my iPhone as sent form Gmail... This doesn't happen every time. Just when Mail feels like it I guess, HA!
    This is frustrating. Since it doesn't happen all the time, I never know if people are getting my emails, but I finally got the fluke to happen with a friend. Voila, in fact when this happens even though it's being sent in Mail though my Outlook account, my friend receives the email from my Gmail account with my Outlook signature...
    What is going on? Is anyone else having this issue?
    I need my personal and professional messages synced to my iPhone and Mac, or I would just say good riddance to the Mac Mail app.
    I will just have to start sending my professional messages form the Outlook webpage until this is fixed. This is really unprofessional Apple. I never had this issue prior to Yosemite.
    Hope this made since, it's the best I can make of it.
    Thanks!

    From the Mail menu bar, select
              Mail ▹ Preferences...
    The Mail preference dialog opens. Select the Composing tab from the row of icons at the top. From the menu labeled
              Send new messages from:
    choose
              Account of selected mailbox
    Note that this setting may have no effect if you start a new message while a VIP or smart mailbox is selected in the mailbox list. Those are saved searches, not actual mailboxes.
    If the problem remains, select the Accounts tab in the preference dialog, then select the affected account in the list on the left.
    In the Account Information pane, select the correct server in the menu labeled
              Outgoing Mail Server (SMTP)
    If there's only one server in the menu, select
              Edit SMTP Server List...
    and add a new server with the correct settings. If you're not sure how to do that, try the Mail Settings Lookup.
    Another possibility is that the wrong card in your address book is selected as yours. Select your card in the Contacts application. Then select
              Card ▹ Make This My Card
    from the menu bar.

  • Can I retrieve contacts that I deleted from an email account on my IPhone that I no longer have access to? I have synced the contacts with my computer and have not synced since I deleted the mail account on my Iphone. Can I still retrieve the contacts?

    can I retrieve contacts that I deleted from an email account on my IPhone that I no longer have access to? I have synced the contacts with my computer and have not synced since I deleted the mail account on my Iphone. Can I still retrieve the contacts on my home computer?

    This might be a problem as it is a company mail account that I no longer work for.
    Could I...
    Plug iphone into pc and click Restore in iTunes?
    Then using ICloud, retrieve all the data lost in the restore?

  • CANNOT SEND MAIL FROM .MAC SMTP ACCOUNT

    Hello everyone--
    I can receive mail from my .mac account and have done extensive troubleshooting including:
    1. Changing ports from 25 to 587
    2. Deleting and re-installing mailbox
    3. Reading a hosts of topics
    4. I have the serving settings with SSL unchecked
    ...but this still giving me the same trouble. I cannot send out because my email address keeps getting rejected.
    Any suggestions? Thanks!

    Are you also accessing an email account and SMTP server in Mail that is provided by your ISP used for connecting to the internet?
    If so, can you send mail with this account and SMTP server?
    If the answer is yes to both questions, select/use your ISP's SMTP server to send mail with your .Mac account which is invisible to all recipients.
    Most, if not all ISPs now block the use of SMTP servers outside of their network on Port 25. Some ISPs allow the use of an authenticated SMTP server only (such as the .Mac SMTP server) that is outside of their network on Port 25 but some block its use regardless.
    Changing the Port for the SMTP server that is outside of the ISP's network from 25 to 587 usually resolves it but sometimes not depending on the ISP's restriction.
    Have you contacted your ISP regarding their restrictions and/or requirements when using an SMTP server that is outside of their network or not provided by them?
    Using your ISP's SMTP server to send mail with your .Mac account should work and it may be required regardless.

  • How do I transfer pictures from my email account to my desktop

    I get several pics in my email account which is yahoo.com I've created a file on my desktop entitled "emails" . How do I move or copy the pics from my email account to my desktop file?

    Hi daneilr1,
    Firefox is a web browser. It displays the content of existing sites. Things like email or page contents come from the content provider. You'll probably have better luck consulting their help documentation. Since your email provider is Yahoo!, you should take a look here:
    http://help.yahoo.com/l/us/yahoo/mail/
    That being said, if you are looking at an image that someone sent you via email, you can right click on the image and choose ''Save As...'' to save it to your computer. Most email providers also have a ''Download All'' button if your email has several images attached to it.
    Hopefully this helps!

  • HT201342 How can I back up mails from my other accounts to my iCloud account?

    How can I back up mails from my other accounts to my iCloud account?

    iCloud doesn't back up email.  If you are using an IMAP email account your email is stored on your email provider's server.  Your iPad backup only backs up your email account settings, not your email.

  • HT201363 I forgot the security question and did not reach me any e-mail from an email technical support for the alternative I hope to help

    I forgot the security question and did not reach me any e-mail from an email technical support for the alternative I hope to help

    Alternatives for Help Resetting Security Questions and/or Rescue Mail
         1. If you have a valid rescue email address, then use this procedure:
             Rescue email address and how to reset Apple ID security questions.
         2. Fill out and submit this form. Select the topic, Account Security. You must
             have a Rescue Email to use this option.
         3. This is the only option if you do not already have a valid Rescue Email.
             These are telephone numbers for contacting Apple Support in your country.
             Apple ID- Contacting Apple for help with Apple ID account security. Select
             the appropriate country and call. Ask to speak to the Account Security Team.
    Note: If you have already forgotten your security questions, then you cannot
             set up a rescue email address in order to reset them. You must set up
             the rescue email address beforehand.
    Your Apple ID: Manage My Apple ID.
                             Apple ID- All about Apple ID security questions.

  • Can't get my e-mail from my telus account connected to ipad2

    I cannot get my e-mail from my telus account to come onto the ipad2.  It keeps saying there are connection errors.
    For incoming used pop.telus.net.  Outgoing used SMTP.telus.net then pop.telus.net and neither worked.

    Incoming Mail Server Type: POP3
    Incoming Mail Server: pop.telus.net
    Outgoing Mail Server: smtp.telus.net
    NNTP Server: news.telusplanet.net Port 119
    HomePage: http://beta.mytelus.com/telusen/portal/index.aspx
    Tech Support: 1.877-310-4NET
    Support Page: https://www.telus.com/unprotected/login.do
    Incoming Mail Server Type: IMAP
    Incoming Mail Server: imap.telus.net
    Outgoing Mail Server: smtp.telus.net
    NNTP Server: news.telusplanet.net Port 119
    Read more: http://www.seo-webz.com/tutorials/windows-programs/telus-email-settings.html#ixz z1h2hy0pC4

  • Sending but not receiving from second email account

    Hello,
    I have recently added a new email address to an existing POP Mail Version 2.1 account that I have with Eircom. I have been successfully sending out emails from this new account and can send mail to it from another email account without messages bouncing back........yet I cannot receive any mail sent to this new account, only mail sent to my original email address....any ideas?....& does anyone know what happens to all those messages that I have never retreived?
    many thanks Domino

    Hi Domino, and a warm welcome to the forums!
    I'm only quarter Irish, so may not be all that much help!
    What kind of account is it on both ends... POP, IMAP, WebMail?
    Have you checked it with the Webmail?
    http://email.eircom.net/about/tips/

  • I deleted an e-mail from my iCloud account from my iPhone and cleared the trash. I accidentally deleted an e-mail from my college containing a string of 3 e-mails which are very important. Is there anyway to retrieve the e-mail from the Apple server?

    I deleted an e-mail from my iCloud account from my iPhone and cleared the trash. I accidentally deleted an e-mail from my college containing a string of 3 e-mails which are very important. Is there anyway to retrieve the e-mail from the Apple server?

    My question is similar:  I deleted email folders in my mail app on iPhone 4 and it deleted the folders on all my other devices--literally THOUSANDS of emails!  I went to iCloud to recover them and can't find them.  HELP PLEASE!

  • ?How do I Remove RSS Feeds from my Email account?

    I set up some RSS feeds in my mac email account?
    Please don't tell me to "right-click" my mouse because I am using a macbook and I have no mouse, just the track-pad and right-clicking it does nothing different than left-clicking it. Or for that matter, than standing on my head and singing Celine Dion. Other than annoying my girlfriend.
    I have tried setting my preferences to manual update, even to making Safari the default RSS reader but I can't remove the feeds themselves from the email account.
    I have a Macbook, use Safari, Leopard, OS X 10.5 if that helps.
    Thanks in advance,
    Keith

    Dude, first the right-click thing... You can achieve the equivalent by holding down the control key and clicking -- you'll see a contextual menu pop up. Cool, huh?
    Now, control-click on that unwanted RSS feed and choose delete feed. Happy day!

Maybe you are looking for

  • Setting the column labels in webdynpro abap alv report

    Hello, Right now I have programmed an ALV report. The selection criterion and the display of the report all work. However, there is an issue with the labels of columns in the ALV report. The report takes the field names of the structure I am using in

  • Dbms_alert package

    Is it possible to use the dbms_alert package from within jdbc to react on events?

  • Powerbook G-4 17" upgrade question.

    Hey folks...I'm looking for some upgrade advice on my 17" Powerbook. When I purchased the computer I bought the biggest HD available - 80GB and now I'd like to upgrade that if I can. I'm a video producer and need to get as much bang out of the comput

  • Survey limits, how do I set up cookies in APEX

    I have a survey on apex 3.1 and need to know if there is a easy way to keep the survey people from filling out the survey just one time from just one pc. I thank that their is the use of cookies but I don't know how to set it up.

  • I don't have the option to back up to disk under File, Library I am using Version 10.4.1.10

    I am trying to backup my music to transfer it to my new computer but there is no Back Up To Disk option under File > Library.  I have updated to the latest version but still no Back Up To Disk option, can anybody help me.  Thanks