Problem with addRecipient(); - Joomla! Forum - community, help and support


hello :)
im trying use jfactory::getmailer function send email,
problem addrecipient(); seems work when string inserted,

eg. works as:

code: select all

$mailsender ->addrecipient( 'myemail@email.com' );


but doesnt when set as:

code: select all

$mailsender ->addrecipient( $row->email );


i have error_log($row->email); before function call, , returning correct email.

any appreciated

current code:

code: select all

$mailsender =& jfactory::getmailer();
$mailsender ->setsender( array(  $row->sender ,'odnz link') );
$mailsender ->addrecipient( $row->email );
$mailsender ->setsubject( 'working document : comment declined' );
$mailsender ->setbody( 'reason:');


cheers

is $row->email valid variable?
normally when retreiving postdata variable never $row->something





Comments

Popular posts from this blog

Joomla site hacked, cant see front and - Joomla! Forum - community, help and support

Christian Home School Programs - Joomla! Forum - community, help and support

Trouble with PF_OutFlag_I_USE_AUDIO and PF_CHECKOUT_LAYER_AUDIO