Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Faxing using JavaMail

843830Jan 28 2003 — edited Jul 13 2007
Hi,

Our e-mail server will send faxes through our fax server if you write the address you're sending to in the form
[FAX:John Smith@02 1234 5678]

Unfortunately, when I write the line
InternetAddress toAddress = new InternetAddress("[FAX:John Smith@02 1234 5678]", false);
I get an error
javax.mail.internet.AddressException: Illegal address in string ''[FAX:John Smith@02 1234 5678]''

I thought of subclassing InternetAddress with my own FaxAddress class but InternetAddress's checkAddress method is 'private static void'.

Does anyone have any ideas?

Thanks,
Ian.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 10 2007
Added on Jan 28 2003
17 comments
1,814 views