Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #27987

    Hello,

    I use a pluggin to send emails

    to include my logo.

    I have to put values ​​as %content% or % date%

    only values ​​does not work in the contact page

    how can I add the values ​​in kontactformular

    What is the file to edit to add my values ​​in kontactformular please

    Sincerely,

    #136063

    How to include my code %content% in contact.php please

    the value must be included in the message at the beginning or the end

    #136064

    Hi,

    Please contact the author plugin for that. We are not familiar with the plugin.

    Regards,

    Ismael

    #136065

    Hi,

    Thank you for your reply.

    Everything works fine for mailings emails registration or lost password

    The problem occurs when I use the generator form related theme.

    the author of the plugin can not do anything because the problem related to the internal contact form theme

    Thanks

    #136067

    Hi Ismael,

    Thank you for your reply.

    The generator contact form uses wp_mail ?

    Otherwise you would have a solution to automatically include code HTML in a message sent to the user?

    The aim being to introduce images and styles in the email sent

    Thank you ^^

    #136068

    Hey,

    I’m not sure if this is what you need but you can edit framework > php > class-form-generator.php:

    //autoresponder?
    if($usermail && !empty($this->form_params['autoresponder']))
    {
    $header = 'MIME-Version: 1.0' . "rn";
    $header .= 'Content-type: text/html; charset=utf-8' . "rn";

    $message = nl2br($this->form_params['autoresponder'])."<br/><br/><br/><strong>".__('Your Message:','avia_framework')." </strong><br/><br/>".$message;
    $message = apply_filters("avf_form_autorespondermessage", $message);

    $from = apply_filters("avf_form_autoresponder_from", $from, $new_post, $this->form_params);

    if($use_wpmail)
    {
    $header .= 'From:' . get_bloginfo('name') .' <'. urldecode( $this->form_params['autoresponder_email']) . "> rn";
    wp_mail($from, $this->form_params['autoresponder_subject'], $message, $header);
    }
    else
    {
    $header .= 'From:'. urldecode( $this->form_params['autoresponder_email']) . " rn";
    mail($from, $this->form_params['autoresponder_subject'], $message, $header);
    }
    }
    unset($_POST);
    return true;
    //return wp_mail( $to, $subject, $message , $header);

    }

    Let’s wait for the other support team member to respond. They can shed more light about this.

    Regards,

    Ismael

    #136069

    Hey,

    Thank you for the answer, I do not really understand the code, (But it does not change anything in my email)

    If I could put an html code in autoresponder :

    example:

    Code:
    <body style=”margin: 0px; background-color: #F4F3F4; font-family: Helvetica, Arial, sans-serif; font-size:12px;” text=”#444444″ bgcolor=”#F4F3F4″ link=”#21759B” alink=”#21759B” vlink=”#21759B” marginheight=”0″ topmargin=”0″ marginwidth=”0″ leftmargin=”0″>
    <table width=”100%” border=”0″ cellspacing=”0″ cellpadding=”0″ bgcolor=”#F4F3F4″>
    <tbody>
    <tr>
    <td style=”padding: 15px;”>

    <table width=”651″ cellspacing=”0″ cellpadding=”0″ align=”center” bgcolor=”#ffffff”>
    <tbody>
    <tr>
    <td width=”649″ align=”left”>
    <div style=”border: solid 1px #d9d9d9;”>
    <table id=”header” style=”line-height: 1.6; font-size: 12px; font-family: Helvetica, Arial, sans-serif; border: solid 1px #FFFFFF; color: #444;” width=”96%” border=”0″ cellspacing=”0″ cellpadding=”0″ bgcolor=”#ffffff”>
    <tbody>
    <tr>
    <td style=”color: #ffffff;” colspan=”2″ valign=”bottom” height=”30″>.</td>
    </tr>
    <tr>
    <td style=”line-height: 32px; padding-left: 30px;” valign=”baseline”>logo-mini</td>
    <td align=”right” valign=”baseline” class=”Style1″ style=”padding-right: 30px;”>My description </td>
    </tr>
    </tbody>
    </table>
    <table id=”content” style=”margin-top: 15px; margin-right: 30px; margin-left: 30px; color: #444; line-height: 1.6; font-size: 12px; font-family: Arial, sans-serif;” width=”587″ border=”0″ cellspacing=”0″ cellpadding=”0″ bgcolor=”#ffffff”>
    <tbody>
    <tr>
    <td style=”border-top: solid 1px #d9d9d9;” colspan=”2″>
    <div style=”padding: 15px 0;”>
    <div align=”center”>!!! message autoresponder here!!!</div>
    </div>
    </td>
    </tr>
    </tbody>
    </table>
    <table id=”footer” style=”line-height: 1.5; font-size: 12px; font-family: Arial, sans-serif; margin-right: 30px; margin-left: 30px;” width=”587″ border=”0″ cellspacing=”0″ cellpadding=”0″ bgcolor=”#ffffff”>
    <tbody>
    <tr style=”font-size: 11px; color: #999999;”>
    <td width=”587″ colspan=”2″ style=”border-top: solid 1px #d9d9d9;”>textedemo
    <div style=”padding-top: 15px; padding-bottom: 1px;”>Date demo demo demo demo demo </div>
    <div>Contact Contact: (Email address hidden if logged out) “> (Email address hidden if logged out) </div>
    </td>
    </tr>
    <tr>
    <td style=”color: #ffffff;” colspan=”2″ height=”15″>.</td>
    </tr>
    </tbody>
    </table>
    </div>
    </td>
    </tr>
    </tbody>
    </table>
    </td>
    </tr>
    </tbody>
    </table>
    </body>

    so that the user receives the email can see images instead of plain text.

    Thank you for your response and your patience :)

    #136070

    sorry for my example code not beautiful

    Is it possible to insert the next part in your piece of code to understand please.

    I want the autoresponder messages will appear here: !!! message autoresponder here!!!

    Code:

    <table border=”2″ cellpadding=”5″ cellspacing=”10″ bgcolor=”#FFFFD2″ bordercolor=”red” width=”200″ height=”50″ align=”center”>
    <tr>
    <td>Une seule cellule ;-)</td>
    </tr>
    </table>

    Logo de SoftAstuces

    <div align=”center”>[i]!!!! message autoresponder here!!!![/i]</div>

    Thanks

    #136071

    Hi deamon54,

    No, it doesn’t have that kind of capability. You can filter the content of the auto responder but it doesn’t support a fully html email so you would need to customize the entire function.

    Regards,

    Devin

    #136072

    Hi Devin,

    Indeed, the answering machine picks up the HTML code but only a part ..

    it’s sad not to be able to send messages in HTML in the form included in the theme.

    Thank you for your answers

    #136073

    Glad we could help clear it up even if it wasn’t quite the answer you were looking for.

    Let us know if you do have any other questions or issues.

    Regards,

    Devin

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Edit the contact form’ is closed to new replies.