Home  >  Article  >  Backend Development  >  What is PHPMailer

What is PHPMailer

(*-*)浩
(*-*)浩Original
2019-10-10 14:16:332005browse

PHPMailer is a PHP function package for sending emails. You can send it directly using PHP, without building a complicated email service.

What is PHPMailer

Introduction

The functions it provides include: (Recommended learning: PHP video tutorial )

*. Specify multiple recipients, CC address, BCC address and reply address when sending an email

*. Supports multiple email encodings including: 8bit, base64, binary and quoted-printable

*. Support SMTP authentication

*. Support redundant SMTP server

*. Support emails with attachments and emails in Html format

*.Customized email header

*.Support embedding pictures in emails

*.Flexible debugging

*.Tested and compatible SMTP servers include :Sendmail, qmail, Postfix, Imail, Exchange, etc.

*. Can run on any platform

Internal function

mail Function

php itself provides an email sending function mail, which can send emails directly in the program. However, this function requires the server to support sendmail or a mail sending server that does not require relay must be set up. However, it is almost impossible to find an email sending relay that does not require authentication, so using the mail function often fails to successfully send emails.

If you are familiar with the SMTP protocol and combine it with the socket function, you can write an efficient and stable email sending program, but it is too difficult for ordinary users. Fortunately, there are already many email sending modules written by others on the Internet. We only need to download and simply call them, which is very convenient.

The above is the detailed content of What is PHPMailer. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn