Changeset 32653 in project


Ignore:
Timestamp:
08/05/15 00:56:58 (5 years ago)
Author:
svnwiki
Message:

Anonymous wiki edit for IP [127.0.0.1]: Add documentation for newly supported file attachments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/send-grid

    r26051 r32653  
    4141
    4242==== {{send-mail}}
    43 <procedure>(send-mail #!key (subject #f) (text #f) (html #f) (from #f) (from-name #f) (to #f) (reply-to #f) (api-user (api-user)) (api-key (api-key)))</procedure>
     43<procedure>(send-mail #!key (subject #f) (text #f) (html #f) (from #f) (from-name #f) (to #f) (reply-to #f) (api-user (api-user)) (api-key (api-key)) files)</procedure>
    4444
    4545Takes all the required arguments, passes a request on to SendGrid, and returns the SendGrid response in list form. {{api-user}} and {{api-key}} are optional if you specified them as parameters.
    4646
    4747Only {{html}} or {{text}} needs to be specified. If {{html}} is specified, then the resulting email will be in HTML format. If both {{html}} and {{text}} are specified, then the resulting email will only include the contents of {{html}}.
     48
     49{{files}} is optional and is a list of alists containing file attachments. The alist for each file must contain the key {{filename}} -- a string, {{filepath}} -- a string, and {{content-type}} -- a symbol. Example:
     50
     51<enscript highlight=scheme>
     52((filepath "/foo.txt") (filename "foo.txt") (content-type text/plain))
     53</enscript>
    4854
    4955
     
    6167=== Version History
    6268
     69==== Version 2.0.1
     70Add support for file attachments. (Thanks to Sven Hartrumpf)
    6371==== Version 2
    6472Fix some install bugs.
Note: See TracChangeset for help on using the changeset viewer.