function confirm_submission_by_email()
 {
     global $LANG;
     /**** ENVIO DE E-MAIL *****/
     $ic = new ic();
     $ic = $ic->ic('email_confirm_subm');
     $title = utf8_decode($this->doc_1_titulo);
     $texto = mst(utf8_decode($ic['text']));
     $subject = $ic['title'];
     $emails = $this->email_autores();
     $texto = troca($texto, '$TITLE', $title);
     $texto = troca($texto, '$CAAE', $protocolo);
     $texto = troca($texto, '$TITLE', $title);
     echo '<h3>' . $subjec . '</h3>';
     for ($r = 0; $r < count($emails); $r++) {
         echo 'sending to ' . $emails[$r];
         enviaremail($emails[$r], '', '#2' . $subject, $texto);
         enviaremail($emails[$r], '', '#1' . $subject, $texto);
     }
     exit;
 }
Exemple #2
0
 function send_pass_email($email)
 {
     global $ic;
     $sql = "select * from usuario where us_email = '" . $email . "' ";
     $rlt = db_query($sql);
     if ($line = db_read($rlt)) {
         $ref = "send_email_text";
         $ttt = $ic->ic($ref);
         $email1 = trim($line['us_email']);
         $text = mst($ttt['text']);
         $subj = $ttt['title'];
         $text .= '<BR><BR>' . msg('password') . ': <B>' . $line['us_senha'] . '</B>';
         enviaremail($email1, '', $subj, $text);
         echo '<BR>' . msg('send_mail_to') . ' ' . $email1;
         $ok = 'send_email_ok';
     } else {
         $ok = 'invalid_email';
     }
     return $ok;
 }
Exemple #3
0
 function confirm_notify_by_email()
 {
     global $LANG, $hd;
     $email_cep = $hd->email_replay;
     $email_nome = $hd->title;
     $ic = new ic();
     $ic = $ic->ic('email_notify_subm');
     $this->le($this->protocolo_cep);
     $sx = $this->mostra_email($this->line);
     $texto = mst(utf8_decode($ic['text']));
     $subject = utf8_decode($ic['title']);
     $texto = troca($texto, '$INFORMACION_DEL_PROTOCOLO', $sx);
     $texto = troca($texto, '$PROTOCOL_INFORMATION', $sx);
     $texto = troca($texto, '$TITLE', $sx);
     $texto = troca($texto, '$INFORMACION_DEL_COMITTE', $sx);
     $texto = troca($texto, '$COMMITTEE_INFORMATION', $sx);
     $emails = array();
     array_push($emails, $email_cep);
     for ($r = 0; $r < count($emails); $r++) {
         $email = $emails[$r];
         //echo '<BR>'.msg('send_to_email').':'.$email;
         enviaremail($email, '', $subject, $texto);
     }
 }
<?php

// This file is part of the ProEthos Software.
//
// Copyright 2013, PAHO. All rights reserved. You can redistribute it and/or modify
// ProEthos under the terms of the ProEthos License as published by PAHO, which
// restricts commercial use of the Software.
//
// ProEthos is distributed in the hope that it will be useful, but WITHOUT ANY
// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
// PARTICULAR PURPOSE. See the ProEthos License for more details.
//
// You should have received a copy of the ProEthos License along with the ProEthos
// Software. If not, see
// https://raw.githubusercontent.com/bireme/proethos/master/LICENSE.txt
$email_debug = 1;
$email_auth = 'MAIL';
$body = '<h1>Congratulations!</h1>This email was sent by Method #1';
enviaremail($email_to, '', $title_sample . ' Method#1 ' . date("d/m/Y H:m:s"), $body);
Exemple #5
0
    } else {
        $valid = $hd->site . '/login_user_valid.php?dd1=' . $dd[5] . '&dd90=' . checkpost($dd[5]);
    }
    $link = '<A HREF="' . $valid . '">';
    $ic_cod = "email_confirm_email";
    $tx = $ic->ic($ic_cod);
    /* Cambia texto */
    $texto = mst($tx['text']);
    $subtitle = $tx['title'];
    $texto = troca($texto, '$name', $name);
    $texto = troca($texto, '$NAME', $name);
    $texto = troca($texto, '$email', $email);
    $texto = troca($texto, '$EMAIL', $email);
    $texto = troca($texto, '$link', $link . $valid . '</a>');
    $texto = troca($texto, '$LINK', $link . $valid . '</a>');
    $texto .= '<BR><BR><font size=-2>' . $ic_cod . '</font>';
    /* Envia e-mail da validação */
    $sql = "select * from usuario where us_email = '" . $email . "' ";
    $rlt = db_query($sql);
    if ($line = db_read($rlt)) {
        $email = trim($line['us_email']);
        enviaremail($email, '', $subtitle, $texto);
        echo '<BR><BR>Send mail to ' . $email;
    }
    echo '</div>';
} else {
    echo $tela;
    echo '</div>';
}
echo '</div>';
echo $hd->foot();
Exemple #6
0
    function send_form($email1, $email2)
    {
        global $dd, $acao, $institution_name, $hd;
        global $edit_mode;
        if (strlen($acao) > 0) {
            if (strlen($dd[45]) > 0 and strlen($dd[46]) > 0) {
                /* enviar e-mail */
                $subject = msg('Email_comunication');
                $text = mst($dd[46]);
                $text .= '<BR><BR>' . 'Protocol:' . $this->protocolo;
                if (strlen($email1) > 0) {
                    enviaremail($email1, '', $subject, $text);
                }
                if (strlen($email2) > 0) {
                    enviaremail($email2, '', $subject, $text);
                }
                $this->email_save($dd[46], $dd[45]);
                //$sa .= '<script> alert("'.msg('email_was_send').'") </script>';
                $sa .= 'E-mail enviado com sucesso para ' . $email1 . ' ' . $email2 . '!';
                $dd[45] = '';
                $dd[46] = '';
            }
        }
        $sa .= '<TR valign="top"><TD>
				<form method="post" action="' . page() . '">
				<input type="hidden" name="dd1" value="' . $dd[1] . '">
				<input type="hidden" name="dd2" value="' . $dd[2] . '">
				<input type="hidden" name="dd3" value="' . $dd[3] . '">
				<input type="hidden" name="dd90" value="' . $dd[90] . '">
				';
        $subj = $hd->email_name . ' - ' . $this->protocolo;
        $sa .= '<TABLE class="lt0">';
        $sa .= '<TR valign="top"><TD>' . msg('mail_subject') . '<TD>';
        $sa .= '<input type="hidden" name="dd45" size=60 maxlength=100 value="' . $subj . '">' . $subj;
        $sa .= '<TR valign="top"><TD>' . msg('mail_content') . '<TD>';
        $sa .= '<textarea name="dd46" cols=50 rows=5 style="width: 99%;" >' . $dd[46] . '</textarea>';
        $sa .= '<TR><TD colspan=2>';
        $sa .= '<input type="submit" name="acao" value="' . msg('send_mail', 1) . '">';
        $sa .= '</table>';
        $sa .= '</form>';
        return $sa;
    }