Unable to send email to different domain by JavaMail

Hello,
I'm developing a servlet application by using using JavaMail 1.2 with JDK 1.3/Resin 1.2.
My application is hosted at an ASP. When I send email some addresses under my domain,
there is no problem. Emails are sent successfully. But, if I send emails to addresses under different domains, I get MessagingException in Transport.send(message) method.
My CGI scripts can successfully email messages to different domain.
thanks in advance...

There is a Java Mail forum where you could have asked this. However, if you had looked there you would have found this question asked several times a week. Your ASP doesn't allow its e-mail system to be used for relaying. Ask the ASP if you don't understand what that means.

Similar Messages

  • Send email to different domain using different address

    hi
    I want to set my exchange recipients have 2 email address.
    1=[email protected] 2=[email protected]
    1.how can I set this setting? (I know I can use something called policy but I don't know how can use that for exchange 2013; please tell me how can do this)
    2.how can set my exchange server to send email to different domain with different account? (after question 1; my recipients has 2 email address (***@domain.com,
    ***@domain.co) I want my recipients when send email to "company.com" using domain.com address and for other domains using domain.co)
    thanks

    1.  Add an accepted domain.  Add the e-mail address to your e-mail address policy.  Update the e-mail address policy.
    2.  http://www.ivasoft.biz/choosefrom2007.shtml  This has been the traditional answer for Exchange 2010 and earlier.  You might contact him to see if it works for Exchange 2013. 
    I don't know of a native way to do this except to create separate mailboxes for each address.
    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."

  • Unable to receive emails from specific domains

    Hi,
    One user in our company is trying to send email in different domain but
    recipient is unable to receive email from our side. Below mentioned is the NDR report: 
    [email protected]
    The recipient's e-mail system isn't accepting messages now. Please try resending this message later or contact the recipient directly.
    The following organization rejected your message: smtp.xxx.net
    Kindly guide me how i can diagnose that there is no problem at our side because all other users are sending emails in different domain without any problem. 
    Thanks & Kind regards,
    Osama Aftab.

    That http://x.co/rblbounce URL redirects here
    http://help.secureserver.net/article/3568#rbl .  Scroll down, and you can see their explanations for the 554 status you are receiving.  I've pasted them at the end.  I'm going to
    guess that if you type your domain name in here
    http://mxtoolbox.com/blacklists.aspx
    you'll find that you're listed at Spamhaus.
    554 RBL Reject.
    This IP address has been blocked from our internal RBL.
    Follow the link provided in the bounceback to submit a  request to remove this IP address.
    554 Connection refused. This IP has a poor reputation on Cloudmark Sender Intelligence (CSI). IB103
    This IP address has a poor reputation on Cloudmark Sender Intelligence (CSI).
    Check Cloudmark Sender Intelligence to see the reputation of the sending IP.
    554 Connection refused. This IP is listed on the Spamhaus Block List (SBL). IB104
    This IP is listed on the Spamhaus Block List.
    Check to see if the IP is listed on the
    Spamhaus Block List.
    554 Connection refused. This IP is listed on the Exploits Block List (XBL). IB105
    This IP is listed on the Spamhaus Exploits Block List.
    Check to see if the IP is listed on the
    Spamhaus Exploits Block List.
    554 Connection refused. This IP is listed on the Policy Block List (PBL). IB106
    This IP is listed on the Spamhaus Policy Block List.
    Check to see if the IP is listed on the
    Spamhaus Policy Block List.
    OWA For SmartPhone

  • Unable to send email javax.mail.MessagingException: 553 Domain require

    Hello
    When sending a test message using One to One fulfillment I get the following message
    unable to send email
    javax.mail.MessagingException: 553 <UNSET>... Domain name required"
    Has anybody got this message before? how did you resolve it?
    Thank you
    Kind Regards
    Eva

    See if there is any space in the name of the email server. If yes, remove the space and stop and start the fulfillment server.
    HTH

  • Sending email from different addresses under one account.

    Hello,
    So, I'm having an issue that's a little bit complicated, and in fact, I don't even know if there is a solution.  But, if anyone knows how to do this, I'd greatly appreciatte your help.
    So, here's what I'm trying to do.
    Right now, I have three different email accounts, an icloud and two gmails.  I have both of those gmails set up so that they forward to my icloud account.  So, in the mail app on my iphone, I only have my icloud account.  I've been trying to reduce clutter by doing this, and it seems to be working pretty well, save for this issue.
    The problem I am having is still being able to respond to emails sent to one of those two gmail accounts with the same email address.  I.e.-if someone emails me at my gmail account, it's then forwarded to icloud, but I still want to respond from that gmail account using the mail app on my iphone.  I'd like to do this without setting adding the two "dead" gmail accounts onto my phone, because everything is more streamlined when I'm only using icloud.
    I've been able to do this using iMail on my mac by adding the two gmail addresses to my icloud account in settings, as well as the gmail server.  So on my mac, I only have icloud set up in imail, but I can compose emails using my two gmail addresses.  I pretty much want to be able to do the same thing on my iphone.
    Does anyone know how this can, or even if, it can be set up?
    Also, if it can't be done in the native mail app to ios, do you know of any third party apps where something like this would be possible?
    Thanks!!1

    Hi 3s1k,
    Thank you for your question.
    When he replies to my email and changes the "send From" 
    to [email protected] and send the email, It will still show that it was sent from @mainDomain.com.
    Now, I think the issue is within his Exchange mailbox, his default reply email address is @MainDomain.com.
    A:You are right. By our testing. We could just send emails with primary address, but we could receive emails with primary address and second address.
    How do I get around this. The client wants to utilize sending email from both domains since he has clients in both domains.
    A: If we want to send email with specific email address, we could manually modify the primary email address to the specific domain by Exchange administrator. And the client didn’t use customized email address to send emails.
    If there are any questions regarding this issue, please be free to let me know. 
    Best Regard,
    Jim

  • Unable to send mail with different fonts and colors

    Hi All,
    here is the explanation for my problem:
    I am sending mail using javamail. when i send the text with different font and color its not received in the same way. it is simply sending as plain text.
    Please help me on this issue.
    Thanks
    NG

    Hello,
    I am trying to develop an email application. It consists on sending email from [email protected] to [email protected]
    How can I do this in java ?
    I am using this software but it works only with gmail !!
             * Send Email to the webmaster
             String  d_email = "[email protected]",
                     d_host = "smtp.gmail.com",
                     d_port  = "465",
                     m_to = "[email protected]",
                     m_subject = "Email from user";
             Properties props = new Properties();
             props.put("mail.smtp.user", d_email);
             props.put("mail.smtp.host", d_host);
             props.put("mail.smtp.port", d_port);
             props.put("mail.smtp.starttls.enable","true");
             props.put("mail.smtp.auth", "true");
             props.put("mail.smtp.debug", "true");
             props.put("mail.smtp.socketFactory.port", d_port);
             props.put("mail.smtp.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
             props.put("mail.smtp.socketFactory.fallback", "false");
             SecurityManager security = System.getSecurityManager();
             try
                Authenticator auth = new SMTPAuthenticator();
                Session session = Session.getInstance(props, auth);
                //session.setDebug(true);
                MimeMessage msg = new MimeMessage(session);
                msg.setText("This is a message from: "+UserEmail+"\n "+UserMessage);
                msg.setSubject(m_subject);
                msg.setFrom(new InternetAddress(d_email));
                msg.setSentDate(new Date());
                msg.addRecipient(Message.RecipientType.TO, new InternetAddress(m_to));
                Transport.send(msg);
             catch (Exception ex)
                ex.printStackTrace();
                out.println("Messaging ERROR: " + ex);
                out.println(stack2string(ex));
                    if(ex.getMessage().compareTo("")!=0)
                        check = "Message NOT SENT " + ex.getMessage();
        private class SMTPAuthenticator extends javax.mail.Authenticator
            public PasswordAuthentication getPasswordAuthentication()
                return
    new PasswordAuthentication("[email protected]", "pwd");
        }please advice

  • Problem in sending email to other domain users

    Hi All,
    I am using javamail for sending emails and able to send to people within my exchange server domain. The problem is i am unable to send mail to other domain users like yahoo.com, hotmail.com..the error it is throwing out is *"Invalid Address"*
    Is there any spaecial API for this to work?
    Thanks,
    Kishore

    More details, please.
    Please read the JavaMail FAQ. Post the protocol trace if you can't figure it
    out yourself.

  • Droid Incredible Unable to Send Email

    I just got the DI and I cannot get it to send e-mail (it receives e-mail fine) on 2 different POP3/SMTP accounts.  I have verified the settings for each account, comparing it to what the same account in Outlook (which works fine), so I know the settings are correct.  I have tried deleting the accounts from the DI several times and have tried removing the battery and rebooting the phone.  Nothing has worked this far.
    Any suggestions?
    Thanks for any help.
    Brent

    The providers are 2 different Exchange servers from 2 different businesses that I do work with. 
    What settings are typically different when using a mobile device?  I have matched the settings that I have in Outlook as far as the server name, port, username, password and requiring authentication.  I am coming over from a BB device where I just put in e-mail account and password and everything worked.
    Since I can receive OK, I am assuming that something is wrong on the SMTP side of things.  When going through the settings on the DI, all of them appear to validate successfully but then when I try to send something I get the "Unable to send email" notification. 
    Thanks for the help.

  • We purchased a new iPad2 and registered it using a 'new' iCloud email/ID. We are unable to send email from the iPad and iPhone. The error is: Cannot send mail. The user name or password for iCloud is incorrect.

    We purchased a new iPad2 and registered it using a 'new' iCloud email/ID. We are unable to send email from the iPad and iPhone. The error is:>> Cannot send mail. The user name or password for iCloud is incorrect.

    About ~20 hours later, this ended up solving itself. We can send email using the '.icloud' email from both the iPad and iPhone.  Advise would be 'wait' before you start seeking alteranatives like yahoo, hotmail, etc.  This definitely is a convenient way to keep all your 'cloud' information in a centralized place, including the common email...

  • My email account was hacked. Had to change email password, now unable to send email from my ipad

    My email account was hacked. Had to change email password, now unable to send email from my ipad. I am such a novice technically, and have no clue what to do. Please help!

    Hi Skiddishchloe,
    I'm sorry to hear you are having issues with your email account and your iPad. If you are having issues sending mail from your iPad after changing your email password, you may find the information and troubleshooting steps outlined in the following article helpful:
    Get help with Mail on iPhone, iPad, and iPod touch - Apple Support
    Sincerely,
    - Brenden

  • Unable to send email from iPhone or ipad, Unable to send email from iPhone or ipad

    Recently, I have become unable to send emails from my comcast email account.  I tried uninstalling and reinstalling the account, but get an error (Cannot send. Username or password for Comcast invalid).  The username and password are correct, though, as my email works fine on my non-Mac laptop. Any suggestions?

    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/
    Using a POP account with multiple devices
    http://support.apple.com/kb/ht3228
    iOS: Adding an email account
    http://support.apple.com/kb/HT4810
    iOS: Setting up an Outlook.com, Hotmail, Live, or MSN email account
    http://support.apple.com/kb/ht1694
    iPhone, iPad, iPod touch: Microsoft Outlook 2003, Outlook 2007, Outlook 2010 may not display contacts and calendars after sync
    http://support.apple.com/kb/TS1944
    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
    Gmail Account Will Not Connect to Gmail Server
    http://support.apple.com/kb/ts3058
    How to Delete Email on the iPad
    http://ipad.about.com/od/iPad_Guide/ss/How-To-Delete-Email-On-The-Ipad.htm
    How to Mass Delete Emails from iPhone and iPad Inbox (with video)
    http://suiteminute.com/how-to-mass-delete-emails-from-iphone-and-ipad-inbox/
    How to delete ALL mail messages from iPhone/iPad in one step
    http://www.conferencesthatwork.com/index.php/technology/2014/01/how-to-delete-al l-mail-messages-from-iphoneipad-in-one-step/
    How to add, send and open iPad email attachments
    http://www.iskysoft.com/apple-ipad/ipad-email-attachments.html
    How to Sync Contacts with Your iPad Using iTunes
    http://www.dummies.com/how-to/content/how-to-sync-contacts-with-your-ipad-using- itunes.html
    Importing a Contact List CSV to the iPad
    http://techchannel.radioshack.com/importing-contact-list-csv-ipad-2235.html
    iOS: ‘Mailbox Locked’, account is in use on another device, or prompt to re-enter POP3 password
    http://support.apple.com/kb/ts2621
    iCloud: Create a group and add contacts to it
    http://support.apple.com/kb/PH2667
    eMail Groups - You can use a third party app that many users recommend.
    MailShot -  https://itunes.apple.com/us/app/mailshot-pro-group-email-done/id445996226?mt=8
    Group Email -  https://itunes.apple.com/us/app/mailshot-pro-group-email-done/id445996226?mt=8
    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  - 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.) No data/files will be erased. http://support.apple.com/kb/ht1430
    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.
    How to delete an email account on your iPad
    http://www.shoppepro.com/support/knowledgebase/228/How-to-delete-an-email-accoun t-on-your-iPad.html
     Cheers, Tom

  • TS3899 I have set up two email accounts on my iphone4, one with tiscali, my ISP, and the other on gmail. I am able to receive emails on both accounts, and can send emails from my gmail account, but am "Unable to Send Email" from my tiscali (talktalk) acco

    I have set up two email accounts on my iphone4, one with tiscali, my ISP, and the other on gmail. I am able to receive emails on both accounts, and can send emails from my gmail account, but am "Unable to Send Email" from my tiscali (talktalk) account. I get the error message "A copy has been placed in your Outbox. The sender address "name"@tiscali.co.uk was rejected by the server".

    Hi apmichael,
    If you are having issues sending email from one of your mail accounts on your iPhone, you may find the following article helpful:
    iOS: Troubleshooting Mail
    http://support.apple.com/kb/ts3899
    Regards,
    - Brenden

  • Unable to send email from content server

    Hi,
    I have a requirement of sending the notification email to user from the stellent when he subscribe to it.To test it i logged in to content server as sysadmin.
    Administration->Actions->Send test email.
    I had filled some dummy data and when i click on send it gives me a error
    Content Server Request Failed
    Unable to send email. Could not send mail message from [email protected] with subject line: Test email from Content Server.
    intradoc.common.ServiceException: !csMailCouldNotSend,[email protected],Test email from Content Server
         at intradoc.server.InternetFunctions.sendMailToEx(Unknown Source)
         at intradoc.server.SystemAuditHandler.sendEmail(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at intradoc.common.IdcMethodHolder.invokeMethod(Unknown Source)
         at intradoc.common.ClassHelperUtils.executeMethodReportStatus(Unknown Source)
         at intradoc.server.ServiceHandler.executeAction(Unknown Source)
         at intradoc.server.Service.doCodeEx(Unknown Source)
         at intradoc.server.Service.doCode(Unknown Source)
         at intradoc.server.ServiceRequestImplementor.doAction(Unknown Source)
         at intradoc.server.Service.doAction(Unknown Source)
         at intradoc.server.ServiceRequestImplementor.doActions(Unknown Source)
         at intradoc.server.Service.doActions(Unknown Source)
         at intradoc.server.ServiceRequestImplementor.executeActions(Unknown Source)
         at intradoc.server.Service.executeActions(Unknown Source)
         at intradoc.server.ServiceRequestImplementor.doRequest(Unknown Source)
         at intradoc.server.Service.doRequest(Unknown Source)
         at intradoc.server.ServiceManager.processCommand(Unknown Source)
         at intradoc.server.IdcServerThread.run(Unknown Source)
    Caused by: intradoc.common.ServiceException:
         at intradoc.common.SmtpClient.sendMail(Unknown Source)
         at intradoc.server.InternetFunctions.sendMail(Unknown Source)
         ... 21 more
    Caused by: java.lang.Exception: !csSMTPInvalidMessage,"System Administrator" <[email protected]>!csSMTPUnableToFindRecipients,1
         at intradoc.common.SmtpClient.writeMultiMsg(Unknown Source)
         ... 23 more
    Caused by: java.lang.Exception: !csSMTPResponseIndicatesFailure,550 5.7.1 Unable to relay for [email protected]
         at intradoc.common.SmtpClient.writeMsg(Unknown Source)
         ... 24 more
    I had set the internet configration in admin server to this values..
    HttpServerAddress=blrdxp-rchithul.corp.capgemini.com
    MailServer=BLREX002.corp.capgemini.com
    [email protected]
    SmtpPort=25
    HttpRelativeWebRoot=/idc/
    CgiFileName=idcplg
    UseSSL=No
    WebProxyAdminServer=true
    But i am still getting the error.kindly help me...
    Thanks in Advance
    Regards
    Rakesh

    Hi Rakesh,
    You have to request you Network team to add the ip address of the machine where you have installed content server to your Exchange Server.
    Let me know if it works.
    Deepak

  • IPhone 6 is unable to send email because the sender address was rejected by the server

    When I try to send emails from my Microsoft Outlook for Mac, I get a message that says "Unable to Send Email.  A copy has been placed in your Outbox.  The sender address was rejected by the server."  I've checked all the settings (it is a POP account).  I've deleted and re-installed.  Any suggestions??

    Please see this article on setting up an email account using the shaw mail server.
    https://community.shaw.ca/docs/DOC-2181
    Good luck Friend.

  • I am unable to send emails using iCloud, but am receiving.

    I am unable to send emails using iCloud from both my laptop and my ipad.  I am paying for 25Gb of storage and am only using 3Gb at the moment.  I get the following message " Your email has been placed in the Outbox as you have exceeded your limit for sending emails".  I have not sent any emails today at all!

    http://support.apple.com/kb/ht4863
    Or contact Apple:  https://getsupport.apple.com

Maybe you are looking for