Category Archives: mail

Sending a plain text e-mail

Sending a plain-text e-mail through PHP is a simple process PLAIN TEXT PHP: mail ($to, $subject, $message, $headers); The $to parameter can look like: example@mysite.com example@mysite.com, user@mysite.com Example Sr <example@mysite.com>, Example Jr <user@mysite.com> Common headers to use in your messages: PLAIN TEXT PHP: $headers =  "From: yourname@yoursite.com\r\n              Reply-To: replyhere@yoursite.com\r\n [...]