[ create a new paste ] login | about

Link: http://codepad.org/q2H70Nvv    [ raw code | fork ]

PHP, pasted on Jun 27:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php
	//Mandatory Attributes
	$to = "joe@steinbring.net";
	$subject = "The subject of the email";
	$body = "The body of the email";
	//Optional Attribute
	$headers = "From: jsteinbring@starkmedia.com\r\n";
	$headers .= "Content-Type: text/plain; charset=utf-8\r\n";
	$headers .= "Cc: jsteinbring@starkmedia.com";

	//Send the email
	//The last two parameters are optional
	//The mail function returns a boolean (success/failure)
	$success = mail($to, $subject, $body, $headers, '-fjoe@starkmedia.com');
?>


Create a new paste based on this one


Comments: