Contemporary websites frequently employ PHP in their server side progress. The language was intended for web and integrates faultlessly with HTML. PHP provides assorted set of facial appearance to understand almost any programming concept. The ability to send email from directly within PHP script opens many doors for website functionality. While this technique is often used to send text-only emails, it is also possible to send email formatted with HTML. The features obtainable with HTML make it possible to put in images into PHP mail.

• Unlock PHP document. Since programming languages are every text based, you use every text editor, including Windows Notepad.

• Start PHP code with "<?php".

• Create variable meaning that include body of email will throw using PHP. Write variable name, followed by content. For example, "$email='Dear John, Thanks for your response. Here's the follow up email with more details.'; ". Continue to write the email within this variable declaration.

• Utilize HTML tag to arrangement email if desire to create HTML email. To take in image in email, HTML tag "<img>". Insert proper syntax for this image reference and use an image previously uploaded to web server. For example, "<img src='http://website/picture.jpg' />". This will insert an image into the email from a file location on the web.

• Create PHP "mail()" declaration to total email algorithm. Type "mail()" and then email address of beneficiary. Type comma followed by subject line for email. Type one more comma and then variable statement for email, "$email" if you chose that variable name. "mail()" statement with closing parenthesis and semicolon.

• End PHP code with "?>". An HTML email has now been collected for release, containing an inserted image.