AI助手支持GPT4.0
SES for WordPress
适用于WordPress的SES p>
Introduction
简介 p>
This plugin provides support for AWS’s Simple Email Service for your WP site.
此插件为您的WP网站提供对AWS的简单电子邮件服务的支持。
It supports arbitrary custom headers and handles image embedding for you.
它支持任意的自定义标头并为您处理图像嵌入。
It sends HTML messages with an automatically-generated plain-text counterpart.
它发送带有自动生成的纯文本副本的HTML消息。 p>
By default, it overrides the native wp_mail function, so all you need to do is configure your AWS Keys and sender in Settings > SES4WP Options.
默认情况下,它会覆盖本机wp_mail函数,因此您所需要做的就是在“设置”>“ SES4WP选项”中配置您的AWS密钥和发件人。 p>
Components
组件 p>
>
ol>
Embedding images
嵌入图像 p>
Before your call to wp_mail(), call ses4wp_embed_image with an image handle and the path to your image.
ses4wp_embed_image
在调用wp_mail()之前,请先调用带有图像句柄和图像路径的 ses4wp_embed_image code>。It will return a content_id for you to use in your src attribute.它将返回一个content_id供您在src属性中使用。 p>Paths should be given relative to your webserver root.应该相对于您的Web服务器根目录指定路径。So for instance, to embed wp-content/themes/twentyeleven/images/wordpress.png, you would omit the slash at the beginning.因此,例如,要嵌入 wp-content / themes / twentyeleven / images / wordpress.png code>,您可以在开始时省略 em>。 p>eg例如 p>$content_id = ses4wp_embed_image( 'my_image', 'wp-content/path/to/image.jpg' ); $ content_id = ses4wp_embed_image('my_image','wp-content / path / to / image.jpg');$mail_body = "This is an image. ";$ mail_body =“这是一张图片。”;wp_mail( 'bob@example.com', 'My Subject', $mail_body );wp_mail('bob@example.com','我的主题',$ mail_body); code> pre>The image will be attached to the email and delivered inline.图片将附加到电子邮件中并以内嵌方式发送。 p>
ses4wp_embed_image code>。It will return a content_id for you to use in your src attribute.它将返回一个content_id供您在src属性中使用。 p>Paths should be given relative to your webserver root.应该相对于您的Web服务器根目录指定路径。So for instance, to embed wp-content/themes/twentyeleven/images/wordpress.png, you would omit the slash at the beginning.因此,例如,要嵌入 wp-content / themes / twentyeleven / images / wordpress.png code>,您可以在开始时省略 em>。 p>eg例如 p>$content_id = ses4wp_embed_image( 'my_image', 'wp-content/path/to/image.jpg' ); $ content_id = ses4wp_embed_image('my_image','wp-content / path / to / image.jpg');$mail_body = "This is an image. ";$ mail_body =“这是一张图片。”;wp_mail( 'bob@example.com', 'My Subject', $mail_body );wp_mail('bob@example.com','我的主题',$ mail_body); code> pre>The image will be attached to the email and delivered inline.图片将附加到电子邮件中并以内嵌方式发送。 p>
It will return a content_id for you to use in your src attribute.
它将返回一个content_id供您在src属性中使用。 p>
Paths should be given relative to your webserver root.
应该相对于您的Web服务器根目录指定路径。
So for instance, to embed wp-content/themes/twentyeleven/images/wordpress.png, you would omit the slash at the beginning.
wp-content/themes/twentyeleven/images/wordpress.png
因此,例如,要嵌入 wp-content / themes / twentyeleven / images / wordpress.png code>,您可以在开始时省略 em>。 p>eg例如 p>$content_id = ses4wp_embed_image( 'my_image', 'wp-content/path/to/image.jpg' ); $ content_id = ses4wp_embed_image('my_image','wp-content / path / to / image.jpg');$mail_body = "This is an image. ";$ mail_body =“这是一张图片。”;wp_mail( 'bob@example.com', 'My Subject', $mail_body );wp_mail('bob@example.com','我的主题',$ mail_body); code> pre>The image will be attached to the email and delivered inline.图片将附加到电子邮件中并以内嵌方式发送。 p>
wp-content / themes / twentyeleven / images / wordpress.png code>,您可以在开始时省略 em>。 p>eg例如 p>$content_id = ses4wp_embed_image( 'my_image', 'wp-content/path/to/image.jpg' ); $ content_id = ses4wp_embed_image('my_image','wp-content / path / to / image.jpg');$mail_body = "This is an image. ";$ mail_body =“这是一张图片。”;wp_mail( 'bob@example.com', 'My Subject', $mail_body );wp_mail('bob@example.com','我的主题',$ mail_body); code> pre>The image will be attached to the email and delivered inline.图片将附加到电子邮件中并以内嵌方式发送。 p>
eg
例如 p>
$content_id = ses4wp_embed_image( 'my_image', 'wp-content/path/to/image.jpg' ); $ content_id = ses4wp_embed_image('my_image','wp-content / path / to / image.jpg');$mail_body = "This is an image. ";$ mail_body =“这是一张图片。”;wp_mail( 'bob@example.com', 'My Subject', $mail_body );wp_mail('bob@example.com','我的主题',$ mail_body); code> pre>The image will be attached to the email and delivered inline.图片将附加到电子邮件中并以内嵌方式发送。 p>
$ content_id = ses4wp_embed_image('my_image','wp-content / path / to / image.jpg');$mail_body = "This is an image. ";$ mail_body =“这是一张图片。”;wp_mail( 'bob@example.com', 'My Subject', $mail_body );wp_mail('bob@example.com','我的主题',$ mail_body);
$mail_body = "This is an image. ";
$ mail_body =“这是一张图片。”;
wp_mail( 'bob@example.com', 'My Subject', $mail_body );
wp_mail('bob@example.com','我的主题',$ mail_body);
code> pre>
The image will be attached to the email and delivered inline.
图片将附加到电子邮件中并以内嵌方式发送。 p>
plugin-name.php
/wp-content/plugins/
plugin-name.php code>上载到 / wp-content / plugins / code>目录并激活它 li>Configure your AWS keys in Settings > SES4WP Options在“设置”>“ SES4WP选项”中配置您的AWS密钥 li>
/ wp-content / plugins / code>目录并激活它 li>Configure your AWS keys in Settings > SES4WP Options在“设置”>“ SES4WP选项”中配置您的AWS密钥 li>
原文出处:http://www.sanshu.cn/a/3661.html
群主管理都是支付大佬