Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (isset($_POST['email'])) {
- $mail = new PHPMailer();
- $mail->IsSMTP(true);
- $mail->Host = 'ssl://smtp.gmail.com:465';
- $mail->SMTPAuth = true;
- $mail->Username = 'username@yourdomain.com';
- $mail->Password = 'yourpassword';
- $mail->From = "Whatever";
- $mail->FromName = "Whatever";
- $mail->AddAddress('receiver@theirdomain.com');
- $mail->Subject = "Emails Subject Linke";
- $mail->Body = "Emails body goes here";
- $mail->WordWrap = 50;
- if ($mail->Send()) {
- echo "yay!";
- }
- }
Add Comment
Please, Sign In to add comment