Title: WP Mail SES
Author: Bashkim Isai
Published: <strong>19 مارس 2016</strong>
Last modified: 3 ژانویه 2018

---

جستجوی افزونه‌ها

این افزونه **با ۳ نگارش عمدهٔ اخیر وردپرس آزمایش نشده است**. ممکن است دیگر نگهداری
یا پشتیبانی نشود و هنگام استفاده با نگارش‌های تازه‌تر وردپرس مشکل سازگاری داشته 
باشد.

![](https://s.w.org/plugins/geopattern-icon/wp-mail-ses.svg)

# WP Mail SES

 توسط [Bashkim Isai](https://profiles.wordpress.org/bashaus/)

[دانلود](https://downloads.wordpress.org/plugin/wp-mail-ses.zip)

 * [جزئیات](https://fa.wordpress.org/plugins/wp-mail-ses/#description)
 * [نقد و بررسی‌ها](https://fa.wordpress.org/plugins/wp-mail-ses/#reviews)
 *  [نصب](https://fa.wordpress.org/plugins/wp-mail-ses/#installation)
 * [توسعه](https://fa.wordpress.org/plugins/wp-mail-ses/#developers)

 [پشتیبانی](https://wordpress.org/support/plugin/wp-mail-ses/)

## توضیحات

Uses Amazon Web Services (AWS) Simple Email Service (SES) to send emails.
 Based
on the original WP SES project by Sylvain Deaure. Main differences:

 * Does not store credentials in the database
 * Convention over configuration
 * Removed any functionality which can be done via AWS Console
 * Open Source and [version controlled via GitHub](https://github.com/bashaus/wp-mail-ses/)

### Usage

#### View statistics

Go to: `Admin` » `Dashboard` » `SES Statistics`

#### Send test message

Go to: `Admin` » `Settings` » `WP Mail SES`

#### Hooks/Filters

    ```
    wp_mail_ses_sent_email - This function is called once an email has been sent
    ```

to SES and provides two parameters:

 * `$message_id` (`string` or `null`) –
    The `MessageId` as provided by SES if the
   request was successful, otherwise null.
 * `$mail_data` (`array`) –
    A hash map containing the information used to send 
   the email. Keys include: to, `subject`, `message`, `headers`, `attachments`

Example:

    ```
    add_filter( 'wp_mail_ses_sent_email', function ( $message_id, $mail_data ) {
        if ( is_null( $message_id ) ) {
            echo "Sending failed";
        } else {
            echo "Sending successful";
        }

        print_r( $mail_data );
    } );
    ```

## نصب

Follow these instructions:

#### 1. Amazon confirmation and approval

You will need to setup Simple Email Service (SES) on your Amazon Web Services
 account
before you can use this plugin.

For more information, [read Amazon’s documentation on how to setup
 SES

#### 2. Update configuration

Update your `wp-config.php` file to include the required constants:

    ```
    /**
     * Include your AWS keys.
     *
     * A safe approach is to store your key and secret in environment
     * variables. This way, your credentials are not hard coded in version
     * control.
     */

    define( 'WP_MAIL_SES_ACCESS_KEY_ID', getenv( 'WP_MAIL_SES_ACCESS_KEY_ID' ) );
    define( 'WP_MAIL_SES_SECRET_ACCESS_KEY', getenv( 'WP_MAIL_SES_SECRET_ACCESS_KEY' ) );

    /**
     * Define the endpoint for your emails to be sent. Endpoints include:
     *
     * email.us-east-1.amazonaws.com
     * email.us-west-2.amazonaws.com
     * email.eu-west-1.amazonaws.com
     */

    define( 'WP_MAIL_SES_ENDPOINT', 'email.eu-west-1.amazonaws.com' );
    ```

Optional extra configuration:

    ```
    /**
     * Define the composer information for your email (who the email is
     * sent from). The email address must be approved in your AWS console
     * in the specified region.
     *
     * This email address is used if a composer is not already defined by
     * the email.
     */

    define( 'WP_MAIL_SES_COMPOSER_NAME', 'Company Name' );
    define( 'WP_MAIL_SES_COMPOSER_EMAIL', 'confirmed@example.com' );

    /**
     * Disable accessing of statistics from the Dashboard.
     * This can help if you're hitting the API too frequently.
     */

    define( 'WP_MAIL_SES_HIDE_STATISTICS', true );
    ```

#### 3. Install plugin

Copy this folder `wp-mail-ses` to your `/wp-content/plugins/` directory.

#### 4. Activate plugin

Go to your WordPress Administration and activate the `WP Mail SES` plugin.

#### 5. Send a test message

Go to: `Admin` » `Settings` » `WP Mail SES`

## سوالات متداول

  Installation Instructions

Follow these instructions:

#### 1. Amazon confirmation and approval

You will need to setup Simple Email Service (SES) on your Amazon Web Services
 account
before you can use this plugin.

For more information, [read Amazon’s documentation on how to setup
 SES

#### 2. Update configuration

Update your `wp-config.php` file to include the required constants:

    ```
    /**
     * Include your AWS keys.
     *
     * A safe approach is to store your key and secret in environment
     * variables. This way, your credentials are not hard coded in version
     * control.
     */

    define( 'WP_MAIL_SES_ACCESS_KEY_ID', getenv( 'WP_MAIL_SES_ACCESS_KEY_ID' ) );
    define( 'WP_MAIL_SES_SECRET_ACCESS_KEY', getenv( 'WP_MAIL_SES_SECRET_ACCESS_KEY' ) );

    /**
     * Define the endpoint for your emails to be sent. Endpoints include:
     *
     * email.us-east-1.amazonaws.com
     * email.us-west-2.amazonaws.com
     * email.eu-west-1.amazonaws.com
     */

    define( 'WP_MAIL_SES_ENDPOINT', 'email.eu-west-1.amazonaws.com' );
    ```

Optional extra configuration:

    ```
    /**
     * Define the composer information for your email (who the email is
     * sent from). The email address must be approved in your AWS console
     * in the specified region.
     *
     * This email address is used if a composer is not already defined by
     * the email.
     */

    define( 'WP_MAIL_SES_COMPOSER_NAME', 'Company Name' );
    define( 'WP_MAIL_SES_COMPOSER_EMAIL', 'confirmed@example.com' );

    /**
     * Disable accessing of statistics from the Dashboard.
     * This can help if you're hitting the API too frequently.
     */

    define( 'WP_MAIL_SES_HIDE_STATISTICS', true );
    ```

#### 3. Install plugin

Copy this folder `wp-mail-ses` to your `/wp-content/plugins/` directory.

#### 4. Activate plugin

Go to your WordPress Administration and activate the `WP Mail SES` plugin.

#### 5. Send a test message

Go to: `Admin` » `Settings` » `WP Mail SES`

  Why isn’t my email sending?

There are a number of reasons that an email might not be sent via SES, here is
 
a quick checklist to ensure that the plugin has been setup properly:

Have you:

 * Defined `WP_MAIL_SES_ACCESS_KEY_ID`, `WP_MAIL_SES_SECRET_ACCESS_KEY` and
    WP_MAIL_SES_ENDPOINT
   in `wp-config.php`?
 * Confirmed that you own a domain name in the Amazon SES console?
 * Confirmed an email address in the Amazon SES console?
 * Requested your [service limit to be increased](https://docs.aws.amazon.com/ses/latest/DeveloperGuide/request-production-access.html)?
 * Tried defining `WP_MAIL_SES_COMPOSER_EMAIL` in `wp-config.php` with your
    verified
   email address?

  I can send emails to myself, but not to others

In order to send emails to the public, you need to move out of the Amazon SES
 Sandbox
and into the production account. [Read the documentation on Amazon.

  Got another question?

You can [post your question on GitHub](https://github.com/bashaus/wp-mail-ses).

## نقد و بررسی‌ها

![](https://secure.gravatar.com/avatar/1e0e10d28151b31ca8a92bbacc6b523241586111395c141013e2a5abdf035b83?
s=60&d=retro&r=g)

### 󠀁[Great for Developers](https://wordpress.org/support/topic/great-for-developers-8/)󠁿

 [David Buckle](https://profiles.wordpress.org/juggernautdigital/) 19 دسامبر 2018

Great plugin, easy to use, hassle free. Love the fact that the config details are
stored in the wp-config.php file. Easy to roll out over multiple websites.

 [ خواندن تمامی 1 نقد و بررسی‌ ](https://wordpress.org/support/plugin/wp-mail-ses/reviews/)

## توسعه دهندگان و همکاران

“WP Mail SES” نرم افزار متن باز است. افراد زیر در این افزونه مشارکت کرده‌اند.

مشارکت کنندگان

 *   [ Bashkim Isai ](https://profiles.wordpress.org/bashaus/)

[ترجمه “WP Mail SES” به زبان شما.](https://translate.wordpress.org/projects/wp-plugins/wp-mail-ses)

### علاقه‌ مند به توسعه هستید؟

[کد را مرور کنید](https://plugins.trac.wordpress.org/browser/wp-mail-ses/)، [مخزن SVN](https://plugins.svn.wordpress.org/wp-mail-ses/)
را بررسی کنید، یا از طریق [RSS](https://plugins.trac.wordpress.org/log/wp-mail-ses/?limit=100&mode=stop_on_copy&format=rss)
در [گزارش توسعه](https://plugins.trac.wordpress.org/log/wp-mail-ses/) مشترک شوید.

## گزارش تغییرات

#### 0.0.4

 * Integrated with Travis CI
 * Added PHPCS and linked to WordPress-Extra standards
 * Cleaned up code with phpcs/phpcbf
 * Added .editorconfig
 * Updated SimpleEmailService to 0.9.0

#### 0.0.3

 * Bug fix for $recipients variable [#3]

#### 0.0.2

 * Added filter to notify of email sent status [#2]

#### 0.0.1

 * Initial release

## اطلاعات

 *  نگارش **0.0.4**
 *  آخرین به‌روزرسانی **9 سال پیش**
 *  نصب‌های فعال **10+**
 *  نگارش وردپرس ** 3.0.1 یا بالاتر **
 *  آزمایش‌شده تا **4.9.31**
 *  زبان
 * [English (US)](https://wordpress.org/plugins/wp-mail-ses/)
 * برچسب
 * [mail](https://fa.wordpress.org/plugins/tags/mail/)[SES](https://fa.wordpress.org/plugins/tags/ses/)
   [wp_mail](https://fa.wordpress.org/plugins/tags/wp_mail/)
 *  [نمایش پیشرفته](https://fa.wordpress.org/plugins/wp-mail-ses/advanced/)

## امتیازها

 5 از 5 ستاره.

 *  [  امتیاز 1 5-ستاره     ](https://wordpress.org/support/plugin/wp-mail-ses/reviews/?filter=5)
 *  [  امتیاز 0 4-ستاره     ](https://wordpress.org/support/plugin/wp-mail-ses/reviews/?filter=4)
 *  [  امتیاز 0 3-ستاره     ](https://wordpress.org/support/plugin/wp-mail-ses/reviews/?filter=3)
 *  [  امتیاز 0 2-ستاره     ](https://wordpress.org/support/plugin/wp-mail-ses/reviews/?filter=2)
 *  [  امتیاز 0 1-ستاره     ](https://wordpress.org/support/plugin/wp-mail-ses/reviews/?filter=1)

[بررسی شما](https://wordpress.org/support/plugin/wp-mail-ses/reviews/#new-post)

[مشاهدهٔ همهٔ بررسی‌ها](https://wordpress.org/support/plugin/wp-mail-ses/reviews/)

## مشارکت کنندگان

 *   [ Bashkim Isai ](https://profiles.wordpress.org/bashaus/)

## پشتیبانی

چیزی برای گفتن دارید؟ نیاز به کمک دارید؟

 [مشاهده انجمن پشتیبانی](https://wordpress.org/support/plugin/wp-mail-ses/)