Cannot send email from WD Java

hi Experts,
I have created an email WD Java Application, this application sends an email to the users on click of a button.
My Problem is this application runs well on SP11, but we have upgraded our dev portal to SP14.
On SP14 mail is not send. Please help its really very urgent.
I am pasting the code used for sending email.
wdContext.currentEmailElement().setFrom(wdContext.currentContextElement().getEmpMailID());
       wdContext.currentEmailElement().setCc("");
       wdContext.currentEmailElement().setBcc("");
       wdContext.currentEmailElement().setSubject("Personal Travel Request.");
       wdContext.currentEmailElement().setTo("[email protected]");
       Properties props = new Properties();
       String host = "rmail070.zmail.ril.com";
       props.put("rmail070.zmail.ril.com", host);
       Session session = Session.getInstance(props, null);
       MimeMessage message = new MimeMessage(session);
       Address toAddress = new InternetAddress();
       Address fromAddress = new InternetAddress();
       Address ccAddress = new InternetAddress();
       Address bccAddress = new InternetAddress();
       try
       /* Creates an email object with different parts, one for the
       text and another for the attached file */
       MimeMultipart multipart = new MimeMultipart();
       BodyPart messageBodyPart = new MimeBodyPart();
       /* the following statements build up the email */
       if (! wdContext.currentEmailElement().getFrom().equals(""))
       fromAddress = new InternetAddress(wdContext.currentEmailElement().getFrom());
       message.setFrom(fromAddress);
       } if (! wdContext.currentEmailElement().getTo().equals(""))
       toAddress = new InternetAddress(wdContext.currentEmailElement().getTo());
       message.setRecipient(Message.RecipientType.TO,toAddress);
       if (! wdContext.currentEmailElement().getCc().equals(""))
       ccAddress = new InternetAddress(wdContext.currentEmailElement().getCc());
       message.setRecipient(Message.RecipientType.CC,ccAddress);
       if (! wdContext.currentEmailElement().getBcc().equals(""))
       bccAddress = new InternetAddress(wdContext.currentEmailElement().getBcc());
       message.setRecipient(Message.RecipientType.BCC,bccAddress);
       if (!wdContext.currentEmailElement().getSubject().equals(""))
       message.setSubject(wdContext.currentEmailElement().getSubject());
       if (! wdContext.currentEmailElement().getBody().equals(""))
       messageBodyPart.setText(wdContext.currentEmailElement().getBody());
       multipart.addBodyPart(messageBodyPart);
            /* a new part will be added, in the complete email this will
            be the attachment */
            messageBodyPart = new MimeBodyPart();
//            try{
//            String filename =WDURLGenerator.getResourcePath(wdComponentAPI.getDeployableObjectPart(),"test.pdf");
//            DataSource source = new FileDataSource(filename);
//            messageBodyPart.setDataHandler(new DataHandler(source));
//            messageBodyPart.setFileName(source.getName());
//            messageBodyPart.setHeader("Content-Type","application/pdf");
//            multipart.addBodyPart(messageBodyPart);
            message.setContent(multipart);
            Transport.send(message);
//            catch(WDAliasResolvingException e)
//                          e.getMessage();
            catch (AddressException e)
            wdComponentAPI.getMessageManager().reportWarning(e.
            getLocalizedMessage());
            e.printStackTrace();
            catch (SendFailedException e)
            wdComponentAPI.getMessageManager().reportWarning(e.getLocalizedMessage());
            e.printStackTrace();
            catch (MessagingException e)
            wdComponentAPI.getMessageManager().reportWarning(e.getLocalizedMessage());
            e.printStackTrace();
Points will be rewarded to helpful answers.
Regards,
Sanjyoti.

Hi,
see this link it will be helpful for u
[http://help.sap.com/saphelp_nw04/helpdata/en/f7/f289c67c759a41b570890c62a03519/content.htm|http://help.sap.com/saphelp_nw04/helpdata/en/f7/f289c67c759a41b570890c62a03519/content.htm]
regards
Hazrath

Similar Messages

  • Cannot send email from ipad?

    I can receive, but cannot send emails from my iPad. Always get message that I have wrong user name or password.

    Then make sure that the settings are correct in your email account.
    Check the outgoing mail server setting. Make sure that your username and password are in there.
    Settings>Mail, Contacts, Calendars>Your email account>Account>Outgoing mail server - tap the server name next to SMTP and check in the primary server and make sure your username and password are entered and correct - even if it says that the password is optional.

  • "Cannot send email from this device"?

    I recently purchased the Easy Release App from the ITunes store and when I try to email the release to my email address it says "Cannot send email from this device". Is it the app that is preventing the sending or is it something to do with the iPod? I've tried sending an email from the iPod to see and it is sent fine from the iPod but the app still won't send from the iPod.
    Has this ever happened to someone else? Do I have to change settings on my iPod?
    I have the IPod 4th generation if that helps

    I had the same problem. You have to go into Settings in your ipod touch, scroll down and find "mail, contacts, calendars." Set up your email in there. It will give you a list I.e. yahoo, hotmail, gmail. After you've dont that you'll be able to sent the model release.

  • Cannot send email from within iPhoto

    Using OX X 10.7.5 cannot send email from within iPhoto.  I get this error message: "Your email did not go through because the server did not reply."
    If I change the preference to use email, everything goes fine but I lose the formatting feature.

    iPhoto Menu ->
    Preferences ->
    Accounts ->
    Delete and recreate your email settings.
    Alternatively, use Apple's Mail for the job. It has Templates too - and more of them. Check out the Stationery...

  • Cannot send email from ipod

    For some reason i cannot send email from my ipod. I checked the wi-fi connection and it is working...when I try to send the eamil the send button will not work. It seems like it is deactivated or something

    Did you try to reset your ipod by holding the sleep and home button until the Apple logo comes back again?
    Did you check this article? iOS: Unable to send or receive email

  • Cannot send email from my iPad

    The last few days I cannot send email from my iPad. I can receive normaly.
    Here is an image of the error I get. I get this error with every receipent... Please help

    iOS: Unable to send or receive email
    http://support.apple.com/kb/TS3899
    Can’t Send Emails on iPad – Troubleshooting Steps
    http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
    Setting up and troubleshooting Mail
    http://www.apple.com/support/ipad/assistant/mail/
    Server does not allow relaying email error, fix
    http://appletoolbox.com/2012/01/server-does-not-allow-relaying-email-error-fix/
    Why Does My iPad Say "Cannot Connect to Server"?
    http://www.ehow.co.uk/info_8693415_ipad-say-cannot-connect-server.html
    iOS: 'Mailbox Locked', account is in use on another device, or prompt to re-enter POP3 password
    http://support.apple.com/kb/ts2621
    iPad Mail
    http://www.apple.com/support/ipad/mail/
    Configuration problems with IMAP e-mail on iOS with a non-standard SSL port.
    http://colinrobbins.me/2013/02/09/configuration-problems-with-imap-e-mail-on-ios -with-a-non-standard-ssl-port/
    Try this first - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
    Or this - Delete the account in Mail and then set it up again. Settings->Mail, Contacts, Calendars -> Accounts   Tap on the Account, then on the red button that says Remove Account.
     Cheers, Tom

  • Cannot send email from my IPad Air

    I suddenly cannot send email from my IPad Air. Keep getting message that my email recipient
    was rejected by the server because it does not allow relaying.  Don't understand what this means as I have been able to send email before.

    Paula, in most cases this message appears when you are sending email from a ISP server not in the pop settings and SMTP settings in your email program.
    In example if I send out email from my iPad I must be on my own isp's server to send. I have roadrunner but if I send email out using say Verizon's email server I will get a reject notice.
    You did not say what email program you are using but if it is hotmail or yahoo or your isp's email in two of these email accounts there are stand alone apps which work much better than the stock email program on the phone.
    If you are using road runner or another ISP email you must get the proper Pop3 (incoming) server settings and SMTP (send) settings from your ISP
    You can then just go into the Settings-Mail, Contacts and Calendar section and click on the email account and change to the proper settings from your ISP.
    You could delete as you were told but why bother when only the sending and receiving settings need to be entered.
    If the settings are correct, on an iPhone it tests the settings. If correct send an email. If incorrect you will need the proper settings from your ISP.
    It is actually very easy to do.
    Hotmail is not an option on my iPad air | Apple Support Communities
    Problems with POP email accounts set up on iPad... | Apple Support Communities
    Good Luck

  • Cannot Send Email From iMac

    I cannot send email from any of my accounts via any of the asssociated servers, however I can receive mail through any of my accounts and servers. I haven't touched any of the preference setttings for any of the accounts so am really in the dark as to where to start to look for problems. I am using OS X 10.8.3.
    Andy

    Have you read for possible solutions over in the "More Like This" thread over here?-----------------------> 

  • Cannot send email from pop account when in 3G, will send in WIFI

    I cannot send email from pop account when in 3G, will send in WIFI.
    I thought it was the SMTP server first.. but when i config my WIFI, suddenly the emails that i tried to send, left my outbox and sent.
    Any idea's

    The SMTP server you are using with Wi-Fi would be the outgoing server of your internet service provider... this is likely why that's working.
    SMTP servers specific to a ISP would not work on the 3G network. You would probably need another SMTP server. One from your cell provider?

  • Cannot send email from new iPad 2 or new iPhone 4s

    I have a new ipad2 and a new iPhone 4s.  I cannot send email from either.   I had an iPad and an android before with no email issues.  Phone is Sprint and ipad is Verizon.  I have tried using my wifi and have tried turning wifi off.  Nothing works.  Please help.

    I agree, unplug and replug your router, then reset your iPad by holding down the sleep and home buttons, ignore the red power down slider, and wait til you see the silver apple. let it reboot and then try your connection.
    Chances are rebooting the router will help. You may also need to talk to cox. They may need to reset something on their end.

  • Cannot send email from my iPhone or iPad. The server rejects a recepient for no apparent reason.  The recipient is not new.  This issue happens on reply or reply to all or froward; not a new email. What is happening?

    Cannot send email from my iPhone or iPad. The server rejects a recepient for no apparent reason.  The recipient is not new.  This issue happens on reply or reply to all or froward; not a new email to the same recepient. What is happening?

    I talked with a tech today and he said I cloud is having problems which should be resolved shortly.
    In the mean time I used the .me smtp server settings which allowed me to send mail.

  • Cannot send email from icloud account from mac

    cannot send email from icloud account from mac running 10.8.2

    The SMTP server you are using with Wi-Fi would be the outgoing server of your internet service provider... this is likely why that's working.
    SMTP servers specific to a ISP would not work on the 3G network. You would probably need another SMTP server. One from your cell provider?

  • Cannot send email from my iphone

    Cannot send email from my iphone 4s with the bell mobility network.

    Hi. You need to double check the outoing server used here. You can verify that with Bell and good luck.

  • Cannot send email from iPad & iPhone with Virgin Media

    I cannot send emails from my iPad and iPhone. I have a virginmedia.com address and I can receive but just cannot send. A message keeps saying the smpt settings are wrong. However, I have followed the tutorial on Virgin Media web site (this is how I managed to start receiving emails on my devices) but still not sending. I have looked at the settings in my MacBook Pro and all seem to be correct. Does anyone have an idea what could be wrong? I had a similar problem when I loaded Microsoft Office 365 for Mac; I had to end up calling Virgin Media (useless) and then Microsoft (useful). Anyhow I have looked at the settings on the Mac and they all seem to correspond with the ipad and iphone but still cannot send emails. V V Frustrated.
    Thanks for reading.

    Then make sure that the settings are correct in your email account.
    Check the outgoing mail server setting. Make sure that your username and password are in there.
    Settings>Mail, Contacts, Calendars>Your email account>Account>Outgoing mail server - tap the server name next to SMTP and check in the primary server and make sure your username and password are entered and correct - even if it says that the password is optional.

  • Still cannot send email from icloud .me address

    hi. does anybody knows why i cannot send email from my ipad (ios 5.0.1) icloud me.com account? i can recieve but i cannot send. on my mac (lion) it works perfectly. the message i get is "the sender address .mac.com was rejected by the server". mac.com ?? but i use my me.com address. any ideas pls?
    thank you

    I have been having the same problems for the last two days now.  It won't let me send, but it will let me save it to my drafts folder.  I even tried opening the e-mail form my iPhone 5 and it won't let me send it there either.  The last two times i ended up copying the contents from my failed e-mail on my phone and pasting that into a new e-mail and that works.  I normally use the icloud web app to reply to e-mails when i'm at work (using win 7) and it is very frustrating. 

Maybe you are looking for

  • Mini Displayport to Dual-Link DVI Issues on 30" Cinema Display

    I know this problem has been around for a while, and that there are several other discussion on it, but my goal here is to point out that even in mid-2011, this issue remains. Here's my configuration: 30" Cinema Display Dual-link MDP to DVI adapter w

  • High kernel_task RAM Usage in Yosemite 10.10.1

    Hello All, No matter what I'm running, I always have high RAM usage with kernel_task. I've looked around the other threads and never found a definitive solution. I wouldn't call it crippling to my system but I would like to resolve the issue. Below i

  • Changing PO document type for automatic purchase order opened by GR

    Hi to all, You know, there is a feature to customize automatic PO creation upon GR. The system uses "NB- Standart Purchase Order" document type. But, i need to use a different document type (like ZNB) that i have copied from standart one. How can I c

  • AJAX ScriptManager problems on iPhone

    Hi, i'm developing an asp.net web application for iphone and i'm using ajax. I have no problems with the ajax behaviours (all the ajax controls like update panels are running correctly...). But I have a problem with the ScriptManager itself: adding a

  • Automatic tempfile offline due to write error on

    Hi everybody, I am getting the following in my alert log and my TEMPFILE went offline. KCF: write/open error block=0x5a909 online=1 file=4 /database1/oratemp1/temp1_04.dbf error=27091 txt: 'HP-UX Error: 28: No space left on device Automatic tempfile