//Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission $mail->Port = 587; //Set the encryption system to use - ssl (deprecated) or tls $mail->SMTPSecure = 'tls'; //Whether to use SMTP authentication $mail->SMTPAuth = true; //Username to use for SMTP authentication - use full email address for gmail $mail->Username = "******"; //Password to use for SMTP authentication $mail->Password = "******"; //Set who the message is to be sent from $mail->setFrom('*****@*****.**', 'Hotel Provincial Reservaciones'); //Set an alternative reply-to address $mail->addReplyTo($email_from, 'Cliente'); //Set who the message is to be sent to $mail->addcc($email_from, 'Cliente'); $mail->addAddress($email_to, 'Hotel Provincial Reservaciones (Reenvio)'); //Set the subject line $mail->Subject = 'Form de Reservacion de Habs'; //Read an HTML message body from an external file, convert referenced images to embedded, //convert HTML into a basic plain-text alternative body $mail->msgHTML(' <html> <head> <title>Reservation Email</title> <meta charset="utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet"/> <link href="https://fonts.googleapis.com/css?family=Pacifico" rel="stylesheet" type="text/css" /> <link href="../css/main.css" rel="stylesheet" type="text/css" /> </head>