Forum
Email not sending using 'Send response via email'
Testing email from the backend is working fine. I just can't get the forms to send using 'Send response via email'.
Diagnostic
Perch Runway: 2.8.31, PHP: 5.6.24, MySQL: mysqlnd 5.0.11-dev - 20120503 - $Id: 76b08b24596e12d4553bd41fc93cccd5bac2fe7a $, with PDO
Server OS: Linux, cgi-fcgi
Installed apps: content (2.8.31), assets (2.8.31), categories (2.8.31), perch_forms (1.8.3)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_forms' );
PERCH_LOGINPATH: /logocms
PERCH_PATH: /var/www/vhosts/mypath/subdomains/mypath/logocms
PERCH_CORE: /var/www/vhosts/mypath/subdomains/mypath/logocms/core
PERCH_RESFILEPATH: /var/www/vhosts/mypath/subdomains/mypath/logocms/resources
Image manipulation: GD Imagick
PHP limits: Max upload 2000M, Max POST 2000M, Memory: 128M, Total max file upload: 128M
F1: 2edba60ed1f613d6dd804feb202456a2
Resource folder writeable: Yes
SCRIPT_NAME: /logocms/core/settings/diagnostics/index.php
REQUEST_URI: /logocms/core/settings/diagnostics/
DOCUMENT_ROOT: /var/www/vhosts/mypath/subdomains/mypath
HTTP_HOST: mydomain.com
Email template
<html>
<head>
<title><perch:email id="email_subject" /></title>
</head>
<body>
<h1>A message from your website</h1>
<p><perch:email id="email_message" encode="false" /></p>
<table>
<tr>
<th>Name</th>
<td><perch:email id="name" /></td>
</tr>
<tr>
<th>Email</th>
<td><perch:email id="email" /></td>
</tr>
<tr>
<th>Message</th>
<td><perch:email id="message" encode="false" /></td>
</tr>
</table>
</body>
</html>
Content html
<div class="row">
<div class="col-lg-7">
<perch:form id="contact" method="post" app="perch_forms">
<div class="col-lg-12">
<perch:content id="intro" type="textarea" label="Intro" textile="true" editor="markitup" size="m" />
</div>
<!-- firstname -->
<div class="col-lg-12">
<perch:label for="name">Name</perch:label>
<perch:input type="text" id="name" required="true" label="Name" />
<perch:error for="name" type="required">Please add your name</perch:error>
</div>
<!-- surename -->
<div class="col-lg-12">
<perch:label for="surname">Surname</perch:label>
<perch:input type="text" id="surname" required="true" label="Surname" />
<perch:error for="surname" type="required">Please add your Surname</perch:error>
</div>
<!-- Telephone -->
<div class="col-lg-12">
<perch:label for="telephone">Telephone number</perch:label>
<perch:input type="text" id="telephone" required="false" label="Telephone" />
</div>
<!-- email -->
<div class="col-lg-12">
<perch:label for="email">Email</perch:label>
<perch:input type="email" id="email" required="true" label="Email" placeholder="you@company.com" />
<perch:error for="email" type="required">Please add your email address</perch:error>
<perch:error for="email" type="format">Please check your email address</perch:error>
</div>
<div class="col-lg-12">
<perch:label for="message">Message</perch:label>
<perch:input type="textarea" id="message" required="true" label="Message" />
<perch:error for="message" type="required">Please add a message</perch:error>
</div>
<div class="col-lg-12">
<perch:input type="submit" id="submit" value="Send" class="btn btn-success"/>
</div>
<perch:success>
<perch:content id="success" type="textarea" label="Thank you message" textile="true" editor="markitup" />
</perch:success>
</perch:form>
</div>
<div class="col-lg-4">
Right content here
</div>
</div>
What leads you to believe it's not being sent, rather than not being received?
If you turn on debug, do you see it being sent?
Debug
Setting name as Edward Setting surname as Verzosa Setting telephone as 0123456 Setting email as edward@mydomain.com Setting message as swerwe Building message with Perch template [1] Using template: /templates/forms/emails/contact.html
Invalid address: Edward <- error in red text
So it looks like you've got the wrong field selected as the email address field.