-
AuthorPosts
-
August 18, 2013 at 8:32 am #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,
August 18, 2013 at 8:55 am #136063How to include my code %content% in contact.php please
the value must be included in the message at the beginning or the end
August 19, 2013 at 12:36 am #136064Hi,
Please contact the author plugin for that. We are not familiar with the plugin.
Regards,
Ismael
August 19, 2013 at 4:12 pm #136065Hi,
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
August 22, 2013 at 7:05 am #136067Hi 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 ^^
August 23, 2013 at 3:31 am #136068Hey,
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
August 23, 2013 at 9:57 pm #136069Hey,
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;”> </td>
<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”></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;”>
<div style=”padding-top: 15px; padding-bottom: 1px;”> demo demo demo demo demo </div>
<div> 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>
</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 :)
August 23, 2013 at 11:33 pm #136070sorry 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><div align=”center”>[i]!!!! message autoresponder here!!!![/i]</div>
Thanks
August 24, 2013 at 4:15 pm #136071Hi 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
August 25, 2013 at 6:09 pm #136072Hi 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
August 25, 2013 at 8:52 pm #136073Glad 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
-
AuthorPosts
- The topic ‘Edit the contact form’ is closed to new replies.