I have set up a simple contact form on a new installation of Expression Engine 5.2. Email module is installed. This submits ok on localhost but on the server I am getting hit with the titular error.
My code:
{exp:email:contact_form [email protected]" charset="utf-8" form_class="iwd-standard-form"}
<fieldset class="iwd-fieldset-contained">
<legend>Your contact details</legend>
<div class="iwd-form-row">
<div class="iwd-form-labels">
<label for="name">*Name:</label>
</div>
<div class="iwd-form-controls">
<input name="name" placeholder="Your name" type="text">
</div>
</div>
<div class="iwd-form-row">
<div class="iwd-form-labels">
<label for="from">*Email:</label>
</div>
<div class="iwd-form-controls">
<input name="from" placeholder="Your email" type="text" value="" />
</div>
</div>
</fieldset>
<fieldset class="iwd-fieldset-contained">
<legend>Leave us a message</legend>
<div class="iwd-form-row">
<div class="iwd-form-labels">
<label for="message">Message:</label>
</div>
<div class="iwd-form-controls">
<textarea name="message" placeholder="Enter message" style="height:200px"></textarea>
</div>
</div>
</fieldset>
<fieldset class="iwd-fieldset-uncontained">
<div class="iwd-form-row center">
<input type="hidden" name="csrf_token" value="{csrf_token}">
<button id="form-submit" type="submit" class="iwd-button submit-form">Submit</button>
</div>
</fieldset>
{/exp:email:contact_form}