Manual

mail functions

emcrypt($email) {#emcrypt}

encrypt mail to nonhuman readable

{{lang:php}}
echo emcrypt($email);
// #EM#706e66736b7767476d6d637f637f207c79#EM#

emdecrypt($email) {#emcrypt}

decrypt mail to nonhuman readable

{{lang:php}}
echo emdecrypt('#EM#706e66736b7767476d6d637f637f207c79#EM#');
// test@example.com

hidemail($text) {#hidemail}

parses mails from text and encrypt them

{{lang:php}}
$text = "this si my email: example@example.si";
echo hidemail($text);
// this si my email: #EM#706e66736b7767476d6d637f637f207c79#EM#

showmail($text) {#showmail}

parses hidden mails from text and decrypt them

{{lang:php}}
$text = "this si my email: #EM#706e66736b7767476d6d637f637f207c79#EM#";
echo hidemail($text);
// this si my email: example@example.si

systemmailtemplate($templateid,$datavars=array()) {#systemmailtemplate}

generate mail content from system mail template

{{lang:php}}
loadhelper('mail');

$mail = new mail();
$mail->from = 'system@mail.com';
$mail->to = 'mail@mail.com';
$mail->subject = "system";
$mail->message = system_mail_template(17,array('aaa'=>'1','bbb'=>2));
$mail->send();
Try myPortal 2: