Hello, i switched to your plugin recently also because I’ve think this thread would definitively fix my problem but I did not get it working in a specific case, i haver the following code in my template and would like to encode the email address, i can get it working when i call the encoding in plain text
Send a email to <strong><?php $emailforrequest = get_post_meta($post->ID, 'emailforrequest', TRUE);
echo eeb_email($emailforrequest, 'the support team'); ?></strong> to get help.
this is ok ! But if i try to insert it in my “mailto” template as the following example it does not works.
<a title=click here to open the email" href="mailto:<?php the_field('emailforrequest'); ?>?subject=the subject line&Body=my body content that may call other php function such as <?php the_title(); ?>"><img class="imgclass" title="imgtitle" alt="imgalt" src="imgsource.png" width="240" height="24" /></a>
at this point i replaced
<?php the_field('emailforrequest'); ?>
with
<?php $emailforrequest = get_post_meta($post->ID, 'emailforrequest', TRUE);
echo eeb_email($emailforrequest, 'Mail Me'); ?>
but it does not works at all.
I’ve followed your FAQ and tips but cannot get it working, also i did not found the way to generate a mailto template to with PHP, it may works better as i could call each element (email, subject and body) with single PHP string and avoid to broke the encoding function.
Many thanks for your help