Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require '../phpmailer/PHPMailerAutoload.php';
- $mail=new PHPmailer;
- $mail->isSMTP();
- $mail->Host='gator4025.hostgator.com';
- $mail->Port=465;
- $mail->SMTPAuth=true;
- $mail->SMTPSecure='ssl';
- $mail->Username='comercial@tecflucol.com';
- $mail->Password='mypass';
- $mail->setFrom('comercial@tecflucol.com','Solicitudes Tecflucol');
- $mail->Sender='comercial@tecflucol.com';
- $mail->addReplyTo('comercial@tecflucol.com','Solicitudes Tecflucol');
- $mail->addAddress(prueba125474522@hotmail.com);
- $mail->isHTML(false);
- $mail->Subject='Confirmacion solicitud de instalacion de agua numero: '.$nuevo_id;
- $mail->Body='Has realizado una solicitud de instalacion de agua para su hogar, con numero : '.$nuevo_id."rn"."rn".
- 'Le estaremos contactando al numero proporcionado: '.$celular."rn".
- 'Gracias por usar nuestros servicios'."rn".
- 'Cordialmente:'."rn".
- 'Tecflucol';
- if(!$mail->Send()) {
- echo "Mensaje no enviado <br />PHPMailer Error: " . $email->ErrorInfo;
- }
- else {
- echo "Mensaje enviado";
- }
- ?>
Add Comment
Please, Sign In to add comment