Sending mail issues from personal account with bt router

Please can anyone help? I have a personal email address which mails fine from my ipad and iphone but since changing to a BT router it won't mail from my macbook pro despite the other devices working fine!
BT won't help and say they don't support 3rd party emails which I never knew - now I'm stuck with them for 18 mnths!
Is it a firewall issue on the Macbook pro? I had a friend try to set up Thunderbird on my macbook pro with the personal address and again it received mails fine but wouldn't send - just gives the same error message saying it couldn't connect to the SMTP server...
Please does anyone have any suggestions as I can now received and read work based messages on my macbook pro but have to respond from ipad or iphone :-(
Thank you for any advice anyone can offer...

I have experienced the same problems. I could receive but not send email through a third party email. Our ISP is BT and it would appear even though they wont admit it that they have changed some peoples settings.
I spoke with my email provider 123-reg and they asked me to check my ISP and then check the SPAMHAUS and our ISP has been Blocklisted. I called BT and they wouldnt answer why this had happened.
To cut a long story short I have had to pay BT £30 (not happy) to resolve the problem. They set my SMTP details as mail.btinternet.com and i had to authenticate this by logging into a BT/Yahoo email account that we never use., go to options then mail options then mail accounts and add details for the account your having problems with. You should then receive an email link on your third party email address.
I have actually complained to OFCOM about this as I dont believe that I should have to pay to rectify a problem that I havent caused. All BT would say is that they fixed the problem and I have to pay the £30. they wouldnt answer why I couldnt send emails prior to this fix. I asked why I now have to have the SMTP as mail.btinternet.com and again they couldnt answer this.
I hope this helps

Similar Messages

  • Migrating from Entourage and now can't send mail except from  Mac account

    I've just started using Mail after using Entourage for many years and I must say it's been a frustrating start (having separate applications for Mail, Address Book and Calendar is a pita so far). But most importantly I can't get Mail to allow me to send mail from any account other than from my .Mac account (no problems receiving mail). I'm using the same outgoing server settings as in Entourage but no joy - I get an error message saying it can't use the outgoing server. I have no problems with this in Entourage. For example, from Entourage I can send mail using my BT Internet account or my Bulldog Home account using the following outgoing mail server settings:
    SMTP SERVER: mail.bulldoghome.com
    ACCOUNT ID: [email protected]
    PASSWORD: my email password
    Also, how do I access my hotmail?

    Ok here's another one. When I delete a mail retrieved from a non Mac mail account (eg my BT Internet account) and empty my Trash in Mail it does not delete the email off the (BT Internet) server. I have not checked "remove copy from server after retrieving a message" so that I can access the email from multiple locations. But when I do delete it I obviously want it removed from the server.

  • Hey can anyone help me fixing bug in sending mail auth from gmail account

    hi guys,
    when i'm trying to send mail a exception being raised at transport.send()** which is saying Authentication required though i'm provididng authentication from gmail server . Heres my code
    private static final String SMTP_HOST_NAME="smtp.gmail.com";
    private static final String SMTP_PORT="465";
    private static final String emailFromAddress="[email protected]";
    private static final String SSL_FACTORY="javax.net.ssl.SSLSocketFactory";
    public static void main(String []args){
    Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
    Properties props=new Properties();
    props.put("mail.smtp.host",SMTP_HOST_NAME);
    props.put("mail.smtp.auth",true);
    props.put("mail.smtp.port",SMTP_PORT);
    props.put("mail.smtp.socketFactory.port",SMTP_PORT);
    props.put("mail.smtp.socketFactory.class",SSL_FACTORY);
    props.put("mail.smtp.socketFactory.fallback",false);
    try{
    Session session=Session.getDefaultInstance(props, new javax.mail.Authenticator()
    {protected PasswordAuthentication getPasswordAuthentication(){
                    return new PasswordAuthentication("moulichandr","XXXXXXX");
    Message msg=new MimeMessage(session);
    msg.setFrom(new InternetAddress("[email protected]"));
    msg.setRecipient(Message.RecipientType.TO,
    new InternetAddress("[email protected]"));
    msg.setSubject("test");
    msg.setText("vtest mail");
    Transport.send(msg);
    catch(Exception e){
    System.out.println("error");
    e.printStackTrace();
    and exception is
    com.sun.mail.smtp.SMTPSendFailedException: 530-5.5.1 Authentication Required. Learn more at
    530 5.5.1 http://mail.google.com/support/bin/answer.py?answer=14257 i9sm6409364tid.36
    at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1515)
    at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1054)
    at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:634)
    at javax.mail.Transport.send0(Transport.java:189)
    at javax.mail.Transport.send(Transport.java:118)
    please help
    i'm using netbeans6.1 with glassfishv2

    If you turn on session debugging, you'll get a clue as to what you're
    doing wrong, but I'll save you the trouble. Your error is here:
    props.put("mail.smtp.auth",true);That should be:
    props.put("mail.smtp.auth", "true");
    BTW, you don't need all that socket factory stuff. See the JavaMail FAQ for a
    simpler approach.

  • I am sending an email from one account on iphone 4s but the replies are coming into another account on my phone

    I have had an iphone 4s for about a year and have 4 email accounts that come in on it: verizon, gmail, my work, and icloud.  Periodically, I send an email from one account, it shows the message as sent from that account in my sent mail, but the recipient receives it from the gmail account and therefore replies to the gmail.  Has anyone had this happen?  It is almost as if my messages are bouncing into gmail when I send them, although on my phone it shows as having been sent from another account.  I have not had this happen on my computer where I have all of these emails coming in as well.  I thought perhaps it was me not being careful about which account I was sending from when using my phone, but the mail I sent this morning I was very careful to make sure was from verizon, the sent mail on my phone shows it was sent from verizon, and the reply came in on gmail.  Gmail isn't even the default email address- verizon is! My iphone is using version 6.1.3. Does anyone have any ideas? This is a major problem for me so I appreciate any ideas!  Thank you!!!

    I am not sure whether this is related, but I had a problem with Gmail where each time I sent and email via my iPhone it would bounce back in my Gmail account as unread. You migh want to check this Google article explaining why this happens and how to avoid it:
    https://support.google.com/mail/answer/1710338?ctx=gmail&hl=en-GB&authuser=0

  • I want to use Mac Mail for my work email address, which containts multiple outbound options (i.e. hr@, me@ etc). Is there a way to set up Mac Mail to have an account with multiple outbound addresses rather than adding in multiple accounts?

    I want to use Mac Mail for my work email address, which containts multiple outbound options (i.e. hr@, me@ etc). Is there a way to set up Mac Mail to have an account with multiple outbound addresses rather than adding in multiple accounts?

    This sounds like the age old problem with keychain & Safari. I don't know of a way to solve it without using something like 1Password.
    The iOS app has it's own built in browser, so it has more control over what gets autofilled. Safari on OS X has an 1Password extension that handles account selection & autofill etc.
    Keychain is great in principle, but it quickly falls down when you need tight integration with many ID's & different use cases (work, home etc).
    I'd suggest you submit feedback to Apple about your thoughts. I did so years ago about this issue & this is how far we have come (back to the point where me.com synced passwords) :^)
    http://apple.com/feedback/macosx.html
    Other tools like lastpass or keypassx may also help if you want to truly segregate password storage, but that doesn't fix autofill, the way around that issue is to dedicate one browser for work.

  • Can not send mail to my pop account

    My ipad1 will ot send mail in my pop account since I just upgraded today.

    Reinstalling OS X Without Erasing the Drive
    Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the main menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu.
    Reinstall OS X: Select Reinstall OS X and click on the Continue button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.
    Also see:
    Reinstall OS X Without Erasing the Drive
    OS X Yosemite- Reinstall OS X
         Note: You will need an active Internet connection. I suggest using Ethernet
                     if possible because it is three times faster than wireless.

  • My talk talk email account was set up by a helpful apple employee to only send mail using an iname account (it worked perfectly well before this). How do I undo this?

    my talktalk email account was set up by a helpful apple employee at one of their shops to only send mail via an iname account.
    It had worked perfectly well before.
    I have tried but been unable to undo this. Help!

    From the Mail menu bar, select
    Window ▹ Connection Doctor
    Look for the unwanted SMTP (outgoing mail) account in the window that opens. Double-click it. Another window will open, showing a list of all the outgoing mail accounts. The unwanted one will be selected. Click the minus-sign button to delete it, then click OK.
    If there's more than one unwanted account, repeat.

  • Is it easily possible to synchronize mails sent from iphone 3GS with MacBook Pro retina

    is it easily possible to synchronize mails sent from iphone 3GS with MacBook Pro retina

    Read through this:
    http://clients.websavers.ca/whmcs/knowledgebase/115/Keeping-your-Sent-folder-in- sync-across-devices.html

  • Problem in sending mail for a pop3 account using transport.send(msg)

    hi,
    i am having problem in not able to send mail for a pop3 account ...
    I have written an email gateway which listens to my pop3 account...on email arrival it listens nd extract the contents and send it as an sms msg...upon failure it needs to deliver the mail to sender id.I am using quartz to listen.
    i am using jboss for server and java mail api.
    here is my code
    MimeMessage mimemsg = new MimeMessage(session);
                                                           mimemsg.setFrom();
                                                           mimemsg.setRecipients(Message.RecipientType.TO, to);
                                                           mimemsg.setSubject(subject);
                                                           mimemsg.setText(parsedText);
                                                           mimemsg.setSentDate(new Date());
                                                           mimemsg.setContent(strBuff.toString(), "text/html");
                                                           System.out
                                                                                    .println("Before sending mail");
                                                           Transport.send(m);
                                                                System.out.println("message sent successfully");
    excepition i am getting is :
    2008-09-12 11:45:11,140 INFO [STDOUT] Before sending mail
    2008-09-12 11:45:11,140 ERROR [STDERR] javax.mail.IllegalWriteException: POP3 messages are read-only
    2008-09-12 11:45:11,140 ERROR [STDERR]      at com.sun.mail.pop3.POP3Message.saveChanges(POP3Message.java:438)
    2008-09-12 11:45:11,140 ERROR [STDERR]      at javax.mail.Transport.send(Transport.java:97)
    2008-09-12 11:45:11,140 ERROR [STDERR]      at com.openstream.emailgateway.sources.ListenEmailGateway.execute(ListenEmailGateway.java:422)
    2008-09-12 11:45:11,140 ERROR [STDERR]      at sun.reflect.GeneratedMethodAccessor89.invoke(Unknown Source)
    2008-09-12 11:45:11,140 ERROR [STDERR]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    2008-09-12 11:45:11,140 ERROR [STDERR]      at java.lang.reflect.Method.invoke(Method.java:585)
    2008-09-12 11:45:11,140 ERROR [STDERR]      at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
    2008-09-12 11:45:11,140 ERROR [STDERR]      at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:495)
    2008-09-12 11:45:11,140 ERROR [STDERR]      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
    2008-09-12 11:45:11,140 ERROR [STDERR]      at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:116)
    2008-09-12 11:45:11,140 ERROR [STDERR]      at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
    2008-09-12 11:45:11,140 ERROR [STDERR]      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
    2008-09-12 11:45:11,140 ERROR [STDERR]      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
    2008-09-12 11:45:11,140 ERROR [STDERR]      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
    2008-09-12 11:45:11,140 ERROR [STDERR]      at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:109)
    2008-09-12 11:45:11,140 ERROR [STDERR]      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
    2008-09-12 11:45:11,140 ERROR [STDERR]      at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
    2008-09-12 11:45:11,140 ERROR [STDERR]      at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:402)
    2008-09-12 11:45:11,140 ERROR [STDERR]      at org.jboss.ejb.Container.invoke(Container.java:960)
    2008-09-12 11:45:11,140 ERROR [STDERR]      at sun.reflect.GeneratedMethodAccessor88.invoke(Unknown Source)
    2008-09-12 11:45:11,140 ERROR [STDERR]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    2008-09-12 11:45:11,140 ERROR [STDERR]      at java.lang.reflect.Method.invoke(Method.java:585)
    2008-09-12 11:45:11,140 ERROR [STDERR]      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    2008-09-12 11:45:11,140 ERROR [STDERR]      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    2008-09-12 11:45:11,171 ERROR [STDERR]      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    2008-09-12 11:45:11,171 ERROR [STDERR]      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    2008-09-12 11:45:11,171 ERROR [STDERR]      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    2008-09-12 11:45:11,171 ERROR [STDERR]      at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)
    2008-09-12 11:45:11,171 ERROR [STDERR]      at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)
    2008-09-12 11:45:11,171 ERROR [STDERR]      at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209)
    2008-09-12 11:45:11,171 ERROR [STDERR]      at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:195)
    2008-09-12 11:45:11,171 ERROR [STDERR]      at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
    2008-09-12 11:45:11,171 ERROR [STDERR]      at org.jboss.ejb.plugins.inflow.MessageEndpointInterceptor.delivery(MessageEndpointInterceptor.java:263)
    2008-09-12 11:45:11,171 ERROR [STDERR]      at org.jboss.ejb.plugins.inflow.MessageEndpointInterceptor.invoke(MessageEndpointInterceptor.java:140)
    2008-09-12 11:45:11,171 ERROR [STDERR]      at org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodInterceptor.java:74)
    2008-09-12 11:45:11,171 ERROR [STDERR]      at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
    2008-09-12 11:45:11,171 ERROR [STDERR]      at $Proxy73.execute(Unknown Source)
    2008-09-12 11:45:11,171 ERROR [STDERR]      at org.jboss.resource.adapter.quartz.inflow.QuartzJob.execute(QuartzJob.java:57)
    2008-09-12 11:45:11,171 ERROR [STDERR]      at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
    2008-09-12 11:45:11,171 ERROR [STDERR]      at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
    2008-09-12 11:45:11,171 INFO [STDOUT] USer flag ..[Ljava.lang.String;@115c6cb                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    as i am writing the message failure details to a template...
         //on failure to send messages , reply to the sender about the failure
                                                                strBuff= tempDetail.writeToTemplate(smsmsg);     
    is that bcoz i am getting an exception

  • Trigger mail(sending mail to respective person)when budget is release in PS

    Dear Sir,
    I want to trigger mail ( sending mail to respective person ) when budget is release in PS.
    Please help for following :
    Option 1 : User exit
    Option 2: Workflow.
    Regards
    Vinu

    Hi Vinod,
    You can acheive this using a Workflow. What you need to do is set an user status as Rbud-release budget, and when ever you project is set to this status a workflow will trigger to the concerned aggest assigned to workflow task. Here you can provide a user decision as 1. Approve 2. Reject. When ever workflow triggers, approver can see in his inbox the project budget in Cj30 by clicking object link to cj30 and if he feels it is ok then he can click Approve button this will take him to CJ32 screen where he can release the budget. IF the user feels Budget need to be revised then he will click reject this will send an email to the person responsible to revise the budget and at the same time user status will be reset back to previous user status.
    The above  method we have adapted for one of our client. This is done by a workflow consultant.
    Thanks
    regards
    kishore

  • If i sync'd songs to my ipod from a computer that i didnt have my accout on, is there a way to download songs from my account with out erasing the songs from the other account

    if i sync'd songs to my ipod from a computer that i didnt have my account on, is there a way to download songs from my account with out erasing the songs from the other accounts

    go to iTunes>Help>iTunes Help>Sync your iPod....>Sync You Device>Set up Syncing>Sync your device manually and follow the instructions.

  • Cannot send email in mail app. using POP account with Wi-Fi

    I recently moved to an apartment that only has wireless internet access. Since moving I cannot send email using my POP account, although I can receive email. I was also not able to receive email using my .mac account, but I learned through this forum to change server port to 587 in .mac account and now I can send via .mac account in mail app. But I still cannot sent email with mail app. using my POP account. I changed no settings when I moved, and have never had this problem with cable. Any suggestions?

    It all depends on the policy of whoever is the ISP at your new location and the method used by the outgoing (SMTP) server to determine whether you’re a legitimate user.
    In an attempt to fight spam, many ISPs restrict the ability to send using an outgoing (SMTP) server not owned by them, usually by blocking port 25 for all traffic outside their own network, which means you cannot send with an SMTP server not owned by them if configured to use that port number. And it may happen the other way around as well, i.e. the outgoing server itself may look at the IP address you’re connecting from and refuse the connection if you’re outside its own network.
    Something that often works is changing the outgoing server port to 587 (or whatever alternate port number the outgoing server listens to) instead of 25 and using some form of authentication in Preferences > Accounts > Account Information > Outgoing Mail Server > Server Settings, but two conditions must be satisfied for this change to work: (1) the ISP must not block that port as well AND (2) the outgoing server in question must listen to that port and accept a form of authentication not based on the IP address you’re connecting from.
    Independent mail service providers not tied to a particular ISP, such as .Mac and Gmail, do allow authenticated SMTP access on port 587, which is the reason changing the outgoing server port number solves the problem for them if the ISP doesn’t block that port as well.
    The following article, for example, describes several ways to address this issue in the case of .Mac, but can be useful for other mail accounts as well (not just .Mac), and applies to all versions of Mac OS X (not just Mac OS X 10.4.2 and earlier as the article states):
    .Mac: Server timeout alert message when sending email

  • Macbook Air- send mail to multiple person in contact with name of them in email

    Hi there, i use macbook air, in mail, i want to know if it is possible the if i wan to send email to multiple people in my contact and the name of the person will appear in the email message like Dear......... (follow by the name of person that i saved in the contact book)

    Hello Everyone,
    I have another issue.My workflow when directly executed sends mail to all users very quickly.All steps gets executed very quickly.This I could see through the workflow log and SOST and SCOT.But when I try to trigger the workflow through my transaction CRMD_ORDER(i have given proper BO and event) it is taking hours and still in Inprocess status.Infact its not even going to the first step(fetch email ids).
    I am totally confused on this behaviour.Kindly provide your ultimate solutions and I am very thankful for giving such good solutions to all my queries.
    Regds
    VLP

  • Cannot send outgoing emails from IMAP accounts using Mail. May 27 2014

    on either computer, or any account.  Settings are correct (or what they have always been). What is going on?
    Thanks

    Hello Jo939,
    After reviewing your post, I have located an article that can help in this situation. It contains a number of troubleshooting steps and helpful advice concerning Mail issues:
    iOS X Mail: Troubleshooting sending and receiving email messages
    http://support.apple.com/kb/ts3276
    Thank you for contributing to Apple Support Communities.
    Cheers,
    BobbyD

  • Retrieve mail from Gmail account with pop3???

    I want to retrieve e-mail from my account on Gmail in my application, but I have a problem. I cant establishe a connection with pop3 server...
    Do you have an example (full) in Java code for retrieving a mail from Gmail account.
    I used the example from JavaMail Api 1,4 Specifications, but I have a problem with the parameters. (protocol null), and I dont know why...
    Help me, please...

    i hv retrived messages from gmail.but i m geting problem at the time ......
    when i m reading mail which hava attachment.........
    it is only showing attachment name...but not shoing the body part....
    this is my programe........
    plz any body help me its very urgent.........
    give me a programe how to find the attachment name with body part........
    //java msgshow -D -T pop3s -H pop.gmail.com -U user -P passwd
    package MailServer;
    import java.util.*;
    import java.io.*;
    import javax.mail.*;
    import javax.mail.event.*;
    import javax.mail.internet.*;
    import javax.activation.*;
    import java.util.Date ;
    public class msgshow
    static String protocol;
    static String host = null;
    static String user = null;
    static String password = null;
    static String mbox = null;
    static String url = null;
    static int port = -1;
    static boolean verbose = false;
    static boolean debug = false;
    static boolean showStructure = false;
    static boolean showMessage = false;
    static boolean showAlert = false;
    static boolean saveAttachments = false;
    static int attnum = 1;
         static Message[] msgs = null;
         static String body = "";
         static String attachment = "";
         static String indentStr = " ";
    static int level = 0;
    static String from = "";
    static String subject = "";
    static Vector v ;
    public Vector v1;
    static Date date;
    public Vector show()
              int msgnum = -1;
              int optind;
              InputStream msgStream = System.in;
              v = new Vector();
    try
              // Get a Properties object
              Properties props = System.getProperties();
              // Get a Session object
              //debug = true;
              Session session = Session.getInstance(props, null);
              //session.setDebug(debug);
              // Get a Store object
              Store store = null;
              protocol = "pop3s";           
              store = session.getStore(protocol);
                   host = "imap.gmail.com";
                   user = "techzain";
                   password = "zain1234";
                   // Connect
              store.connect(host,port, user, password);
                   //System.out.println ("connected");
              // Open the Folder
              Folder folder = store.getDefaultFolder();
                   mbox = "INBOX";
              folder = folder.getFolder(mbox);
                   //System.out.println ("opened inbox");
              // try to open read/write and if that fails try read-only
              try
                        folder.open(Folder.READ_WRITE);
              catch (MessagingException ex)
                        folder.open(Folder.READ_ONLY);
              // Attributes & Flags for all messages ..
                   msgs = folder.getMessages();
                   //System.out.println (msgs.length);
                   for(int x=0;x<1;x++)
                   try
                        //System.out.println ("inside for");
                        Address[] addList=msgs[x].getFrom();
                             if(addList.length>0)
                                  from=((InternetAddress)addList[0]).getAddress();
                             subject=msgs[x].getSubject();
                             //body=(String)msgs[x].getContent();
                        date=msgs[x].getSentDate();
                        //body=(String)msgs[x].getContent();
                             //msgs[x].setFlag(Flags.Flag.SEEN,true);
                             if(msgs[x].isMimeType("multipart/*"))
                                  boolean bbb=msgs[x].isSet(Flags.Flag.SEEN);
                             System.out.println (bbb);
                                  Multipart multipart=(Multipart)msgs[x].getContent();
                                  for(int i=0,n=multipart.getCount();i<n;i++)
                                  {Part part=multipart.getBodyPart(i);
                                       if(i==0)
                                       body=part.getContent().toString();
                                       else
                                       //body=(String)msgs[x].getContent();
                                       attachment=part.getFileName();
                             else
                                  boolean bbb1=msgs[x].isSet(Flags.Flag.SEEN);
                             System.out.println (bbb1);
                                  body=(String)msgs[x].getContent();
                             //System.out.println ("ok");
                             if(attachment==null)
                                  try
                                       v.addElement(x);
                                       v.addElement(from);
                                       v.addElement(date);
                                       v.addElement(subject);
                                       v.addElement(body);
                                       //System.out.println (v.size());
                                  System.out.println("********* mail "+x+" ***********");
                                  System.out.println("From: "+from);
                                  System.out.println("Date: "+date);
                                  System.out.println("Sub: "+subject);
                                  System.out.println("body: "+body);
                                  System.out.println("Attachment: No attachments......");
                                  System.out.println ("*******************************\n\n");
                             catch (Exception ex)
                                  ex.printStackTrace();
                             else
                                  try{
                                  v.addElement(x);
                                  v.addElement(from);
                                  v.addElement(date);
                                  v.addElement(subject);
                                  v.addElement(body);
                                  v.addElement(attachment);
                                  System.out.println("********* mail "+x+" ***********");
                                  System.out.println("From: "+from);
                                  System.out.println("Date: "+date);
                                  System.out.println("Sub: "+subject);
                                  System.out.println("body: "+body);
                                  System.out.println("Attachment: "+attachment.toString());
                                  System.out.println ("*******************************\n\n");
                             catch(Exception ex1)
                                  ex1.printStackTrace();
                             //     System.out.println (v.size());
                   catch (Exception ex)
                        ex.printStackTrace();
              catch(Exception e)
                   e.printStackTrace();          
              System.out.println (v.size());
              return v;
         public static void main(String argv[])
         new msgshow().show();
              Flags flags = m.getFlags();
              StringBuffer sb = new StringBuffer();
              Flags.Flag[] sf = flags.getSystemFlags(); // get the system flags
              String s = "";
              for (int i = 0; i < sf.length; i++)
                   if (sf[i] == Flags.Flag.SEEN)
                        s = "\\Seen";
                        System.out.println ("Seen Message");
    */

Maybe you are looking for

  • Role of OWB in Oracle BI and Other areas

    Hi All, I am on OBI, now I'm curious about OWB and I like to know it's role in BI projects. I am using Informatica for my ETL jobs, is OWB doing the same like Informatica or we can use it for creating warehouse. Please advise me the starting guide fo

  • Running a LabVIEW app on a MAC yosemite without LabVIEW

    Hello all ! When you compile LabVIEW codes on a Mac, you create a ".app" instead of a ".exe". I would like to run my ".app" on another Mac running with Yosemite (OSX 10.10) and without LabVIEW on it. I downloaded the latest RunTime Engine for LabVIEW

  • How to fetch corresponding records from 2 tables using ADF Toplink & EJB

    Hi, I am unable to fetch records from 2 tables, which has a foregin key.Used the custom query in toplink, But the output is the cartition of the first table draged and the first row of the second table.The output required should be in the form of ADF

  • Where's the Users data?

    Sadly, my hard drive failed on my alum. iMac 24, and I had it replaced under warranty. I was grateful that I had been using Time Machine (to an external HD), and this was the first time I needed to restore anything (in this case everything). It appea

  • Dreh-Information der Kamera auf Datei anwenden

    Hallo, die Ausrichtung meiner Canon-Kamera bei der Aufnahme wird vom PSE 5 Organizer wunderbar gelesen, alle Fotos richtig ausgerichtet angezeigt. Die Dateien selbst sind alle im Querformat gespeichert, wie ein Blick in den Dateiordner zeigt. Nun möc