Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class MvcBug{
- public function nuevoReporteBugController($tabla, $redireccionamiento){
- if (isset($_POST["bugReport"])) {
- $dato = $_POST["bugReport"];
- $dato = trim($dato);
- $respuesta = MvcControllerBug::nuevoReporteBugModel($dato, $tabla, $redireccionamiento, $_SESSION["idUsuario"]);
- unset($_POST['bugReport']);
- }
- }
- <?php
- use PHPMailerPHPMailerPHPMailer;
- require 'mail/autoload.php';
- $mail = new PHPMailer;
- $mail->isSMTP();
- $mail->SMTPDebug = 2;
- $mail->Host = 'smtp.gmail.com';
- $mail->Port = 25;
- $mail->SMTPSecure = 'tls';
- $mail->SMTPAuth = true;
- $mail->Username = "············";
- $mail->Password = "············";
- $mail->setFrom('...............', '...........');
- $mail->addReplyTo('replyto@example.com', 'Base');
- $mail->addAddress("..........", "...........");
- $mail->Subject = "Prueba";
- $mail->msgHTML(file_get_contents('contents.html'), __DIR__);
- $mail->AltBody = 'This is a plain-text message body';
- $mail->send();
- ?>
Add Comment
Please, Sign In to add comment