RE: unable to send a java mail
The problem appears to be with your SMTP server and not java. Looks like you might need to open it up a bit to relaying. Ta Matt -Original Message- From: vishwam [mailto:[EMAIL PROTECTED] Sent: 28 April 2005 14:18 To: Tomcat Users List Subject: unable to send a java mail iam trying to send a simple email using javamailAPI but iam getting the following error sun.net.smtp.SmtpProtocolException: 553 Sorry, that domain isn't in my list of allowed rcpthosts. at sun.net.smtp.SmtpClient.issueCommand(Unknown Source) at sun.net.smtp.SmtpClient.toCanonical(Unknown Source) Iam trying for last 4 days ,but i couldn't solve this problem it is important ,bcos iam using it in my project i'll be grateful to someone who solves this problem thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: unable to send a java mail
From: vishwam [mailto:[EMAIL PROTECTED] iam trying to send a simple email using javamailAPI but iam getting the following error sun.net.smtp.SmtpProtocolException: 553 Sorry, that domain isn't in my list of allowed rcpthosts. That's a response from your mail server. I suspect you're trying to send it something like: RCPT [EMAIL PROTECTED] ... where it's not allowed to accept mail for somedomain.com, probably because the server's configured to stop it being used as a relay. If you know who you're sending to, try this from the Tomcat server: telnet mailserver 25 [and then type into the telnet window] HELO name of Tomcat server MAIL From:from address RCPT To:recipient address ... and see whether you get a 553 error back from the RCPT. That would prove it. - Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: unable to send a java mail
Hi, try to make a POP3 request before trying to send a SMTP Mail thru the mailserver. This can be a security feature of your mailserver. Marco --- http://www.kontaktlinsen-preisvergleich.de http://www.parfuem-faq.de Am Donnerstag, den 28.04.2005, 18:48 +0530 schrieb vishwam: iam trying to send a simple email using javamailAPI but iam getting the following error sun.net.smtp.SmtpProtocolException: 553 Sorry, that domain isn't in my list of allowed rcpthosts. at sun.net.smtp.SmtpClient.issueCommand(Unknown Source) at sun.net.smtp.SmtpClient.toCanonical(Unknown Source) Iam trying for last 4 days ,but i couldn't solve this problem it is important ,bcos iam using it in my project i'll be grateful to someone who solves this problem thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: unable to send a java mail
my smtp server requires authentication with username password but i couldn't find these smtp authentication fields in java mail specification my email program is like this public class MailServlet extends HttpServlet { static final String FROM = [EMAIL PROTECTED]; static final String TO = [EMAIL PROTECTED]; public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { res.setContentType(text/plain); PrintWriter out = res.getWriter(); ParameterParser parser = new ParameterParser(req); String from = parser.getStringParameter(from, FROM); String to = parser.getStringParameter(to, TO); try { SmtpClient smtp = new SmtpClient(xx); // smtphost name smtp.from(from); smtp.to(to); PrintStream msg = smtp.startMessage(); msg.println(To: + to); // so mailers will display the To: address msg.println(Subject: Customer feedback); msg.println(); Enumeration enum1 = req.getParameterNames(); while (enum1.hasMoreElements()) { String name = (String)enum1.nextElement(); if (name.equals(to) || name.equals(from)) continue; // Skip to/from String value = parser.getStringParameter(name, null); msg.println(name + = + value); } msg.println(); msg.println(---); msg.println(Sent by + HttpUtils.getRequestURL(req)); smtp.closeServer(); } - Original Message - From: Dale, Matt [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Thursday, April 28, 2005 6:49 PM Subject: RE: unable to send a java mail The problem appears to be with your SMTP server and not java. Looks like you might need to open it up a bit to relaying. Ta Matt -Original Message- From: vishwam [mailto:[EMAIL PROTECTED] Sent: 28 April 2005 14:18 To: Tomcat Users List Subject: unable to send a java mail iam trying to send a simple email using javamailAPI but iam getting the following error sun.net.smtp.SmtpProtocolException: 553 Sorry, that domain isn't in my list of allowed rcpthosts. at sun.net.smtp.SmtpClient.issueCommand(Unknown Source) at sun.net.smtp.SmtpClient.toCanonical(Unknown Source) Iam trying for last 4 days ,but i couldn't solve this problem it is important ,bcos iam using it in my project i'll be grateful to someone who solves this problem thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: unable to send a java mail
From: vishwam [mailto:[EMAIL PROTECTED] my smtp server requires authentication with username password but i couldn't find these smtp authentication fields in java mail specification The section entitled 'transport' in http://java.sun.com/developer/onlineTraining/JavaMail/contents.html gives more information - essentially, use Transport.send (message, username, password) to send the message. - Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]