AdvancedExampleHerewewillshowthefullcapabilitiesofthePHPmailfunction. PHPCode: Wesendanemailtotwopeoplethistime, byputtingtwoemailaddressesintherecipientfieldandse
Advanced Example Here we will show the full capabilities of the PHP mail function. PHP Code: "; $ Recipient =" Kris Arndt Npl@nucleus.com "; $ subject =" Testing the mail function "; $ message =" Hello! This is the body of the message. "; $ extra =" From: kris@phpworld.comReply-To: karn@nucleus.com "; mail ($ recipient, $ subject, $ message, $ extra); echo" Sending mail... "; echo" ";?> 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 shocould reply. when entering multiple headers, separate them with the line feed and new line combination ().