Enter your Sign-on user name and password.

Forgot password?
  • Follow us on:
Loading video...

Start Learning Now

Our free lessons will get you started (Flash® 10 required).
Get immediate access to our entire library.

Sign up for Educator.com

Features Overview

  • Get on-demand access to our complete library
  • Search and jump to exactly what you need to learn
  • Track your progress
  • Download practice and lesson files
  • *Ask questions and get answers from our community & instructors

Sending Email Using PHP

  • PHP provides the built-in mail() function to send email messages from scripts.
  • The Simple Mail Transfer Protocol, or SMTP , is the protocol used to send and receive email messages on the Internet. It is implemented by mail servers .
  • php.ini can be configured so that mail() will work in either a Windows or Linux/UNIX environment.
  • When in a Windows environment, the configuration directive SMTP is typically set. When in a Linux/UNIX environment, the configuration directive sendmail_path is typically set.
  • Mail servers typically require an email client to authenticate themselves before they will relay their email message to the recipient.
  • fake sendmail for Windows is an application included with XAMPP that allows the sending of emails using mail() with mail servers requiring authentication.
  • sendmail.ini is the fake sendmail configuration file used to specify a username and password to use for authentication.
  • The additional_headers argument of mail() is used to specify who an email is from by specifying a ‘From’ header that takes on the form: 'From: email@domain.com' .
  • Additional Resources:

Sending Email Using PHP

Lecture Slides are screen-captured images of important points in the lecture. Students can download and print out these lecture slide images to do practice problems as well as take notes while watching the lecture.

Computer Science: Introduction to PHP