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:
but doesnt when set as:
i have error_log($row->email); before function call, , returning correct email.
any appreciated
current code:
cheers
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
normally when retreiving postdata variable never $row->something
Comments
Post a Comment