• Hey guys,

    So I’m attempting to set up a mailto output by calling the author’s email address from the user profile.

    Currently I am able to call the email address but I can’t seem to be able to add it to the end of the mailto command.

    Below I have attached the code that I currently have, which has had the image source ($src) censored.

    <?php
    $email = (the_author_meta( "email" ));
    $src = censored; // image url
    
    echo '<a href=mailto:'. $email .'><img style="border:none;" src="'. $src .'" /></a>';
    ?>
  • The topic ‘Mailto from php call’ is closed to new replies.