Email Script Using PHPMail Function

User avatar
admin
Site Admin
Posts: 35
Joined: Sun Jul 03, 2016 2:17 pm
Location: India
Contact:

Email Script Using PHPMail Function

Postby admin » Sun Jul 03, 2016 5:06 pm

Email Script Using PHPMail Function

Code: Select all

<?php
$to = 'Recipient Email Address';
$from = 'Sender’s email address';
$subject = 'Subject Line of the Message';

$headers = 'From: Sender’’s email address'. "\r\n".
'Reply-To: Reply to email address'. "\r\n".
'Return-Path: Email return path'. "\r\n".
'X-Mailer: PHP/' . phpversion();
$message = "Message – Body of the message";

mail($to, $subject, $message, $headers, "-f $from");

?>
Finest web hosting solution at the most affordable rates
Cheap Website Hosting
cheap VPS hosting india

Return to “Scripts / Code Snippets”

Who is online

Users browsing this forum: No registered users and 0 guests