1

emailconfirmcomment

emailconfirmcomment
SYNOPSIS

emailconfirmcomment($node_id, $comment_id, $user_mail, $locale, $sender=false)

CODE
  1. require_once 'emailtext.php';
  2. require_once 'urlencodeaction.php';
  3.  
  4. function emailconfirmcomment($node_id, $comment_id, $user_mail, $locale, $sender=false) {
  5.     global $base_url;
  6.  
  7.     $saction_page=url('saction', $locale);
  8.  
  9.     if (!$saction_page) {
  10.         return false;
  11.     }
  12.  
  13.     $id=CONFIRMCOMMENT;
  14.     $param=array($node_id, $comment_id, $locale);
  15.  
  16.     $s64=urlencodeaction($id, $param);
  17.  
  18.     if (!$s64) {
  19.         return false;
  20.     }
  21.  
  22.     $url = $base_url . $saction_page . '/' . $s64;
  23.  
  24.     $to=$user_mail;
  25.     $subject = translate('email:comment_subject', $locale);
  26.     $f=translate('email:comment_confirm', $locale);
  27.     $s=sprintf($f, $url);
  28.     $msg = $s . "\n\n" . translate('email:salutations', $locale);
  29.  
  30.     return @emailtext($msg, $to, $subject, $sender);
  31. }
SEE ALSO

urlencodeaction, translate, emailtext

Comments

Your comment:
[p] [b] [i] [u] [s] [quote] [pre] [br] [code] [url] [email] strip help 2000

Enter a maximum of 2000 characters.
Improve the presentation of your text with the following formatting tags:
[p]paragraph[/p], [b]bold[/b], [i]italics[/i], [u]underline[/u], [s]strike[/s], [quote]citation[/quote], [pre]as is[/pre], [br]line break,
[url]http://www.izend.org[/url], [url=http://www.izend.org]site[/url], [email]izend@izend.org[/email], [email=izend@izend.org]izend[/email],
[code]command[/code], [code=language]source code in c, java, php, html, javascript, xml, css, sql, bash, dos, make, etc.[/code].