The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Mailto from php call (1 post)

  1. JBlack11
    Posted 3 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