I am trying to have a form, one of two on the page, to autoreply a thank you email to the users that also has a file attached. Now it will not send an email to the admin or the user. The form information is saved in formit though. It’s mostly a cut and paste from other forms without autoreply emails, so I am confused as to why it is not working. Does anyone have an idea what I got wrong? I have checked my spam inboxes.
[[!FormIt?
&hooks=`spam,FormItSaveForm,email,FormItAutoResponder,redirect`
&validate=`nospam:blank,email:email:required`
&formFields=`email`
&formEncrypt=`1`
&emailTpl=`ModalEmailTpl`
&emailSubject=`eBook Contact`
&emailToName=`Company Name`
&emailFromName=`Company Website`
&emailFrom=`[email protected]`
&emailTo=`[email protected]`
&redirectTo=`38`
&formName=`Modal Form`
&submitVar=`modalsubmit`
&fiarTpl=`ModalForwardTpl`
&fiarSubject=`Your Activate Body eBook`
&fiarFromName=`The Team`
&fiarReplyTo=`[email protected]`
&fiarReplyToName=`The Team`
&fiarToField=`email`
&fiarFiles=`documents/ebook.pdf`
]]
<form id="modalform" method="post" action="[[~[[*id]]]]" name="modal-form">
<input type="hidde n" name="nospam" value="">
<div class="form-group">
<div class="input-group mb-2">
<div class="input-group-prepend">
<div class="input-group-text"><i class="fa fa-envelope text-info"></i></div>
</div>
<label for="email" class="sr-only">Email address</label>
<input type="email" class="form-control" id="email" name="email" placeholder="Email" value="[[!+fi.Email]]" required >
</div>
</div>
<input type="submit" value="Get Your Copy!" class="btn btn-success btn-md text-center modal-btn" name="modalsubmit">
</form>
UPDATE: Now it seems no emails are coming from the site, despite having been working prior. I commented out this form and my primary contact form is still not sending email ether.