{"id":21,"date":"2009-02-12T11:53:10","date_gmt":"2009-02-12T09:53:10","guid":{"rendered":"http:\/\/blogs.igalia.com\/jaragunde\/2009\/02\/12\/massive-mail-application-in-php\/"},"modified":"2009-02-12T11:53:10","modified_gmt":"2009-02-12T09:53:10","slug":"massive-mail-application-in-php","status":"publish","type":"post","link":"https:\/\/blogs.igalia.com\/jaragunde\/2009\/02\/massive-mail-application-in-php\/","title":{"rendered":"Massive mail application in PHP"},"content":{"rendered":"<p>Since we have to to send e-mail notifications every now and then, I developed a small PHP page to build the e-mail and send it to all recipients <strong>individually<\/strong>, I mean, in a way that the <em>To<\/em> field doesn&#8217;t contain a huge list of e-mail addresses (doing that can be even illegal due to personal data protection laws, and is very ugly too ;)). The application grew and it currently does quite a bit of things, so I think it&#8217;s worth uploading its sources here.<\/p>\n<p>What it does:<\/p>\n<ul>\n<li>Sends mail individually, so each recipient doesn&#8217;t know the addresses of the other ones.<\/li>\n<li>Parses the text in the <em>To<\/em> text entry, extracting only e-mail addresses.<\/li>\n<li>Sends mail with plain text or HTML.<\/li>\n<li>Can attach files.<\/li>\n<li>Can attach an image in the body of the e-mail.<\/li>\n<\/ul>\n<p>What it doesn&#8217;t do (because I didn&#8217;t care when I wrote it :P):<\/p>\n<ul>\n<li>It doesn&#8217;t support concurrency; if two people use the application at once, the attached files are mixed.<\/li>\n<li>The attached files aren&#8217;t deleted automatically after sending the e-mail, but there&#8217;s a button to do it manually.<\/li>\n<li>The on-screen texts are only in Spanish, and they aren&#8217;t i18n-able.<\/li>\n<\/ul>\n<p>Download the files: <a id=\"p22\" href=\"http:\/\/blogs.igalia.com\/jaragunde\/files\/2009\/02\/massive_mail.tar\">Massive mail application in PHP<\/a>.<\/p>\n<p>PS: I forgot! You&#8217;ll need the library <a href=\"http:\/\/phpmailer.codeworxtech.com\/\" target=\"_blank\">PHP Mailer<\/a>. Download and install it in your web server together with this application.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Since we have to to send e-mail notifications every now and then, I developed a small PHP page to build the e-mail and send it to all recipients individually, I mean, in a way that the To field doesn&#8217;t contain &hellip; <a href=\"https:\/\/blogs.igalia.com\/jaragunde\/2009\/02\/massive-mail-application-in-php\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":17,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,10],"tags":[13],"class_list":["post-21","post","type-post","status-publish","format-standard","hentry","category-intranet-education-coruna","category-web","tag-edu-coruna"],"_links":{"self":[{"href":"https:\/\/blogs.igalia.com\/jaragunde\/wp-json\/wp\/v2\/posts\/21","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.igalia.com\/jaragunde\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.igalia.com\/jaragunde\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.igalia.com\/jaragunde\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.igalia.com\/jaragunde\/wp-json\/wp\/v2\/comments?post=21"}],"version-history":[{"count":0,"href":"https:\/\/blogs.igalia.com\/jaragunde\/wp-json\/wp\/v2\/posts\/21\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.igalia.com\/jaragunde\/wp-json\/wp\/v2\/media?parent=21"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.igalia.com\/jaragunde\/wp-json\/wp\/v2\/categories?post=21"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.igalia.com\/jaragunde\/wp-json\/wp\/v2\/tags?post=21"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}