Hello,
I have a form mail set up with an AWS account. The SMTP settings are configured correctly in the action file, and the form functions. However, upon checking the form, it seems to be sending it locally rather than using the AWS account.
We have a several symptoms:
- The email fails to show in some inboxes. Upon testing, these results came back for deliverability, 6.7/10 (https://www.mail-tester.com/test-s6j7zv84v&reloaded=1)
- The records for the AWS account show no emails being sent with the AWS account
We need to fix this issue so that the template sends email notifications from the AWS account.
FORM ACTION FILE SMTP CREDENTIALS: "contact-form-test.php"
$mail->Host = 'smtp.zeptomail.com'; // Set the SMTP server to send through
$mail->SMTPAuth = true; // Enable SMTP authentication
$mail->Username = 'emailappsmtp.2b64ab45'; // SMTP username
$mail->Password = 'suhpL0W8nCVr'; // SMTP password
$mail->SMTPSecure = 'TLS'; // Enable TLS encryption
$mail->Port = 587;
Here is the form code:
<main class="postcontent col-lg-8">
<div class="form-widget">
<div class="form-result"></div>
<form class="mb-0" id="template-contactform" name="template-contactform" action="<?=$relative?>include/contact-form-test.php" method="post">
<div class="form-process">
<div class="css3-spinner">
<div class="css3-spinner-scaler"></div>
</div>
</div>
<div class="row">
<div class="col-md-4 form-group">
<label for="template-contactform-name">Name <small>*</small></label>
<input type="text" id="template-contactform-name" name="template-contactform-name" value="" class="form-control required" required="true">
</div>
<div class="col-md-4 form-group">
<label for="template-contactform-email">Email <small>*</small></label>
<input type="email" id="template-contactform-email" name="template-contactform-email" value="" class="required email form-control" required="true">
</div>
<div class="col-md-4 form-group">
<label for="template-contactform-phone">Phone</label>
<input type="text" id="template-contactform-phone" name="template-contactform-phone" value="" class="form-control">
</div>
<div class="w-100"></div>
<div class="col-12 form-group">
<label for="template-contactform-message">Message</label>
<textarea class="required form-control" id="template-contactform-message" name="template-contactform-message" rows="6" cols="30"></textarea>
</div>
<div class="col-12 form-group d-none">
<input type="text" id="template-contactform-botcheck" name="template-contactform-botcheck" value="" class="form-control">
</div>
<!-- hCAPTCHA token container -->
<div class="h-captcha" data-sitekey="a421f472-0fd9-493e-bc83-1c78eda98141"></div>
<div class="col-12 form-group">
<button class="button button-3d m-0" type="submit" id="template-contactform-contact" name="template-contactform-contact" value="contact">Let's Talk</button>
</div>
</div>
<input type="hidden" name="prefix" value="template-contactform-">
</form>
</div>
</main>