PHP - Explain how to send large amounts of emails with php.

Explain how to send large amounts of emails with php.

- There are different methods by which we can send mails in PHP. They are as follows:

1. PHP mail() function
It implicitly send an message to an SMTP server which is configured in the php.ini file. This function is used by the base class of MIME message composing and sending package.

2. SMTP server relay
They are used to relay the messages to an intermediate SMTP server. This server stores the messages temporarily and will try to deliver them in the destination SMTP server.

3. Sending urgent messages by doing direct delivery to the destination SMTP server
A variable named direct_delivery is provided by the smtp_message_class sub-class which connects to the destination SMTP server and sends the message directly.
Advantages of PHP
PHP advantages - PHP offers a lot of security mechanisms, Its easy connectivity abilities make it a popular choice of modular programming......
PHP PEAR
PHP PEAR (PHP Extension and Application Repository) is a framework and a distribution system that is used for reusable PHP components.
PHP Heredoc
PHP heredoc syntax allows creating multiple lines of string without using quotations.
Post your comment