Jump to content

hhpl

Member
  • Posts

    6
  • Joined

  • Last visited

About hhpl

hhpl's Achievements

Junior Member

Junior Member (1/3)

0

Reputation

  1. Still nothing. It looks like a WHMCS bug...
  2. Only to admin. There is no any error, just not send any e-mail. PS. I know that in code is "#subject" (should be $subject), I couldn't edit post.
  3. if (!defined("WHMCS")) die("This file cannot be accessed directly"); function mail_after_renew($vars) { $emal = "my@mail.com"; $headers = "MIME-Version: 1.0\n"; $headers .= "Content-type: text/plain; charset=UTF-8\r\nContent-Transfer-Encoding: 8bit\nX-Priority: 1\nX-MSMail-Priority: High\n"; $headers .= "From: my@hosname.com<$emal>\n" . "Reply-To: $emal\n" . "X-Mailer: PHP/" . phpversion() . "\nX-originating-IP: " . $_SERVER[REMOTE_ADDR] . "\n"; $userId = $vars['params']['userid']; $accountId = $vars['params']['accountid']; $domain = $vars['params']['domain']; $serverHostname = $vars['params']['serverhostname']; $subject = "Service renewed"; $message = "User".$userId." reneved service ".$accountId.""; mail($emal, #subject, $message, $headers); } add_hook("AfterModuleRenew",1,"mail_after_renew"); Do you have any idea why it does not work?
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated