QAds
Apple iPod shuffle 4 GB Mavi
$49.13
Apple iPod shuffle 1 GB Mavi
$35.00
Sony Ericsson T715 Slider 3G Phone in Rouge Pink
$149.96
Apple iPad 32gb Wi-Fi
$548.97
::
HOME
»
PHP
» How can I send email with PHP?
HOME
WEB
HTML
CSS
JavaScript
PHP
Image Resizing & Uploading
Database with PHP Class
How To Hide Image Source
Export Excel
How To Read Excel File
Creating Folder With FTP
Human Check - Security Code
Using Multi Select
OOP Object Oriented Programming
How to Read XML file
MySQL
APACHE
Stored Procedures
AJAX
Most Popular Articles
» Full Text Search
» Basic AJAX
» How to Read XML file
» HTAccess Configuration
» Stored Procedure
» CHMod Permision
» Cron Jobs
» Object Oriented Programming
» How To Read Excel File
» Human Check Security Code
» Image Resizing & Uploading
» Validating Form Data
Popular Search Text
» db class mysql php
» php excel file
» object oriented php
» stored procedure export excel
» htaccess no input file specified
» countdown ajax mysql
» css div position
» cron jobs
» excel to mysql
» hide image path
How can I send email with PHP?
How can I send email with
PHP
?
You can use below format to send email.
Code
$to = $email; // email you want to send email to
$subject = "Subject Here";
$headers = "MIME-Version: 1.0" . "\n";
$headers .= "Content-type: text/
HTML
; charset=iso-8559-1";
$headers .= "To: ".$receivername." <".$to.">" . "\n"; // Put receiver name and email
$headers .= "From: ".$fromname." <".$fromemail.">\n"."Reply-To: ".$replyemail."\n"; // Put who sends this email and also email address to reply
$content = "E-Mail content here";
if(@mail($to, $subject, $content, $headers )) { ... } // if email has been sent successfully
else { ... } // if Failed