Ad block is installed and active. Please support us by disabling it.
HomeThursday, September 21, 2017, 03:16:18
2

PHP Mail

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

Captcha V1 - Free PHP Script

An anti-spam form protection image written in PHP, Version: 1.1.

PHP Fwrite : fwrite

php write to file - how to write data to a file using the php frwite function

Show / Hide Div with CSS

CSS Display and Visibility:The visibility property specifies whether or not an element is visible.

Sending HTML Email With Images - PHP Tutorial

Sending HTML Email With Images - Upload Image with PHP - Creating Dynamic Webpages Using PHP and MySQL - Select, Delete, Update..

Upload Image With PHP

[Example3] Tutorial - How to upload image in php.

Sitemap

phpForm.net Website Sitemap

ShoutBox 1.1. PHP Script

ShoutBox allows your users to post short messages on your site. The script is lightweight and very easy to install and use.

Block Visitors From Specific IP Address

Learn How To Restrict Users From Different IP Addresses.

PHPBB3 Shoutbox

Vesion: 1.1. Released: 08/08/10, Licence GNU, Price: Free

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.
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.