<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>web development helpdesk &#187; javamail</title>
	<atom:link href="http://helpdesk.objects.com.au/tag/javamail/feed" rel="self" type="application/rss+xml" />
	<link>http://helpdesk.objects.com.au</link>
	<description>objects quality - the visible difference</description>
	<lastBuildDate>Sun, 17 Jul 2011 12:27:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>MessagingException: 501 Syntax: HELO hostname</title>
		<link>http://helpdesk.objects.com.au/java/messagingexception-501-syntax-helo-hostname?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=messagingexception-501-syntax-helo-hostname</link>
		<comments>http://helpdesk.objects.com.au/java/messagingexception-501-syntax-helo-hostname#comments</comments>
		<pubDate>Sat, 18 Dec 2010 02:24:04 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[EHLO]]></category>
		<category><![CDATA[HELO]]></category>
		<category><![CDATA[javamail]]></category>
		<category><![CDATA[localhost]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[smtp]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=1731</guid>
		<description><![CDATA[If you get the following error and not sure how to fix it then read on. Caused by: javax.mail.MessagingException: 501 Syntax: HELO hostname at com.sun.mail.smtp.SMTPTransport.issueCommand(SMTPTransport.java:1363) at com.sun.mail.smtp.SMTPTransport.helo(SMTPTransport.java:838) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:375) at javax.mail.Service.connect(Service.java:248) This is typically caused by the system property &#8220;mail.smtp.localhost&#8221; not being set by your Java VM. This should be already set for you automatically [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/messagingexception-501-syntax-helo-hostname/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Authenticating with smtp server using javamail</title>
		<link>http://helpdesk.objects.com.au/java/authenticating-with-smtp-server-using-javamail?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=authenticating-with-smtp-server-using-javamail</link>
		<comments>http://helpdesk.objects.com.au/java/authenticating-with-smtp-server-using-javamail#comments</comments>
		<pubDate>Mon, 11 Oct 2010 23:32:33 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[authenticator]]></category>
		<category><![CDATA[javamail]]></category>
		<category><![CDATA[PasswordAuthentication]]></category>
		<category><![CDATA[smtp]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=1576</guid>
		<description><![CDATA[When using an SMTP server that requires authentication with javamail we need a way to pass the username and password. Javamail provides an Authenticator class for this which we need to subclass to use. For standard usage we just need to override the getPasswordAuthentication() method to return a PasswordAuthentication instance containing the username and password [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/authenticating-with-smtp-server-using-javamail/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to specify a custom Message-ID with Javamail</title>
		<link>http://helpdesk.objects.com.au/java/how-to-specify-a-custom-message-id-with-javamail?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-specify-a-custom-message-id-with-javamail</link>
		<comments>http://helpdesk.objects.com.au/java/how-to-specify-a-custom-message-id-with-javamail#comments</comments>
		<pubDate>Fri, 19 Feb 2010 23:12:06 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[javamail]]></category>
		<category><![CDATA[Message-ID]]></category>
		<category><![CDATA[MimeMessage]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=1389</guid>
		<description><![CDATA[When using Javamail to send mail the Message-ID gets set when the message is actually sent. If you want to provide your own Message-ID then you need to subclass MimeMessage. You can then use that subclass to create your message. public class CustomMimeMessage extends MimeMessage { public CustomMimeMessage(Session session) { super(session); } @Override protected void [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/how-to-specify-a-custom-message-id-with-javamail/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to include sender name using JavaMail</title>
		<link>http://helpdesk.objects.com.au/java/how-to-include-sender-name-using-javamail?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-include-sender-name-using-javamail</link>
		<comments>http://helpdesk.objects.com.au/java/how-to-include-sender-name-using-javamail#comments</comments>
		<pubDate>Wed, 26 Aug 2009 09:24:31 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[javamail]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[sender]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=1152</guid>
		<description><![CDATA[When specifying an email address using JavaMail you can not only specify actual email address of the person, but also their name if required. The InternetAddress class is used to represent an email address which includes support for specifying both the email address and the personal name. There are two ways this can be done, [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/how-to-include-sender-name-using-javamail/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to embed images in HTML mail using JavaMail</title>
		<link>http://helpdesk.objects.com.au/java/how-to-embed-images-in-html-mail-using-javamail?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-embed-images-in-html-mail-using-javamail</link>
		<comments>http://helpdesk.objects.com.au/java/how-to-embed-images-in-html-mail-using-javamail#comments</comments>
		<pubDate>Wed, 12 Aug 2009 03:49:37 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[javamail]]></category>
		<category><![CDATA[multipart]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=1137</guid>
		<description><![CDATA[Multipart emails can be used to send html content with JavaMail. If you want to use images in the html content you can either specify the url of the image on an external server, or you can embed the image in the email itself. To embed an image in your mail you need to assign [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/how-to-embed-images-in-html-mail-using-javamail/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>How to send HTML mail using JavaMail</title>
		<link>http://helpdesk.objects.com.au/java/how-to-send-html-mail-using-javamail?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-send-html-mail-using-javamail</link>
		<comments>http://helpdesk.objects.com.au/java/how-to-send-html-mail-using-javamail#comments</comments>
		<pubDate>Wed, 12 Aug 2009 03:27:57 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[javamail]]></category>
		<category><![CDATA[multipart]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=1133</guid>
		<description><![CDATA[Multipart emails can be used to send html content with JavaMail as shown in the following example. // Create session Properties sessionProperties = System.getProperties(); sessionProperties.put(&#34;mail.smtp.host&#34;, smtpServer); Session session = Session.getDefaultInstance(sessionProperties, null); // Create message Message message = new MimeMessage(session); message.setFrom(new InternetAddress(from)); message.setRecipients(Message.RecipientType.TO, InternetAddress.parse( to, false)); message.setSubject(subject); // Create Multipart to add content to Multipart mp [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/how-to-send-html-mail-using-javamail/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to debug problems with JavaMail</title>
		<link>http://helpdesk.objects.com.au/java/how-to-debug-problems-with-javamail?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-debug-problems-with-javamail</link>
		<comments>http://helpdesk.objects.com.au/java/how-to-debug-problems-with-javamail#comments</comments>
		<pubDate>Fri, 24 Jul 2009 22:21:49 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[javamail]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=1125</guid>
		<description><![CDATA[JavaMail can be frustrating when it does not work, even worse when it works on one box but not on another. The following are t a few things to try and track down the cause of your problems. Enable debug logging This can be done in your code: session.setDebug(true); or on the command line: java [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/how-to-debug-problems-with-javamail/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Downloading attachments using JavaMail is slow</title>
		<link>http://helpdesk.objects.com.au/java/downloading-attachments-using-javamail-is-slow?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=downloading-attachments-using-javamail-is-slow</link>
		<comments>http://helpdesk.objects.com.au/java/downloading-attachments-using-javamail-is-slow#comments</comments>
		<pubDate>Mon, 09 Feb 2009 00:33:52 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[attachment]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[fetchsize]]></category>
		<category><![CDATA[imap]]></category>
		<category><![CDATA[javamail]]></category>
		<category><![CDATA[slow]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=778</guid>
		<description><![CDATA[The default IMAP implementation in JavaMail is very slow to download large attachments. Reason for this is that, by default, it uses a small 16K fetch buffer size. You can increase this buffer size using the &#8220;mail.imap.fetchsize&#8221; system property For example: properties.put("mail.imap.fetchsize", "819200"); Related posts: How to debug problems with JavaMail JavaMail can be frustrating [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/downloading-attachments-using-javamail-is-slow/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How do I send an email using Java?</title>
		<link>http://helpdesk.objects.com.au/java/how-do-i-send-an-email-using-java?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-do-i-send-an-email-using-java</link>
		<comments>http://helpdesk.objects.com.au/java/how-do-i-send-an-email-using-java#comments</comments>
		<pubDate>Wed, 01 Oct 2008 13:38:13 +0000</pubDate>
		<dc:creator>objects</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[javamail]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[smtp]]></category>

		<guid isPermaLink="false">http://helpdesk.objects.com.au/?p=397</guid>
		<description><![CDATA[Use JavaMail API // Create session Properties sessionProperties = System.getProperties(); sessionProperties.put(&#34;mail.smtp.host&#34;, smtpServer); Session session = Session.getDefaultInstance(sessionProperties, null); // Create message Message message = new MimeMessage(session); message.setFrom(new InternetAddress(from)); message.setRecipients(Message.RecipientType.TO, InternetAddress.parse(to, false)); message.setSubject(subject); message.setText(body); // Send the message Transport.send(message); Related posts: How to send HTML mail using JavaMail Multipart emails can be used to send html content [...]]]></description>
		<wfw:commentRss>http://helpdesk.objects.com.au/java/how-do-i-send-an-email-using-java/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

