Mail.php code
/ *
Mailx Managing System 0.8 Beta
* /
Header ("Content-Type: Image / PNG");
$ MailDress = $ _ get ['MailName'];
$ Maildresslen = Strlen ($ MAILADDRESS);
$ MaildressImages = ImageCreate ($ MaildResslen * 10, 25);
$ lenadd = $ mailaddresslen;
$ FONTSIZE = "4";
$ center = (iMagesX ($ MaildRessImages) -8.3 * Strlen ($ Mailaddress)) / 2;
$ MailimagesBackground = ImageColoralLocate ($ MaildressImages, 255, 255, 255);
$ MailImagesFaceColor = ImageColoralLocate ($ MailDressImages, 0,0,0);
Imagestring ($ MAILADDRESSIMAGES, $ FONTSIZE, $ CENTER, 5, $ MAILADDRESS, $ MailImageSfaceColor;
ImagePNG ($ MaildRessImages);
ImageDestroy ($ MaildRessImages);
?>
255, 255, 255 Generate the background color (RGB oh)
$ FONTSIZE = "4"; font size
($ MAILADDRESSLEN * 10, 25); $ MAILADDRESSLEN * 10 Representation: Generate Picture Wide: Email Address Characters * 10, 25 Expression High
The above code is saved as mail.php and accesses mail.php?mailname =you@domain.com, you can output mail addresses behind MailName =.
Of course, if you are troublesome, you can replace it with a form. As follows:
INDEX.HTML code is as follows:
http://www.w3c.org/TR/1999/rec-html401-19991224/loose.dtd ">
hEAD>