Code Script .co.uk

Home | Scripts | Tutorials | Disclaimer | Sitemap | Contact

   Send Email
 

Reference / Php / Send Email

 Send an email in PHP specifying to and from email addresses, subject and content.


$to_email = "sendto@here.com";
$from_email = "
from@here.com";

$email_subject = "Message from $from_site";
$email_headers = "From: $from_email ";

mail($to_email, $email_subject, $email_content, $email_headers);





Please note that a disclaimer applies to any code on this page.
 
   Actions
  Go Back
  Bookmark
  Print Page


   Menu
 
- Links
- Reference
     - Javascript
     - Mysql
     - Php
          - Calculate Date Yesterday
          - Database Backup
          - Ftp Upload
          - Gzip File
          - List Files In Directory
          - Previous Sql Insert Id
          - Send Email
          - Server Visitor Properties
          - Set Global Get And Post Variables
          - Sql Query Results
     - Standards
     - Windows Os
- Script Editors
- Tutorials
- Vbscript