| Server IP : 137.184.226.51 / Your IP : 10.8.0.1 Web Server : Apache/2.4.41 (Ubuntu) System : Linux vm8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : ( 1000) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/wintergenomics_site/xor/ |
Upload File : |
<?php
require_once("general_conn.php");
require_once("moodle_conn.php");
//Import PHPMailer classes into the global namespace
//These must be at the top of your script, not inside a function
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\SMTP;
use PHPMailer\PHPMailer\Exception;
//Load Composer's autoloader
require 'PHPMailer-master/vendor/autoload.php';
//Create an instance; passing `true` enables exceptions
$mail = new PHPMailer(true);
try {
//Server settings
//$mail->SMTPDebug = SMTP::DEBUG_SERVER; //Enable verbose debug output
$mail->isSMTP(); //Send using SMTP
$mail->Host = 'smtp.gmail.com'; //Set the SMTP server to send through
$mail->SMTPAuth = true; //Enable SMTP authentication
$mail->Username = 'noreply@wintergenomics.com'; //SMTP username
$mail->Password = 'voczclqfobumzqmp'; //SMTP password
$mail->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS; //Enable implicit TLS encryption
$mail->Port = 465; //TCP port to connect to; use 587 if you have set `SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS`
//Recipients
$mail->setFrom('noreply@wintergenomics.com', 'Winter Genomics');
// $mail->addAddress('hola@wintergenomics.com', 'Winter'); //Add a recipient
$mail->addAddress($_REQUEST["user_email"]); //Name is optional
$mail->addReplyTo('cursos@wintergenomics.com', 'Winter Genomics');
//$mail->addCC('hola@wintergenomics.com');
$mail->addBCC('cursos@wintergenomics.com');
$mail->addBCC('redes@wintergenomics.com');
//Attachments
//$mail->addAttachment('/var/tmp/file.tar.gz'); //Add attachments
// $mail->addAttachment('/tmp/image.jpg', 'new.jpg'); //Optional name
//Content
$mail->isHTML(true); //Set email format to HTML
$mail->Subject = 'Acceso a la plataforma - Winter School';
$mail->Body = '<div class="gmail_default">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div class="gmail_default">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div class="gmail_default">
<div>
<div class="gmail_default"><span style="color: #000000;">Estimado(a) '.$_REQUEST["user_name"].'</span></div>
<div class="gmail_default"><span style="color: #000000;"> </span></div>
<div class="gmail_default"><span style="color: #000000;">Muchas gracias por inscribirte al curso de '.htmlentities($curso).'. </span>Te compartimos los siguientes datos para acceder: </div>
</div>
<div><span style="color: #000000;"><strong> </strong></span></div>
<div><strong><span style="color: #45818e;">ACCESO</span></strong></div>
<span style="color: #000000;"><strong>Usuario:</strong><span class="gmail_default"> '.$_REQUEST["user_username"].'</span><br /></span></div>
<div class="gmail_default"><span style="color: #000000;"><strong>Fecha de acceso: </strong>'.date("Y-m-d").' al '.date('Y-m-d', strtotime(date("Y-m-d"). ' + 75 days')).'</span></div>
<div class="gmail_default"><strong>Acceso a la plataforma:</strong> En nuestra página web: <a href="http://www.wintergenomics.com/" target="_blank" rel="noopener" data-saferedirecturl="https://www.google.com/url?q=http://www.wintergenomics.com/&source=gmail&ust=1629225679486000&usg=AFQjCNG-8FI1I1nzbNuh3kaVB1FQWdk_bw">www.wintergenomics.com</a> <wbr />selecciona el apartado "Acceso Winter School"</div>
<div class="gmail_default"> </div>
<div class="gmail_default">
<div dir="ltr">
<div dir="ltr">
<div class="gmail_default">
<div><strong><span style="color: #45818e;">MATERIAL</span></strong></div>
<div>El material necesario para el curso lo encontrarás en la plataforma. </div>
<div> </div>
</div>
</div>
</div>
<div class="gmail_default">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div class="gmail_default">
<div><strong><span style="color: #000000;">En caso de algún problema o dudas, envíanos un correo a <u><a href="mailto:cursos@wintergenomics.com" target="_blank" rel="noopener">cursos@wintergenomics.com</a></u> <wbr />con una captura de pantalla del error para poder asesorarte correctamente.</span></strong></div>
<div><strong><span style="color: #000000;"> </span></strong></div>
<div><strong><span style="color: #45818e;">IMPORTANTE</span></strong></div>
<div>
<div>
<ul>
<li><span style="color: #000000;">Este curso es completamente teórico- práctico, y<strong> podrás acceder al curso por seis semanas ilimitadamente para utilizar todo el material disponible en el horario que mejor te convenga</strong> <br /></span></li>
<li><span style="color: #000000;">Para recibir tu constancia, debes de haber concluído el curso exitosamente y haber aprobado los examenes con calificación mínima de 7. </span></li>
</ul>
<div> </div>
</div>
<div>Atentamente,</div>
<div> </div>
<div>Winter School</div>
</div>
<div> </div>
<div>--</div>
</div>
</div>
</div>
</div>
<div class="gmail_signature" dir="ltr" data-smartmail="gmail_signature">
<div dir="ltr">
<div dir="ltr">
<div><strong><span style="color: #45818e; font-size: xx-small;">Síguenos en nuestras redes sociales y ¡Únete a la revolución genómica! </span></strong></div>
<div><span style="color: #000000; font-size: xx-small;">Facebook: <a href="https://www.facebook.com/wintergenomics" target="_blank" rel="noopener">https://www.facebook.com/wintergenomics</a><br /></span></div>
<div><span style="color: #000000; font-size: xx-small;">Youtube: <a href="https://www.youtube.com/channel/UCAE_Don78MR0bKKg8tLnZVA" target="_blank" rel="noopener">https://www.youtube.com/channel/UCAE_Don78MR0bKKg8tLnZVA</a></span></div>
<div><span style="color: #000000; font-size: xx-small;">Twitter: <a href="https://twitter.com/wintergenomics" target="_blank" rel="noopener">https://twitter.com/wintergenomics</a></span></div>
<div><span style="color: #000000; font-size: xx-small;">Instagram: <a href="https://www.instagram.com/wintergenomics/" target="_blank" rel="noopener">https://www.instagram.com/wintergenomics/</a></span></div>
</div>
<div dir="ltr"> </div>
<div dir="ltr"><img src="https://docs.google.com/uc?export=download&id=1z3buwroZZXc2rQtUSSsAd4xNEPqQM7Zu&revid=0Bx5BBUhuZAk1VlZKeHdZNUN1cm1uYmpOQ0VpTy9IVlhLY1U4PQ" /></div>
<div dir="ltr"><span style="color: #000000; font-size: xx-small;"><em>El contenido de este mensaje de datos es confidencial y se entiende dirigido y para uso exclusivo del destinatario, por lo que no podrá distribuirse y/o difundirse por ningún medio sin la previa autorización del emisor original. Si usted no es el destinatario, se le prohíbe su utilización total o parcial para cualquier fin.</em></span></div>
</div>
</div>
';
$mail->AltBody = 'Estimad@ Alumn@. Tu proceso ha concluido exitosamente.
URL: http://learning.wintergenomics.lat
Usuario: '.$_REQUEST["user_username"].'
Contraseña: '.$_REQUEST["user_password"];
$mail->send();
// echo 'Message has been sent';
} catch (Exception $e) {
echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}";
}