{"id":532,"date":"2016-11-29T16:17:39","date_gmt":"2016-11-29T16:17:39","guid":{"rendered":"https:\/\/projects.lsv.ens-paris-saclay.fr\/orchidsdoc\/?page_id=532"},"modified":"2017-12-03T19:52:51","modified_gmt":"2017-12-03T19:52:51","slug":"the-sendmail-module","status":"publish","type":"page","link":"https:\/\/projects.lsv.ens-paris-saclay.fr\/orchidsdoc\/?page_id=532","title":{"rendered":"The sendmail module"},"content":{"rendered":"<p>The sendmail module is an <a href=\"https:\/\/projects.lsv.ens-paris-saclay.fr\/orchidsdoc\/?page_id=656\">extension module<\/a>. \u00a0It is meant to provide primitives not provided by the core version of Orchids. \u00a0This is so as to reduce the dependencies of core Orchids.<\/p>\n<h3>Configuration options<\/h3>\n<p>None.<\/p>\n<h3>Primitives<\/h3>\n<ul>\n<li><strong><code>sendmail<\/code><\/strong>: <code>str<\/code>, <code>str<\/code>, <code>str<\/code>,\u00a0<code>str<\/code> \u2192 <code>int<\/code><br \/>\nsend an email<\/p>\n<ul>\n<li>usage: <code>sendmail<\/code>(<em>from<\/em>, <em>to<\/em>, <em>subject<\/em>, <em>body<\/em>)<\/li>\n<li>returns: <code>1<\/code> (true) if successful, 0 (false) otherwise<\/li>\n<\/ul>\n<\/li>\n<li><strong><code>sendmail_report<\/code><\/strong>: <code>str<\/code>, <code>str<\/code>, <code>str<\/code>,\u00a0<code>str<\/code> \u2192 <code>int<\/code><br \/>\ngenerate a report and send it by email<\/p>\n<ul>\n<li>usage: <code>sendmail_report<\/code>(<em>from<\/em>, <em>to<\/em>, <em>subject<\/em>, <em>body<\/em>)<\/li>\n<li>The body of the message sent is the concatenation of <em>body<\/em> and of the list of\u00a0values of the currently defined OrchIDS variables: if you want to report something, just have it stored into some variable.<\/li>\n<li>returns: <code>1<\/code> (true) if successful, 0 (false) otherwise<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>The sendmail module is an extension module. \u00a0It is meant to provide primitives not provided by the core version of Orchids. \u00a0This is so as to reduce the dependencies of core Orchids. Configuration options None. Primitives sendmail: str, str, str,\u00a0str \u2192 int send an email usage: sendmail(from, to, subject, body) returns: 1 (true) if successful, &hellip; <a href=\"https:\/\/projects.lsv.ens-paris-saclay.fr\/orchidsdoc\/?page_id=532\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">The sendmail module<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-532","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/projects.lsv.ens-paris-saclay.fr\/orchidsdoc\/index.php?rest_route=\/wp\/v2\/pages\/532","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/projects.lsv.ens-paris-saclay.fr\/orchidsdoc\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/projects.lsv.ens-paris-saclay.fr\/orchidsdoc\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/projects.lsv.ens-paris-saclay.fr\/orchidsdoc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/projects.lsv.ens-paris-saclay.fr\/orchidsdoc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=532"}],"version-history":[{"count":4,"href":"https:\/\/projects.lsv.ens-paris-saclay.fr\/orchidsdoc\/index.php?rest_route=\/wp\/v2\/pages\/532\/revisions"}],"predecessor-version":[{"id":704,"href":"https:\/\/projects.lsv.ens-paris-saclay.fr\/orchidsdoc\/index.php?rest_route=\/wp\/v2\/pages\/532\/revisions\/704"}],"wp:attachment":[{"href":"https:\/\/projects.lsv.ens-paris-saclay.fr\/orchidsdoc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=532"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}