Mailto from php call (1 post)

  1. JBlack11
    Posted 2 years ago #

    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.

    $email = (the_author_meta( "email" ));
    $src = censored; // image url
    echo '<a href=mailto:'. $email .'><img style="border:none;" src="'. $src .'" /></a>';

Topic Closed

This topic has been closed to new replies.

About this Topic