{"id":26066,"date":"2010-01-12T18:14:41","date_gmt":"2010-01-12T22:14:41","guid":{"rendered":"http:\/\/www.bu.edu\/tech\/?page_id=26066"},"modified":"2013-04-11T13:55:07","modified_gmt":"2013-04-11T17:55:07","slug":"send-email","status":"publish","type":"page","link":"https:\/\/www.bu.edu\/tech\/services\/cccs\/websites\/www\/non-wordpress\/marconi\/how-to\/send-email\/","title":{"rendered":"How to Send an Email"},"content":{"rendered":"<p>On this page:<\/p>\n<ul>\n<li><a href=\"#email\">Send an Email: All Form Data<\/a><\/li>\n<li><a href=\"#email-subject\">Send an Email: All Form Data and Email Subject<\/a><\/li>\n<li><a href=\"#email-subject-reply\">Send an Email: All Form Data, Email Subject, and Reply-To<\/a><\/li>\n<li><a href=\"#email-subject-reply-template\">Send an Email: All Form Data, Email Subject, Reply-To, and Template<\/a><\/li>\n<li><a href=\"#pgp\">Send an Email with PGP Encryption<\/a><\/li>\n<\/ul>\n<p><a name=\"email\"><\/a><\/p>\n<h3>Send an Email: All Form Data<\/h3>\n<ol>\n<li>Add this line of code to your Telegraph configuration file:<br \/>\n<code>&lt;directive action=\"email\" to=\"<strong>myemailaddress<\/strong>\"\/&gt;<\/code><\/li>\n<li>Replace <strong>myemailaddress<\/strong> with the email address to which the email will be sent.\n<ul>\n<li> Example:<br \/>\n<code>&lt;directive action=\"email\" to=\"fred.flintstone@example.com\" \/&gt;<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><a name=\"email-subject\"><\/a><\/p>\n<h3>Send an Email with a Subject<\/h3>\n<ol>\n<li>Add this line of code to your Telegraph configuration file:<br \/>\n<code>&lt;directive action=\"email\" to=\"<strong>myemailaddress<\/strong>\" subject=\"<strong>mysubject<\/strong>\"\/&gt;<\/code><\/li>\n<li>Replace <strong>myemailaddress<\/strong> with the email address to which the email will be sent and <strong>mysubject<\/strong> with the email&#8217;s subject.\n<ul>\n<li>Example:<br \/>\n<code>&lt;directive action=\"email\" to=\"fred.flintstone@example.com\" subject=\"Rock Quarry Receivables\" \/&gt;<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><a name=\"email-subject-reply\"><\/a><\/p>\n<h3>Send an Email with a Subject and a Reply-to\/From Address<\/h3>\n<ol>\n<li>Add this line of code to your Telegraph configuration file:<br \/>\n<code>&lt;directive action=\"email\" to=\"<strong>myemailaddress<\/strong>\" subject=\"<strong>mysubject<\/strong>\" from=\"<strong>myfromaddress<\/strong>\" \/&gt;<\/code><\/li>\n<li>Replace <strong>myemailaddress<\/strong> with the email address to which the email will be sent, <strong>mysubject<\/strong> with the email&#8217;s subject, and <strong>myfromaddress<\/strong> with the reply-to\/from address.\n<ul>\n<li>Example:<br \/>\n<code>&lt;directive action=\"email\" to=\"fred.flintstone@example.com\" subject=\"Rock Quarry Receivables\" from=\"barney@rubble.com\" \/&gt;<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><a name=\"email-subject-reply-template\"><\/a><\/p>\n<h3>Send an Email with a Subject, a Reply-to\/From Address, and an Email Template<\/h3>\n<ol>\n<li>Add this line of code to your Telegraph configuration file:<br \/>\n<code>&lt;directive action=\"email\" to=\"<strong>myemailaddress\"<span style=\"font-weight: normal;\"> subject=\"<\/span><span>mysubject<span style=\"font-weight: normal;\">\" from=\"<\/span>myfromaddress<span style=\"font-weight: normal;\">\" template=\"<\/span><span style=\"font-weight: normal;\">myemailtemplate.txt<\/span><span style=\"font-weight: normal;\">\" \/&gt;<\/span><em><span style=\"font-weight: normal;\"><br \/>\n<span style=\"font-style: normal;\"> <\/span><\/span><\/em><\/span><\/strong><\/code><\/li>\n<li>Replace <strong>myemailaddress <\/strong>with the email address to which the email will be sent, <strong>mysubject<\/strong> with the email&#8217;s subject, <strong>myfromaddress<\/strong> with the reply-to\/from address, and <strong>myemailtemplate.txt<\/strong> with the file name and path relative to your form location.\n<ul>\n<li>Example:<br \/>\n<code>&lt;directive action=\"email\" to=\"fred.flintstone@example.com\" subject=\"Rock Quarry Receivables\" from=\"barney@rubble.com\" template=\"templates\/receivables.txt\" \/&gt;<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><a name=\"pgp\"><\/a><\/p>\n<h3>Send an Email with PGP Encryption<\/h3>\n<ol>\n<li>Add this line of code to your Telegraph configuration file:<br \/>\n<code>&lt;directive action=\"encrypt\" <strong>insert-other-parameters-here<\/strong> \/&gt;<\/code><br \/>\nYou can use any of the previously-described field parameters with the <strong>encrypt<\/strong> action. The only difference is the use of <strong>encrypt<\/strong> in place of <strong>email<\/strong>.<\/p>\n<ul>\n<li>Example:<br \/>\n<code>&lt;directive action=\"encrypt\" to=\"fred@flintstone.com\" subject=\"Rock Quarry Receivables\" from=\"barney@rubble.com\" template=\"templates\/receivables.txt\" \/&gt;<\/code><\/li>\n<\/ul>\n<p>Note that the <strong>to<\/strong> address must have a registered public PGP key for PGP encryption to work. For online credit card transactions, we strongly suggest that you use the <a href=\"https:\/\/www.bu.edu\/tech\/services\/cccs\/websites\/www\/non-wordpress\/telegraph\/credit-cards\/\">Cashier&#8217;s Office Credit Card System<\/a>.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>On this page: Send an Email: All Form Data Send an Email: All Form Data and Email Subject Send an Email: All Form Data, Email Subject, and Reply-To Send an Email: All Form Data, Email Subject, Reply-To, and Template Send an Email with PGP Encryption Send an Email: All Form Data Add this line of&#8230;<\/p>\n","protected":false},"author":1282,"featured_media":0,"parent":26082,"menu_order":1,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/pages\/26066"}],"collection":[{"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/users\/1282"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/comments?post=26066"}],"version-history":[{"count":39,"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/pages\/26066\/revisions"}],"predecessor-version":[{"id":26109,"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/pages\/26066\/revisions\/26109"}],"up":[{"embeddable":true,"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/pages\/26082"}],"wp:attachment":[{"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/media?parent=26066"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}