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

 




JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Solutions
Whitepapers and eBooks
IBM Whitepaper: Innovative Collaboration to Advance Your Business
Internet.com eBook: Real Life Rails
Avaya Article: Call Control XML - Powerful, Standards-Based Call Control
Internet.com eBook: The Pros and Cons of Outsourcing
Go Parallel Article: Scalable Parallelism with Intel(R) Threading Building Blocks
Internet.com eBook: Best Practices for Developing a Web Site
IBM CXO Whitepaper: The 2008 Global CEO Study "The Enterprise of the Future"
Avaya Article: Call Control XML in Action - A CCXML Auto Attendant
Go Parallel Article: James Reinders on the Intel Parallel Studio Beta Program
IBM CXO Whitepaper: Unlocking the DNA of the Adaptable Workforce--The Global Human Capital Study 2008
Adobe Acrobat Connect Pro: Web Conferencing and eLearning Whitepapers
Go Parallel Article: Getting Started with TBB on Windows
HP eBook: Storage Networking , Part 1
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
Go Parallel Video: Intel(R) Threading Building Blocks: A New Method for Threading in C++
HP Video: Is Your Data Center Ready for a Real World Disaster?
Microsoft Partner Portal Video: Microsoft Gold Certified Partners Build Successful Practices
HP On Demand Webcast: Virtualization in Action
Go Parallel Video: Performance and Threading Tools for Game Developers
Rackspace Hosting Center: Customer Videos
Intel vPro Developer Virtual Bootcamp
HP Disaster-Proof Solutions eSeminar
HP On Demand Webcast: Discover the Benefits of Virtualization
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Microsoft Download: Silverlight 2 Software Development Kit Beta 2
30-Day Trial: SPAMfighter Exchange Module
Red Gate Download: SQL Toolbelt
Iron Speed Designer Application Generator
Microsoft Download: Silverlight 2 Beta 2 Runtime
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
IBM IT Innovation Article: Green Servers Provide a Competitive Advantage
Microsoft Article: Expression Web 2 for PHP Developers--Simplify Your PHP Applications
Featured Algorithm: Intel Threading Building Blocks - parallel_reduce
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES