jGuru
Register Email     Password Forgot your
password?
HOME FAQS FORUMS DOWNLOADS ARTICLES PEERSCOPE LEARN

  Search   jGuru Search Help

View:
JavaMail FAQ Home Page

FAQ Manager is guru John Zukowski PREMIUM.

The JavaMail API offers a standard Java extension API to talk to all your favorite standard Internet mail protocols.

What's New

When using getMessagesByUID(long start, long end) to fetch a range of messages by UID, how to I specify the last available UID?
Java:API:JavaMail
John Zukowski PREMIUM, Mar 23, 2007
The UIDFolder class has a LASTUID constant for just such a purpose.
When I fetch messages from a UIDFolder via the getMessagesByUID() method, are they returned in any particular order?
Java:API:JavaMail
John Zukowski PREMIUM, Mar 23, 2007
The getMessagesByUID(long[] uids) version will return the messages in the order of the UIDs in the array. If one particular UID is invalid, null will be...
Can my JavaMail client choose the authentication mechanism used on the server?
Java:API:JavaMail:SMTP
John Zukowski PREMIUM, Jan 6, 2007
With the 1.4 JavaMail SMTP provider, you cannot. It will choose the first available mechanism, searching for either LOGIN, PLAIN, or DIGEST-MD5 in tha...

How can I read a vCard attachment from my Java program?
Languages:Markup:XML, Java:API:JavaMail:Attachments
John Zukowski PREMIUM, Dec 31, 2006
The vCard4J SourceForge project (http://sourceforge.net/projects/vcard4j) offers just what you are looking for.
Does JavaMail support direct access to Microsoft Exchange contact lists and calendar appointments?
Java:API:JavaMail:Products:Microsoft Exchange
John Zukowski PREMIUM, Dec 31, 2006
No. But, the Java Exchange Connector, available from http://jec.zapto.org/, is one commercial option that offers such access.
How do I manually set the mime type for an attached file?
Java:API:JavaMail:Attachments
John Zukowski PREMIUM, Dec 31, 2006
You'll need to subclass FileDataSource and override its getContentType() method to return your desired type.
FileDataSource doesn't know about many mime types and seems to make most attachments application/octet-stream. How can I extend its mime type set?
Java:API:JavaMail:Attachments
John Zukowski PREMIUM, Dec 31, 2006
You can add support for more extensions programmatically or by adding a META-INF/mime.types configuration file to your application. For example, to...
I seem to have conflicting versions of JavaMail libraries in my CLASSPATH, but there seems to be only one. What's up?
Java:API:JavaMail
John Zukowski PREMIUM, Dec 31, 2006
The JavaMail libraries are a standard part of J2EE and thus every application server. Be sure you DO NOT have a second copy in your CLASSPATH, as it will...
I seem to have conflicting versions of JavaMail libraries in my CLASSPATH, but there seems to be only one. What's up?
Java:API:JavaMail
John Zukowski PREMIUM, Dec 31, 2006
The JavaMail libraries are a standard part of J2EE and thus every application server. Be sure you DO NOT have a second copy in your CLASSPATH, as it will...
Can I use JavaMail to backup my GMAIL account?
Java:API:JavaMail
John Zukowski PREMIUM, Dec 31, 2006
Short answer. Yes. Longer answer: In Gmail, access the SETTINGS link. Select FORWARDING AND POP. Select Enable POP for all mail (even mail that's...
I'm using Google's configuration options to check my gmail account but it still isn't working. What could be wrong?
Java:API:JavaMail
John Zukowski PREMIUM, Oct 31, 2006
Not only do you have to use the right settings to get the mail but you must enable POP access in GMAIL.
Why does getting the list of BCC recipients in a message I receive always come up empty?
Java:API:JavaMail
John Zukowski PREMIUM, Oct 30, 2006
BCC stands for BLIND carbon copy. In other words, you aren't supposed to see who the sender sent the message to. This field works well when someone sends...
What configuration options do I use to connect to gmail/Google from JavaMail?
Java:API:JavaMail
John Zukowski PREMIUM, Sep 30, 2006
Google offers the configuration options at http://mail.google.com/support/bin/answer.py?answer=13287.
I'm having problems using POP3 JavaMail with the Microsoft Exchange Server. What do I have to do to fix this?
Java:API:JavaMail:Products:Microsoft Exchange
John Zukowski PREMIUM, Sep 30, 2006
If your version of Exchange doesn't implmenet POP3 properly, you need to tell JavaMail to forget about TOP headers by setting the mail.pop3.forgettopheaders...
Does JavaMail support accessing the preamble of a message?
Java:API:JavaMail:Multipart
John Zukowski PREMIUM, Aug 31, 2006
JavaMail 1.4 adds get/setPreamble() methods to the MimeMultipart class. Some protocols like IMAP will not allow access to this text.
How can I customize the method of Message-ID generation?
Java:API:JavaMail
John Zukowski PREMIUM, Aug 31, 2006
Starting with JavaMail 1.4, you can take advantage of the protected updateMessageID() method in your custom subclass of MimeMessage.
How do I find out the IMAP folder separator character?
Java:API:JavaMail:IMAP4
John Zukowski PREMIUM, Aug 31, 2006
Use the getSeparator() method of Folder, instead of checking if the folder exists first.
My attachment data is already base64 encoded, how do I avoid it being double encoded?
Java:API:JavaMail:Attachments
John Zukowski PREMIUM, Aug 31, 2006
Use the new PreencodedMimeBodyPart class, added to JavaMail 1.4.
How do I fold/unfold long header lines?
Java:API:JavaMail
John Zukowski PREMIUM, Aug 31, 2006
Use the fold() and unfold() methods of MimeUtility, added to JavaMail 1.4. Previosly, the methods were present, but private.
How do you specify the character set to use for a parameter?
Java:API:JavaMail:SMTP
John Zukowski PREMIUM, Aug 31, 2006
Added to JavaMail 1.4, see the new public void set(String name, String value, String charset) method of ParameterList.
« previous beginning next »


Ask A Question



Related Links

JavaMail Forum

JavaMail home

JavaBeans Activation Framework

JavaMail API Documentation

Activation API Documentation

JavaMail Tutorial

Wish List
Features
About jGuru
Contact Us

 


internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs