send-email-using-php-technogripper-india
0

Today, TechnoGripper India comes with an example to send email using PHP Script. For sending emails, PHP must be configured perfectly in php.ini file.

In PHP, You can send an email by using predefined PHP Function – mail(). This function needs 3 mandatory arguments that include the receiver’s mail id, a subject for the mail and the actual message content of the mail additionally there are two more variables that are non-mandatory.

Here are details of all the five functions:
to: Receiver Email ID
subject: Subject Line of the Email Message
message: Defines the message content to be sent to the Email
headers: Specifies additional headers, like From CC, BCC. Or if you want to send HTML email then also you need to use headers as a parameter. It should be CRLF separated
parameters: Specifies an additional parameter to send email using mail()




Here is Syntax to Send Email using PHP:

If your script sent email successfully then the function mail() returns true otherwise it will return false.

That’s All to Send Email using PHP.
Any Query, Send us an Email at info@technogripper.net. We are always there to help volunteers and passionate peoples.

TechnoGripper India
TechnoGripper India is one of the leading firms, rendering Online Business services to its Prestigious Clients.We are experts in Website Development, Website Designing, Graphic Designing, Logo Designing, 2D & 3D Animation, SEO Analysis, Android App Development, iOS App Development, Digital Marketing and Content Writing.

Increase Memory Limit of PHP Website

Previous article

#5 Most Challenging CEO’s in India

Next article

You may also like

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments

More in eLearning