/**
  * Gets the instance (the only one) of the GafaMailer.
  * @return GafaMailer
  */
 public static function Instance()
 {
     if (GafaMailer::$instance === null) {
         GafaMailer::$instance = new GafaMailer();
     }
     return GafaMailer::$instance;
 }
<?php

$mailFile = "inscripcion_causa.php";
$replacementsForgotPassword = array("@change_password_link" => "https://google.com", "@footer_image" => get("info_footer_image", 1, 1, OPCIONES_MAILINGS));
$replacementsInscripcionPlataforma = array("@inscribete_link" => get_permalink(EXPLORA_CAUSAS), "@footer_image" => get("info_footer_image", 1, 1, OPCIONES_MAILINGS));
$replacementsInscripcionCausa = array("@nombre_causa" => "My nombre", "@descripcion_causa" => "My description", "@link_causa" => "google.com", "@nombre_usuario" => "yo ajua", "@footer_image" => get("info_subscripcion_causa_footer_image", 1, 1, OPCIONES_MAILINGS));
$replacements = $replacementsInscripcionCausa;
$yeah = GafaMailer::Instance()->SendEmail("*****@*****.**", "Testeo Forgot Password", $mailFile, $replacements);
echo GafaMailer::Instance()->GetEmailHtml($mailFile, $replacements);
Example #3
0
function mail_password_reset_request($email, $url)
{
    $replacements = array("@change_password_link" => $url, "@footer_image" => get("info_footer_image", 1, 1, OPCIONES_MAILINGS));
    return GafaMailer::Instance()->SendEmail($email, "Recupearar contraseƱa - OperaciĆ³n Despierta", "forgot_password.php", $replacements);
}