Ad block is installed and active. Please support us by disabling it.
HomeWednesday, April 25, 2018, 08:54:09
2

PHP Mail

Tuesday, February 10, 15, 09:12:06, 3 Yaers Ago Via wain, Hits: 5991
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

How to check checkbox checked

Checking if checkbox is checked with jQuery

MySQL – Select from two tables

Select data from two tables, PHP MySQL

Process Form Data with Jquery

jQuery, Process form data

Syntax highlighting in Smarty

Syntax highlighting for Smarty - Google Code Prettify

Smarty Paginate Example - Smarty Pagination with PHP

Smarty Paginate Example, Smarty Pagination with PHP. SmartyPaginate: a class/plugin for data set pagination within the Smarty template environment

Math Captcha V6

PHP Math Captcha Image Version 6

Link Base L.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.

Bookmark Script

Allow your users to easily bookmark your site, by clicking on a link on the page.

Timed Redirect JavaScript

Timed redirect javaScript/PHP example

PHP Forms

FREE PHP forms
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.