forked from s3bubble/Simple-AWS-SES-Mail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsimple-aws-ses-mail.php
34 lines (25 loc) · 1022 Bytes
/
simple-aws-ses-mail.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
/**
* Plugin Name: Simple AWS SES Mail
* Plugin URI: https://github.com/s3bubble/Simple-AWS-SES-Mail.git
* Description: Send all your WordPress emails through the powerful AWS SES Mail service
* Version: 0.0.1
* Author: SoBytes
* Author URI: https://github.com/s3bubble
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
* Text Domain:
* Domain Path: /languages
*/
if ( ! defined( 'ABSPATH' ) ) exit;
require_once dirname( __FILE__ ) . '/vendor/autoload.php';
require_once dirname( __FILE__ ) . '/includes/class-sasm-mail.php';
require_once dirname( __FILE__ ) . '/includes/class-sasm-admin.php';
define( 'SASM_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
define( 'SASM_PLUGIN_URL', plugins_url('', __FILE__) );
if ( ! function_exists( 'wp_mail' ) ) {
function wp_mail( $to, $subject, $message, $headers = '', $attachments = [] ) {
$mail = new SASMMail();
return $mail->send_raw_wp_mail( $to, $subject, $message, $headers, $attachments );
}
}