<?php

namespace MailPoet\Mailer\WordPress;

if (!defined('ABSPATH')) exit;


use MailPoet\Mailer\Mailer;

class FallbackMailer extends Mailer {
  const FALLBACK_METHOD = self::METHOD_PHPMAIL;

  public function init($mailer = false, $sender = false, $replyTo = false, $returnPath = false) {
    // init is called lazily from when sending, we need to set correct sending method
    parent::init(['method' => self::FALLBACK_METHOD], $sender, $replyTo, $returnPath);
  }
}
