I am new to PHP and trying to send an email with PHP script.
I did change "php.ini" settings to
SMTP = "in.mailjet.com"
smtp_port= 25
auth_username="abc"
auth_password="abc"
sendmail_from = "abc@abc.com"
Simple HTML file to call php file is
form name="contactform" method="post" action="PHPMailer/email.php"
style="padding-left:5%;">
<td colspan="2" style="text-align:center"> <br>
<input class="btn btn-info" type="submit" value="Download">
email.php file
require 'class.phpmailer.php';
$mail = new PHPMailer(true);
$mail->IsSMTP();
$mail->Host="in.mailjet.com";
$mail->SMTPAuth = true;
$mail->Username = 'abc';
$mail->Password = 'abc';
$mail->SetFrom('abc','Your Name');
$mail->AddAddress('jibran.ishtiaq@runyourfleet.com','Their Name');
$mail->Subject = 'Your email from PHPMailer and Mailjet';
$mail->MsgHTML('This is your email message.");
$mail->Send();
I am trying to send email from IIS server(test server), but I am not been able to send please help me out or let me know what I am missing.
Thank You