# acymailing/11.0.5/back/Helpers/global/mail.php

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

- Page: https://pluginprobe.com/plugins/acymailing/11.0.5/code/back/Helpers/global/mail.php
- Raw: https://pluginprobe.com/plugins/acymailing/11.0.5/raw/back/Helpers/global/mail.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.5/code/back/Helpers/global/mail.php#L10-L20`.

```php
<?php
defined('ABSPATH') || die('Restricted Access');

function acym_getEmailCssFixes(): string
{
    $emailFixes = acym_fileGetContent(ACYM_MEDIA.'css'.DS.'email.min.css');

    $config = acym_config();
    if ('1' === $config->get('prevent_hyphens', '')) {
        $emailFixes .= 'table td.acym__wysid__column__element__td, table td.acym__wysid__column__element__td p { word-break: break-word; -webkit-hyphens: none; -moz-hyphens: none; hyphens: none; mso-hyphenate: none; }';
    }

    return $emailFixes;
}

function acym_getMailThumbnail(?string $thumbnail): string
{
    $sources = [
        '',
        ACYM_TEMPLATE_THUMBNAILS,
        ACYM_IMAGES.'thumbnails/',
    ];

    if (!empty($thumbnail)) {
        foreach ($sources as $oneSource) {
            if (file_exists(str_replace(acym_rootURI(), ACYM_ROOT, $oneSource.$thumbnail))) {
                return $oneSource.$thumbnail;
            }
        }
    }

    return ACYM_IMAGES.'templates/default_template_thumbnail.png';
}

function acym_getFlagByCode(string $code): string
{
    $code = explode('-', $code);
    $finalCode = '';

    foreach ($code as $part) {
        $part = strtolower($part);
        if (file_exists(ACYM_MEDIA.'images'.DS.'flags'.DS.$part.'.png')) {
            $finalCode = $part;
        }
    }

    if (empty($finalCode)) {
        $finalCode = 'unknown';
    }

    return ACYM_IMAGES.'flags/'.$finalCode.'.png';
}

```
