{"id":452,"date":"2012-03-11T11:20:18","date_gmt":"2012-03-11T09:20:18","guid":{"rendered":"http:\/\/wpcb.fr\/?p=452"},"modified":"2012-03-11T11:20:18","modified_gmt":"2012-03-11T09:20:18","slug":"envoi-de-newsletter-html-avec-amazon-ses","status":"publish","type":"post","link":"https:\/\/rationalk.ch\/blog\/envoi-de-newsletter-html-avec-amazon-ses\/","title":{"rendered":"Envoi de newsletter HTML avec amazon ses"},"content":{"rendered":"<p>Petit snippet de script php utilisant le code de Anthone et Dan :<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"CbGy3DG0fB\"><p><a href=\"https:\/\/whitehatcrew.com\/blog\/free-php-class-for-sending-email-through-amazon-ses\/\">Free PHP Class for Sending Email Through Amazon SES<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;Free PHP Class for Sending Email Through Amazon SES&#8221; &#8212; White Hat Crew\" src=\"https:\/\/whitehatcrew.com\/blog\/free-php-class-for-sending-email-through-amazon-ses\/embed\/#?secret=CbGy3DG0fB\" data-secret=\"CbGy3DG0fB\" width=\"580\" height=\"327\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p>http:\/\/www.orderingdisorder.com\/aws\/ses\/<\/p>\n<pre>&lt;?php\nrequire_once('ses.php');\n$AccessKeyID='AKIAJT*******3XYQIWA';\n$SecretKey='b8tTSghJqV*************y\/HQ9';\n$ses = new SimpleEmailService($AccessKeyID,$SecretKey);\n$m = new SimpleEmailServiceMessage();\n$m-&gt;setFrom('thomas@lyonsalsacongress.com');\n$m-&gt;addTo('thomas@lyonsalsacongress.com');\n$m-&gt;addBCC(array('salut@gmail.com', 'thomas@6www.net'));\n$m-&gt;addReplyTo('thomas@lyonsalsacongress.com');\n$m-&gt;setSubject('News du Lyon Salsa Congress');\n$m-&gt;addRawMessageFromFile('html','news.html','text\/html');\nprint_r($ses-&gt;sendEmail($m));\nprint_r($ses-&gt;getSendQuota());\nprint_r($ses-&gt;getSendStatistics());\n?&gt;<\/pre>\n<p>Il faut sauver la page en HTML depuis le navigateur et l&rsquo;uploader sur le site.<\/p>\n<p>Les functions :\u00a0<a href=\"http:\/\/wpcb.fr\/wp-content\/uploads\/2012\/03\/ses.zip\">ses<\/a><\/p>\n<p>Bon dimanche.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Petit snippet de script php utilisant le code de Anthone et Dan : Free PHP Class for Sending Email Through Amazon SES http:\/\/www.orderingdisorder.com\/aws\/ses\/ &lt;?php require_once(&lsquo;ses.php&rsquo;); $AccessKeyID=&rsquo;AKIAJT*******3XYQIWA&rsquo;; $SecretKey=&rsquo;b8tTSghJqV*************y\/HQ9&prime;; $ses = new SimpleEmailService($AccessKeyID,$SecretKey); $m = new SimpleEmailServiceMessage(); $m-&gt;setFrom(&lsquo;thomas@lyonsalsacongress.com&rsquo;); $m-&gt;addTo(&lsquo;thomas@lyonsalsacongress.com&rsquo;); $m-&gt;addBCC(array(&lsquo;salut@gmail.com&rsquo;, &lsquo;thomas@6www.net&rsquo;)); $m-&gt;addReplyTo(&lsquo;thomas@lyonsalsacongress.com&rsquo;); $m-&gt;setSubject(&lsquo;News du Lyon Salsa Congress&rsquo;); $m-&gt;addRawMessageFromFile(&lsquo;html&rsquo;,&rsquo;news.html&rsquo;,&rsquo;text\/html&rsquo;); print_r($ses-&gt;sendEmail($m)); print_r($ses-&gt;getSendQuota()); print_r($ses-&gt;getSendStatistics()); ?&gt; Il faut sauver la page [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"enabled":false},"version":2}},"categories":[7],"tags":[10,59,74],"class_list":["post-452","post","type-post","status-publish","format-standard","hentry","category-web","tag-amazon","tag-newsletter","tag-ses"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/rationalk.ch\/blog\/wp-json\/wp\/v2\/posts\/452","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rationalk.ch\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rationalk.ch\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rationalk.ch\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rationalk.ch\/blog\/wp-json\/wp\/v2\/comments?post=452"}],"version-history":[{"count":0,"href":"https:\/\/rationalk.ch\/blog\/wp-json\/wp\/v2\/posts\/452\/revisions"}],"wp:attachment":[{"href":"https:\/\/rationalk.ch\/blog\/wp-json\/wp\/v2\/media?parent=452"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rationalk.ch\/blog\/wp-json\/wp\/v2\/categories?post=452"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rationalk.ch\/blog\/wp-json\/wp\/v2\/tags?post=452"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}