Faxing using JavaMail
843830Jan 28 2003 — edited Jul 13 2007Hi,
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.