custom email not send

Home Forums Quform WordPress custom email not send

This topic is: not resolved
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #9476
    digital@infel.ch
    Participant

    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,
    Phil

    #9488
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy