Non RFC 822 recipient with javamail
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Hans_Wurst
Posted On:   Tuesday, November 10, 2009 09:57 AM

Hi, i need to send a Mail from java to a specific address that is not RFC 822 compliant. The address has the form [ABC:abc1/+12345677], it is a address that corresponds to a fax gateway. MimeMessage message =new MimeMessage(session); message.setFrom(new InternetAddress("someone@domain.com")); message.addRecipient(Message.RecipientType.TO,new InternetAddress(mailRecipient,false)); throws an exception because the address is not valid, even if i set strict to false. Any ideas on how to send an email to such an address? regards Hans    More>>

Hi,


i need to send a Mail from java to a specific address that is not RFC 822 compliant.
The address has the form [ABC:abc1/+12345677],
it is a address that corresponds to a fax gateway.

			
MimeMessage message =new MimeMessage(session);
message.setFrom(new InternetAddress("someone@domain.com"));
message.addRecipient(Message.RecipientType.TO,new InternetAddress(mailRecipient,false));



throws an exception because the address is not valid, even
if i set strict to false.

Any ideas on how to send an email to such an address?



regards


Hans

   <<Less
About | Sitemap | Contact