| Course Others | You are Offering Professional Course | Locality Gandhimanagar |
What is PHP?
PHP started off being a small open source project that developed as more developers realized how powerful it was. RasmusLerdorf revealed the 1st version of PHP back in 1994.
Sending plain text email
PHP makes use of mail() function to send an email. This function requires three mandatory arguments that specify the recipient's email address, the subject of the the message and the actual message additionally there are other two optional parameters.
mail( to, subject, message, headers, parameters );
Here is the description for each parameters.
Sr.No Parameter & Description
1 to
Required. Specifies the receiver / receivers of the email
2 subject
Required. Specifies the subject of the email. This parameter cannot contain any newline characters
3 message
Required. Defines the message to be sent. Each line should be separated with a LF (\n). Lines should not exceed 70 characters
4 headers
Optional. Specifies additional headers, like From, Cc, and Bcc. The additional headers should be separated with a CRLF (\r\n)
5 parameters
Optional. Specifies an additional parameter to the send mail program
As soon as the mail function is called PHP will attempt to send the email then it will return true if successful or false if it is failed.
Multiple recipients can be specified as the first argument to the mail
CONTACT FOR MORE INFORMATION: 9360029290,9442173717,9003206648,9943129290.
CONTACT EMAIL-ID : [email protected]
COIMBATORE: HEAD OFFICE
NO:96,HOPE COLLEGE BUS STOP,
OPP KRISHNA SWEETS,
PEELAMEDU,
AVINASHI ROAD,
COIMBATORE