Username = $email_user; $phpmailer->Password = $email_password; //----------------------------------------------------------------------- // $phpmailer->SMTPDebug = 1; $phpmailer->SMTPSecure = 'ssl'; $phpmailer->Host = "smtp.gmail.com"; // GMail $phpmailer->Port = 465; $phpmailer->IsSMTP(); // use SMTP $phpmailer->SMTPAuth = true; $phpmailer->setFrom($phpmailer->Username,$from_name); $phpmailer->AddAddress($address_to); // recipients email $phpmailer->Subject = $the_subject; $phpmailer->Body .="
Mensaje personalizado
"; $phpmailer->Body .= "Fecha y Hora: ".date("d-m-Y h:i:s")."
"; $phpmailer->IsHTML(true); $phpmailer->Send(); ?>