# acymailing/11.0.2/WpInit/MailDisabler.php

AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress, version 11.0.2. 31 lines.

- Page: https://pluginprobe.com/plugins/acymailing/11.0.2/code/WpInit/MailDisabler.php
- Raw: https://pluginprobe.com/plugins/acymailing/11.0.2/raw/WpInit/MailDisabler.php
- Modified: 2026-08-03T10:18:54+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/acymailing/11.0.2/code/WpInit/MailDisabler.php#L10-L20`.

```php
<?php
// phpcs:disable library_core_files -- Intended to disable the WordPress emails, if the user chooses so.

namespace AcyMailing\WpInit;

defined('ABSPATH') || die('Restricted Access');

use AcyMailing\Helpers\MailerHelper;

class MailDisabler
{
    public function send()
    {
        return true;
    }

    public function IsSMTP()
    {
    }

    public function addReplyTo($replyto, $name = '')
    {
        return true;
    }

    public function setFrom($address, $name = '', $auto = true)
    {
        return true;
    }
}

```
