1
Hi
how to send a mail with template to single user.
$xoopsMailer1 =& getMailer();
$xoopsMailer1->useMail();
$xoopsMailer1->setTemplate('register.tpl');
$xoopsMailer1->assign('SITENAME', $xoopsConfig['sitename']);
$xoopsMailer1->assign('ADMINMAIL', $xoopsConfig['adminmail']);
$xoopsMailer1->assign('SITEURL', XOOPS_URL."/");
Setusers will send the mails to single user$email_user=sample@sample.com$xoopsMailer1->setToUsers($email_user);
$xoopsMailer1->setFromEmail($xoopsConfig['adminmail']);
$xoopsMailer1->setFromName($xoopsConfig['sitename']);
$xoopsMailer1->setSubject(sprintf(_US_USERKEYFOR1,$myts->oopsStripSlashesGPC($uname)));
$xoopsMailer1->send();
Please help me.