Mailermailer email header

When using MailerMailer, you can customize the email header by specifying the following parameters:

  1. From Email: The email address that will be displayed as the sender of the email.
  2. From Name: The name that will be displayed as the sender of the email.
  3. Reply-To Email: The email address that will be used as the reply-to address for the email.
  4. Reply-To Name: The name that will be displayed as the reply-to name for the email.
  5. Subject: The subject line of the email.
  6. Headers: Additional headers that can be added to the email, such as X-Mailer or X-Priority.

Here is an example of how you can specify these parameters in your MailerMailer code:

$mailer = new MailerMailer();
$mailer->setFromEmail('[email protected]');
$mailer->setFromName('Your Name');
$mailer->setReplyToEmail('[email protected]');
$mailer->setReplyToName('Reply To Name');
$mailer->setSubject('Your Email Subject');
$mailer->addHeader('X-Mailer', 'MailerMailer');
$mailer->addHeader('X-Priority', 'High');

You can also use the setHeaders() method to specify additional headers:

$mailer->setHeaders(array(
    'X-Mailer' => 'MailerMailer',
    'X-Priority' => 'High',
    'X-My-Custom-Header' => 'My Custom Value'
));

Note that some email clients may not display all of the headers you specify, and some may display them in a different format. Additionally, some email providers may block or modify certain headers, so it's always a good idea to test your email campaigns with different email clients and providers to ensure that they are displayed correctly.