PHPMailer is a library for sending emails via SMTP, PHP's built-in mail function, or even directly through sendmail. One of the features of PHPMailer is ClearCustomHeaders, which allows you to remove any custom headers that you may have added to the email.
Example:
//Create an instance of PHPMailer $mail = new PHPMailer();
//Add a custom header $mail->addCustomHeader('X-Custom-Header: Custom Value');
//Clear the custom header $mail->clearCustomHeaders();
In this example, we create an instance of PHPMailer and add a custom header using the addCustomHeader() function. The custom header is then cleared using the clearCustomHeaders() function.
Package Library: PHPMailer
PHP PHPMailer::clearCustomHeaders - 6 examples found. These are the top rated real world PHP examples of PHPMailer::clearCustomHeaders extracted from open source projects. You can rate examples to help us improve the quality of examples.