{"id":1734,"date":"2004-09-29T12:32:41","date_gmt":"2004-09-29T16:32:41","guid":{"rendered":"http:\/\/scruss.com\/blog\/?p=1734"},"modified":"2004-09-29T12:34:23","modified_gmt":"2004-09-29T16:34:23","slug":"using-mimelite-from-activestate-perl-on-windows","status":"publish","type":"post","link":"https:\/\/scruss.com\/blog\/2004\/09\/29\/using-mimelite-from-activestate-perl-on-windows\/","title":{"rendered":"using MIME::Lite from ActiveState Perl on Windows"},"content":{"rendered":"<p>Wouldn&#8217;t you know it, but Windows just <em>has<\/em> to do things its own way. I&#8217;ve just started writing periodic system monitoring programs for our met station network, and needed to send e-mail. Under Unix, it was a simple matter of using <a href=\"http:\/\/search.cpan.org\/search?query=MIME%3A%3ALite&#038;mode=all\">MIME::Lite<\/a>, and calling:<\/p>\n<p><code>$msg->send();<\/code><\/p>\n<p>But Windows doesn&#8217;t do <strong>sendmail<\/strong>, so you have to talk to the SMTP server directly:<\/p>\n<p><code>$msg->send_by_smtp('<em>your.SMTP.server.here<\/em>');<\/code><\/p>\n<p>That seems to work.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Wouldn&#8217;t you know it, but Windows just has to do things its own way. I&#8217;ve just started writing periodic system monitoring programs for our met station network, and needed to send e-mail. Under Unix, it was a simple matter of using MIME::Lite, and calling: $msg->send(); But Windows doesn&#8217;t do sendmail, so you have to talk [&hellip;]<\/p>\n","protected":false},"author":2,"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,"font":"","enabled":false},"version":2}},"categories":[7],"tags":[1821,187,268],"class_list":["post-1734","post","type-post","status-publish","format-standard","hentry","category-computers-suck","tag-mime","tag-perl","tag-windows"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pQNZZ-rY","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts\/1734","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/comments?post=1734"}],"version-history":[{"count":0,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts\/1734\/revisions"}],"wp:attachment":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/media?parent=1734"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/categories?post=1734"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/tags?post=1734"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}