Ad block is installed and active. Please support us by disabling it.
HomeSunday, November 19, 2017, 14:10:51
2

PHP Mail

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

Timed Redirect JavaScript

Timed redirect javaScript/PHP example

RSS, MySQL & Smarty

Smarty > Publishing MySQL Data in RSS 2.0

PHP Trim

trim() Strip whitespace (or other characters) from the beginning and end of a string.

Advanced Contact Form - PHP Script

Advanced Contact Form with email and form field validation. Features: HTML Output(Response), Captcha Image.

MySQL Inner Join

MySQL Inner Join - Creating Dynamic Webpages Using PHP and MySQL, Requirement(s): PHP Server, MySQL

Inserting form data in MySql table

Inserting form data in MySql table with PHP

Link Base 1.1. - Free PHP Link Index Script

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

Upload Attachment - PHP Tutorial

Upload attachment with PHP example, Requirement(s): PHP server

Email to Friend - PHP Script

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

Smarty - Create dynamic Web Pages with PHP & MySQL

Creating Dynamic Web Pages Using Smarty and MySQL - Requirement(s): PHP Server, MySQL
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.