Caucho Forums  

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

Go Back   Caucho Forums > Quercus

Thread Tools Display Modes
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("", "NAME&quot);

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

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

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(";
Reply With Quote


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 09:49 PM.

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