# acymailing/11.1.0/back/Partial/configuration/sending_methods.php

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

- Page: https://pluginprobe.com/plugins/acymailing/11.1.0/code/back/Partial/configuration/sending_methods.php
- Raw: https://pluginprobe.com/plugins/acymailing/11.1.0/raw/back/Partial/configuration/sending_methods.php
- Modified: 2026-09-24T14:59:06+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.1.0/code/back/Partial/configuration/sending_methods.php#L10-L20`.

```php
<?php
// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- View file, its variables are local to the include scope, not true globals.
defined('ABSPATH') || die('Restricted Access');
?>
<div class="cell grid-x acym__sending__methods__choose acym__selection">
    <?php
    $services = $data['sendingMethods'];
    uksort($services, function ($first, $next) {
        if ($first === 'phpmail' || $first === 'acymailer') return -1;
        if ($next === 'sendinblue') return -1;

        return $first !== 'smtp' || $next === 'phpmail' ? 1 : -1;
    });
    ?>
    <?php if (empty($data['isSml'])) { ?>
		<div class="acym__title acym__title__secondary margin-top-1 medium-12 <?php echo !empty($data['step']) && $data['step'] == 'phpmail' ? 'text-center'
            : ''; ?>"><?php echo esc_html(acym_translation('ACYM_SENDING_MEHTODS')); ?></div>
    <?php } ?>
	<div class="cell grid-x grid-margin-x grid-margin-y acym__sending__methods__choose__selection text-center <?php echo !empty($data['step']) && $data['step'] == 'phpmail'
        ? 'align-center'
        : ''; ?>">
        <?php
        foreach ($services as $key => $sendingMethod) {
            if (!empty($data['isSml']) && $key === 'acymailer') {
                continue;
            }

            $selected = isset($sendingMethod['selected']) && $sendingMethod['selected'];
            $class = !empty($sendingMethod['recommended']) ? 'acym__sending__methods__one__premium' : '';
            $class .= empty($data['step']) ? ' acym__sending__methods__one__config' : '';
            $idCheckbox = 'acym__sending__methods-'.(empty($data['isSml']) ? 'default' : 'sml').'-'.$key;
            ?>
			<div class="cell large-3 medium-6 grid-x align-center acym_vcenter acym__sending__methods__one <?php echo esc_attr($class); ?>">
				<label for="<?php echo esc_attr($idCheckbox); ?>" data-acym-method="<?php echo esc_attr($key); ?>"
				       class="acym__selection__card cell acym_vcenter align-center <?php echo $selected ? 'acym__selection__card-selected' : ''; ?>">
                    <?php
                    if (!empty($sendingMethod['icon'])) { ?>
						<i class="cell <?php echo esc_attr($sendingMethod['icon']); ?> text-center"></i>
                    <?php } else { ?>
						<img src="<?php echo esc_url($sendingMethod['image']); ?>"
						     alt=""
						     class="cell <?php echo !empty($sendingMethod['image_class']) ? esc_attr($sendingMethod['image_class']) : ''; ?>">
                    <?php } ?>
				</label>
				<span class="cell acym__sending__methods__name">
					<?php
                    echo esc_html($sendingMethod['name']);
                    if (!empty($sendingMethod['recommended'])) {
                        echo ' <br>('.esc_html(acym_translation('ACYM_RECOMMENDED')).')';
                    }
                    ?>
				</span>
				<input type="radio"
				       name="<?php echo !empty($data['isSml']) ? 'sml' : 'config'; ?>[mailer_method]"
                    <?php checked($selected); ?>
					   id="<?php echo esc_attr($idCheckbox); ?>"
					   value="<?php echo esc_attr($key); ?>"
					   style="display: none">
			</div>
        <?php } ?>
	</div>
    <?php
    $class = '';
    if (!empty($data['step'])) {
        $class = 'medium-10';
        echo '<div class="cell medium-1 hide-for-small-only"></div>';
    }
    ?>
	<div class="cell <?php echo esc_attr($class); ?> grid-x">
        <?php acym_trigger('onAcymGetSendingMethodsHtmlSetting', [&$data]); ?>
	</div>
</div>

```
