/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php function encode_mailto($mail, $label, $subject = "", $body = "") { $new_mail = "<a href=\"mailto:"; foreach ($chars as $val) { } $new_mail .= ($subject != "" && $body != "") ? "?subject=".$subject."&body=".$body : ""; $new_mail .= "\">".$label."</a>"; return $new_mail; } ?>