Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include (__DIR__.'/app/libs/phpmailer/PHPMailerAutoload.php');
- $mail = new PHPMailer;
- $mail->IsHTML(true);
- $mail->CharSet = "UTF-8";
- //$mail->isSMTP(); // Set mailer to use SMTP
- $mail->Host = 'mail.infinitydental.pe'; // Specify main and backup SMTP servers
- //$mail->SMTPAuth = true; // Enable SMTP authentication
- $mail->Username = 'phpmailer@infinitydental.pe'; // SMTP username
- $mail->Password = 'Z%EucSDb[h8U'; // SMTP password
- $mail->Port = 26;
- $mail->From = "phpmailer@infinitydental.pe";
- $mail->FromName = 'Contacto Infinity';
- $mail->Subject = "Tienes un nuevo Mensaje desde tu formulario de contacto";
- $body = "";
- $body.="<tr><td><b>Nombre: </b></td><td>".$_POST['nombre']."</td></tr>";
- $body.="<tr><td><b>Email: </b></td><td>".$_POST['email']."</td></tr>";
- $body.="<tr><td><b>Telefono: </b></td><td>".$_POST['telefono']."</td></tr>";
- $body.="<tr><td><b>Asunto: </b></td><td>".$_POST['asunto']."</td></tr>";
- $body.="<tr><td><b>Mensaje: </b></td><td>".$_POST['mensaje']."</td></tr>";
- $mail->Body = $body;
- $mail->addAddress('clinica@infinitydental.pe','Clinica Dental');
- //$mail->addAddress('flavio.huanacchiri@gmail.com','Clinica Dental');
- $mail->addBCC('centralinfinity2016@gmail.com');
- if($mail->send())
- echo "enviado";
- else
- echo "no enviado";
- //$this->mail->addReplyTo('no-reply@beautybookers.pe', 'Beauty Bookers');
- //$this->mail->addReplyTo(EMAIL_REPLY, NOMBRE_REPLY);
- //$this->mail->addBCC('flavio.huanacchiri@gmail.com');
- print_r($_POST);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement