<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>
		<title>Cycling 74  &#187;  Topic: net.mail.send</title>
		<atom:link href="http://cycling74.com/forums/topic/net-mail-send/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/net-mail-send/feed</link>
		<description></description>
		<pubDate>Wed, 19 Jun 2013 06:54:05 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/net-mail-send/#post-35060</guid>
					<title><![CDATA[net.mail.send]]></title>
					<link>http://cycling74.com/forums/topic/net-mail-send/#post-35060</link>
					<pubDate>Wed, 19 Dec 2007 10:54:05 +0000</pubDate>
					<dc:creator>georghajdu@mac.com</dc:creator>

					<description>
						<![CDATA[
						<p>I&#8217;m having trouble with net.mail.send. Trying to send email from/to  <br />
my .mac account I&#8217;m getting this error message:</p>
<p>com.sun.mail.smtp.SMTPSendFailedException: 556 5.1.0 Invalid From  <br />
header.<br />
	at com.sun.mail.smtp.SMTPTransport.issueSendCommand <br />
(SMTPTransport.java:1515)<br />
	at com.sun.mail.smtp.SMTPTransport.finishData(SMTPTransport.java:1321)<br />
	at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:637)<br />
	at javax.mail.Transport.send0(Transport.java:189)<br />
	at javax.mail.Transport.send(Transport.java:118)<br />
	at net.mail.send.deliver(send.java:71)<br />
exception: MessagingException</p>
<p>I have no idea why <a href="mailto:georghajdu@mac.com">georghajdu@mac.com</a> is generating this message.<br />
Also, I noticed that authentication wasn&#8217;t implemented. Is this on  <br />
the author&#8217;s to-do list? This would be nice!</p>
<p>I&#8217;m using JavaMail 1.4.1 and jaf 1.1.1 on a MacBook with 10.4.11 and  <br />
the latest Java release installed.</p>
<p>Georg</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/net-mail-send/#post-119085</guid>
					<title><![CDATA[Re: net.mail.send]]></title>
					<link>http://cycling74.com/forums/topic/net-mail-send/#post-119085</link>
					<pubDate>Wed, 19 Dec 2007 14:27:39 +0000</pubDate>
					<dc:creator>Owen Green</dc:creator>

					<description>
						<![CDATA[
						<p>Hi Georg,</p>
<p>It&#8217;s quite possible that the error is a consequence of not<br />
authenticating, if that&#8217;s what the SMTP server expects (the status of<br />
response codes > 554 is sufficiently murky to not be clear with a quick<br />
google, it seems).</p>
<p>Looking at the code for net.mail.send, hacking it to add authentication<br />
shouldn&#8217;t be massively difficult &#8211; there are broadly two ways, see:</p>
<p>< <a href="http://java.sun.com/products/javamail/javadocs/com/sun/mail/smtp/package-summary.html" rel="nofollow">http://java.sun.com/products/javamail/javadocs/com/sun/mail/smtp/package-summary.html><br />
<quote><br />
> To use SMTP authentication you&#8217;ll need to set the mail.smtp.auth<br />
> property (see below) and provide the SMTP Transport with a username<br />
> and password when connecting to the SMTP server. You can do this<br />
> using one of the following approaches:<br />
> <br />
> * Provide an Authenticator object when creating your mail Session and<br />
> provide the username and password information during the<br />
> Authenticator callback.<br />
> <br />
> Note that the mail.smtp.user property can be set to provide a default<br />
> username for the callback, but the password will still need to be<br />
> supplied explicitly.<br />
> <br />
> This approach allows you to use the static Transport send method to<br />
> send messages.<br />
> <br />
> * Call the Transport connect method explicitly with username and<br />
> password arguments.<br />
> <br />
> This approach requires you to explicitly manage a Transport object<br />
> and use the Transport sendMessage method to send the message. The<br />
> transport.java demo program demonstrates how to manage a Transport<br />
> object. The following is roughly equivalent to the static Transport<br />
> send method, but supplies the needed username and password:<br />
 ><br />
>           Transport tr = session.getTransport(&#8220;smtp&#8221;);<br />
>           tr.connect(smtphost, username, password);<br />
>           msg.saveChanges();      // don&#8217;t forget this<br />
>           tr.sendMessage(msg, msg.getAllRecipients());<br />
>           tr.close();<br />
</quote></p>
<p>hth,<br />
Owen</p>
<p>Georg Hajdu wrote:<br />
> I&#8217;m having trouble with net.mail.send. Trying to send email from/to<br />
> my .mac account I&#8217;m getting this error message:<br />
> <br />
> com.sun.mail.smtp.SMTPSendFailedException: 556 5.1.0 Invalid From<br />
> header. at <br />
> com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1515)<br />
>  at<br />
> com.sun.mail.smtp.SMTPTransport.finishData(SMTPTransport.java:1321) <br />
> at<br />
> com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:637) <br />
> at javax.mail.Transport.send0(Transport.java:189) at<br />
> javax.mail.Transport.send(Transport.java:118) at<br />
> net.mail.send.deliver(send.java:71) exception: MessagingException<br />
> <br />
> I have no idea why <a href="mailto:georghajdu@mac.com">georghajdu@mac.com</a> is generating this message. <br />
> Also, I noticed that authentication wasn&#8217;t implemented. Is this on<br />
> the author&#8217;s to-do list? This would be nice!<br />
> <br />
> I&#8217;m using JavaMail 1.4.1 and jaf 1.1.1 on a MacBook with 10.4.11 and<br />
> the latest Java release installed.<br />
> <br />
> Georg<br />
> <br />
> <br />
> </p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

