Advanced Example Here we will show the full capabilities of the PHP mail function. PHP Code:
"; $recipient = "Kris Arndt"; ?> We send an email to two people this time, by putting two email addresses in the recipient field and separating them with commas. The fourth parameter holds extra headers for the email. We specify who the email was from and who the recipient should reply to. When entering multiple headers, separate them with the line feed and new line combination ( ).