php html email

When using your own webpage, it could be good to use a contact form, by whitch visitors can contact you.

It´s very easy to do and use

< ? php $txt = "First line of text\nSecond line of text"; // Use wordwrap() if lines are longer than 70 characters $txt = wordwrap($txt,70); // Send email mail("","My subject",$txt); ?>

This is the basic of the php html email code, you could of course change it after your like and needs.

Be Sociable, Share!