SMTPDebug = 2; // Enable verbose debug output $mail->isSMTP(); // Set mailer to use SMTP $mail->Host = 'secure.emailsrvr.com'; // Specify main and backup SMTP servers $mail->SMTPAuth = true; // Enable SMTP authentication $mail->Username = 'becagorayeb@gorayeb.com'; // SMTP username $mail->Password = '$Landingpage1$'; // SMTP password $mail->SMTPSecure = 'ssl'; // Enable TLS encryption, `ssl` also accepted $mail->Port = 465; // TCP port to connect to //Recipients $mail->setFrom('becagorayeb@gorayeb.com', 'Gorayeb and Associates'); $mail->addAddress('anthonypruiz@outlook.com', 'Anthony Ruiz'); // Add a recipient $mail->addAddress('ijimenez-caba@gorayeb.com', 'Ingrid Jimenez-Caba'); // Name is optional //$mail->addReplyTo('anthonypruiz@outlook.com', 'Information'); //$mail->addCC('cc@example.com'); //$mail->addBCC('bcc@example.com'); //Attachments //$mail->addAttachment('/var/tmp/file.tar.gz'); // Add attachments //$mail->addAttachment('/tmp/image.jpg', 'new.jpg'); // Optional name //Content $mail->isHTML(true); // Set email format to HTML $mail->Subject = 'Applicant name'; $mail->Body = 'This is a test
Please let me know you got this. '; $mail->AltBody = 'This is the body in plain text for non-HTML mail clients'; $mail->send(); echo 'Message has been sent'; } catch (Exception $e) { echo 'Message could not be sent. Mailer Error: ', $mail->ErrorInfo; }?*/