Caucho Forums  

This forum is permanently closed because of spam. For free community support, please visit Google Groups:


Go Back   Caucho Forums > Quercus

Reply
 
Thread Tools Display Modes
  #1  
Old 10-11-2012, 10:03 PM
ismak ismak is offline
Junior Member
 
Join Date: Oct 2012
Posts: 1
Default Access to Message.RecipientType.TO

How can I access to Message.RecipientType.TO?

This doesn't work. $r->TO is always null.

My code:

$props = new Properties();
$session = Session::getDefaultInstance($props, null);

$msg = new MimeMessage($session);
$msg->setFrom(new InternetAddress("email@example.com", "NAME&quot);

$r = new java("javax.mail.Message\$RecipientType"

$msg->addRecipient( $r->TO,
new InternetAddress("example@example.com", "example&quot);
Reply With Quote
  #2  
Old 10-13-2012, 01:20 AM
nam nam is offline
Administrator
 
Join Date: Aug 2009
Posts: 337
Default

Thanks. I just fixed this for 4.0.33. Note that you'll need to use the double-colon syntax:

$msg->addRecipient($r::TO, new InternetAddress("127.0.0.1&quot);

http://bugs.caucho.com/view.php?id=5245
Reply With Quote
Reply

Tags
gae, message.recipienttype.to

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:00 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.