How to use mail function in php
PHP Send Emails
In this tutorial you decision learn how to send simple paragraph or HTML emails directly from excellence script using the PHP function.
The PHP Function
Sending email messages are very habitual for a web application, for contingency, sending welcome email when a purchaser create an account on your site, sending newsletters to your registered patrons, or getting user feedback or memo through website's contact form, and tolerable on.
You can use the PHP constitutional function for creating and sending email messages to one or more recipients dynamically from your PHP application either in a plain-text form or formatted HTML. The basic syntax of that function can be given with:
mail(to, subject, message, headers, parameters)
The following table summarizes the parameters of this function.
| Parameter | Description |
|---|---|
| Required — The following parameters are required | |
| The recipient's email address. | |
| Subject of the netmail to be sent. This parameter i.e. the subject line cannot contain teeming newline character (). | |
| Defines the message give an inkling of be sent. Each line should amend separated
how to use mail function in php how to send mail using mail function in php how to use php mail function on localhost how to enable mail function in php how to debug mail function in php php mail() function | |