Home › Forums › Quform WordPress › custom email not send
- This topic has 1 reply, 2 voices, and was last updated 10 years, 1 month ago by Ally.
- AuthorPosts
- April 7, 2014 at 4:18 pm #9476digital@infel.chParticipant
I used the guide to implement custom emails for my forms. Somehow the emails are not send and I don’t receive any error in my error.log.
function.php
function infel_customize_email($mailer, $form, $attachments)
{
// Get the new email content from the file
ob_start();
include dirname(__FILE__) . '/emails/UmzugsmeldungStrom.php';
$content = ob_get_clean();// Set the email content
$mailer->MsgHTML($content);// You must return the $mailer object
return $mailer;
}
add_action('iphorm_pre_send_notification_email_25', 'infel_customize_email', 10, 3);/emails/UmzugsmeldungStrom.php (in template folder)
<h2>Umzugsmeldung Strom</h2>
<table>
<tr>
<th colspan="2">1. Kontaktdaten</th>
</tr>
<tr>
<td>Anrede:</td>
<td><?php echo $form->getValueHtml('iphorm_25_1'); ?></td>
</tr>
<tr>
<td>Name:</td>
<td><?php echo $form->getValueHtml('iphorm_25_2'); ?></td>
</tr>
<tr>
<td>Vorname:</td>
<td><?php echo $form->getValueHtml('iphorm_25_3'); ?></td>
</tr>
<tr>
<td>Firma:</td>
<td><?php echo $form->getValueHtml('iphorm_25_4'); ?></td>
</tr>
</table>Any ideas why it doesn’t get sent?
The AutoReply works well and as soon as I remove the add_action in functions.php it sends default email without any problem.Thanks for your help.
Best regards,
PhilApril 8, 2014 at 9:05 am #9488AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
- AuthorPosts
- You must be logged in to reply to this topic.