Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $mail->Host = 'mail.example.in';
- $mail->Port = 25;
- $mail->SMTPAuth = true;
- $mail->Username = '[email protected]';
- $mail->Password = 'password';
- $mail->setFrom("[email protected]" , "User");
- $mail->addAddress('[email protected]', 'Receiver');
- $mail->addBCC('[email protected]', 'Another user');
- $mail->AddReplyTo('[email protected]', 'User');
- $mail->isHTML(true);
- $mail->Subject = $subject;
- $mail->Body = $message;
- if($mail->send())
- echo "Your request has been received. We will soon contact you.";
- else echo "Unable to send your request. Please try again";
- SMTP ERROR: Failed to connect to server: Connection timed out (110)
- SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Advertisement
Add Comment
Please, Sign In to add comment