{"id":637,"date":"2014-09-18T23:56:06","date_gmt":"2014-09-18T23:56:06","guid":{"rendered":"https:\/\/alt2.minisoft.com\/support\/?p=637"},"modified":"2016-02-10T18:02:19","modified_gmt":"2016-02-10T18:02:19","slug":"error-when-sending-external-email-addresses","status":"publish","type":"post","link":"https:\/\/alt2.minisoft.com\/support\/error-when-sending-external-email-addresses\/","title":{"rendered":"Error when sending external email addresses"},"content":{"rendered":"<p class=\"faq\" style=\"color: #336699;\"><span style=\"color: #000000;\">Errors sending email messages to external addresses might be resoved with the following steps.<\/span><\/p>\n<ol style=\"color: #000000;\">\n<li>Pass the following information on to your email or network server administrator. Let her know that you are not able to send out emails from the Java application in eFORMz to an external email address (if internal messages can be sent). The following information is from\u00a0the Java website:\n<pre>*******************\r\nThru my java application I am able to send mails only to internal account not to other account like yahoo rediff hotmail etc. Here is the Exception:DEBUG SMTP SENT :QUIT\r\nservice error javax.mail.SendFailedException:Sending failed;\r\nnested exception is:\r\njavax.mail.SendFailedException:Invalid Addresses;\r\nnested exception is:\r\njavax.mail.SendFailedException:550 not local host yahoo.com, not a gateway;\r\nFor this problem I got answers from jgurus saying your mail server is not configured for external mail.\r\n\r\n*******************************\r\n\r\nQ: When I try to send a message, why do I get javax.mail.SendFailedException: 550 Unable to relay for my-address?\r\n\r\nA: This is not a JavaMail problem. This is an error reply from \r\nyour SMTP mail server. It indicates that your mail server is not \r\nconfigured to allow you to send mail through it. Typically, mail \r\nservers for an organization will be configured to allow mail from \r\nwithin the organization to be sent to other addresses within the \r\norganization, or to addresses external to the organization. It \r\nwill also typically allow mail coming from an address external \r\nto an organization to be sent to addresses within the organization. \r\nWhat it will typically not allow is mail coming from an address \r\nexternal to the organization to be sent (relayed) to another address \r\nalso external to the organization. The configuration of the mail \r\nserver determines whether such relaying is allowed, and which \r\naddresses are considered internal vs. external.\r\n**********************************************<\/pre>\n<\/li>\n<li>Your mail server is not accepting relays from your appserver IP address. Go to your SMTP server and set it to accept relays from the IP address where you are executing JavaMail. Microsoft Exchange is easy to set this up, but every SMTP server has an allowed relay IP address list. For information on Exchange Server 2007 setup,\u00a0<a href=\"http:\/\/www.minisoft.com\/pages\/business\/eformz\/pages\/ExchangeServer_2007.pdf\">click here<\/a>.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Errors sending email messages to external addresses might be resoved with the following steps. Pass the following information on to your email or network server administrator. Let her know that you are not able to send out emails from the Java application in eFORMz to an external email address (if internal messages can be sent). [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"_links":{"self":[{"href":"https:\/\/alt2.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/637"}],"collection":[{"href":"https:\/\/alt2.minisoft.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alt2.minisoft.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alt2.minisoft.com\/support\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/alt2.minisoft.com\/support\/wp-json\/wp\/v2\/comments?post=637"}],"version-history":[{"count":4,"href":"https:\/\/alt2.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/637\/revisions"}],"predecessor-version":[{"id":3943,"href":"https:\/\/alt2.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/637\/revisions\/3943"}],"wp:attachment":[{"href":"https:\/\/alt2.minisoft.com\/support\/wp-json\/wp\/v2\/media?parent=637"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alt2.minisoft.com\/support\/wp-json\/wp\/v2\/categories?post=637"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alt2.minisoft.com\/support\/wp-json\/wp\/v2\/tags?post=637"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}