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
ServerWatch.com Article: Virtualization Enters the SMB World
ITChannelPlanet.com Article: Emerging E-Discovery Market Grows More Vital for VARs
StoreVault Whitepaper: Introduction to Networked Storage
Oracle eBook: Implementing Business Intelligence in Your Organization
Hoovers Sales Tip: Building Credibility with New Clients
SAP Whitepaper: A Corporate Guide to Better Decisions Through IT
Microsoft Article: Flexibility, Agility the Keys to Dynamic IT
Microsoft Article: Improving Infrastructure Management for Mid-Size Companies
IBM Whitepaper: CIO Insights--Ignite Innovation by Fusing Business and IT
IBM Whitepaper: Transforming Legacy Apps into SOA
Internet.com eBook: All About Botnets
Intel Article: 8 Simple Rules for Designing Threaded Applications
Symantec Whitepaper: E-Mail Discovery--Worst-Case Scenarios Versus Best Practices
Ipswitch Whitepaper: Secure File Transfer In the Era of Regulatory Compliance
Symantec Whitepaper: A Unified, Proactive Approach to Endpoint Security
APC eBook: Putting the Green in IT
Intel Whitepaper: Best Practices for Developing and Optimizing Threaded Applications
Symantec Whitepaper: Emerging Trends in Fighting Spam
Oracle eBook: Guide to Oracle 11g and Database Migration
Symantec Whitepaper: Best Practices for IM Archiving & Compliance
Intel Article: The Challenges of Developing Multithreaded Processing Pipelines
Avaya Whitepaper: SIP--Creating Next-Generation Telecom Applications
Avaya Article: Event Processing Demands Real-Time Response for Communications-Enabled Business Apps
MessageLabs Whitepaper: Spam Spikes--A Real Risk to Your Business
Symantec Article: Guarding the Corporate Gateway
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
Epicor Webcast: Requirements to Consider When Looking at ITSM Tools
Intel Video: Three Must-Knows for Parallelism
Microsoft: NXT Web Seminar Series
Microsoft Partner Program Video: The Secrets to Partner Success
Rational Asset Manager: Succeed with Asset-based Development
Microsoft Silverlight Video: Creating Fading Controls with Expression Design and Expression Blend 2
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
NXPowerLite: Desktop Edition Software Trial
IBM Rational Systems Development Solution e-Kit
IBM SOA Development Survival Guide eKit
Evaluate IBM Rational Build Forge Online
IBM Enterprise Architect eKit for SOA
Evaluate Rational Application Developer Online
Iron Speed Designer Application Generator
Symantec IM Detection Utility
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
IBM Overview Video: Next Generation Data Warehousing
IBM Tutorial: Intro to XML User Interface Language (XUL) Development
Microsoft How-to Article: Get Going with Silverlight and Windows Live
IBM Tutorial: The Ajax Transport Method
IBM Tutorial: Learning PHP
IBM Tutorial: Validating XML
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES