Ad block is installed and active. Please support us by disabling it.
HomeSaturday, January 20, 2018, 16:56:33
2

PHP Mail

Tuesday, February 10, 15, 09:12:06, 3 Yaers Ago Via wain, Hits: 3281
Sends an email.
Basic

Code:
<?php
$email="example@example.com";
$subject="My Subject";
$body="My Body";
$from="info@example.com";
mail($email, $subject, $body, "FROM: $from");
?>


HTML Output

Code:
<?php
$email="example@example.com";
$subject="My Subject";
$body ='
<HTML>
<head>
<style>
body
{
background-color: #0000CC;
margin-left: 10em;
margin-top: 1em;
font-family: "Trebuchet MS";
font-size: 24px;
color: "#FFFFFF";
}
</style>
</head>
<body>
My HTML Mail
</body> ';
$headers='MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=utf8' . "\r\n";
$headers .= 'From: System <noreply@example.com>' . "\r\n";
mail($email, $subject, $body, $headers);
?>

Sign In

Sponsor

Related

Contact Us Form With Captcha

A contact us form with email and form field validation. It allows your visitors to send you an email directly from your website. Features: Captcha Image, HTML output.

Creating a basic bad word filter in PHP

This tutorial will show you how to create a basic bad word filter in PHP

Stack Overflow Clone Script - Ja2BU

Open source question and answer script written in PHP, MySQL and jQuery. Main features are: SEO friendly url's, private message system, rating system, comments system.

Site Recommendation

This script will allow your visitors to recommend your site to their friends.

Addslashes - Stripslashes

addslashes — quote string with slashes, stripslashes — un-quotes a quoted string

Link Base 2.0.

Manage your links using a MySQL database. It features easy install, user submission, and an admin panel to add, edit and remove categories and links.

PHP form with file upload

Advanced Contact Form with email and form field validation. It allows your visitors to send you an email directly from your website.

Bookmark Current Page - PHP Tutorial

Bookmark current page with PHP example.

Tell A Friend with Captcha

This form allows your visitors to suggest your site to a friend. It features an HTML email format and an admin notification email.

Meta Tags Generator 1.1. PHP Script

This script will allow your visitors to create meta tags online.
About Author

wain

Date Registered: Sun, Feb 8, 15
Last Time Online: Thu, Jun 15, 17
So far has created 115 entries.
wain
This author has not yet filled in any details.