HomeSunday, June 24, 2018, 01:40:09
2

PHP Mail

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

Code:
<?php
$email="[email protected]";
$subject="My Subject";
$body="My Body";
$from="[email protected]";
mail($email, $subject, $body, "FROM: $from");
?>


HTML Output

Code:
<?php
$email="[email protected]";
$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 <[email protected]>' . "\r\n";
mail($email, $subject, $body, $headers);
?>

Sign In

Sponsor
Related

Process Form Data with Jquery

jQuery, Process form data

Addslashes - Stripslashes

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

PHP Jquery Form

PHP Jquery Form allow your visitors to contact you directly from your website.

Creating a basic bad word filter in PHP

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

PHP Links Script 1.1.

This script allows you to 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. The script is easy to customize to suit your needs.

Preg_Match - PHP Form Validation

PHP form validation with preg_match

Jquery PHP Contact Form

This script allows your visitors to send you an email directly from your website.

Random MySQL Query

Random MySQL query, requirement(s): PHP Server, MySQL

PHP getdate

Returns an associative array containing the date information of the timestamp, or the current local time if no timestamp is given.

PHP $_GET Function

Get function in PHP
About Author

wain

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