Assembly: mindtouch.dream
Class: MindTouch.Dream.Services.EmailService
SID: sid://mindtouch.com/2009/01/dream/email
The Email Service is a simple interface for allowing other services to send smtp email.
| Verb:Suffix | Description |
| POST:message | Send an email message |
| PUT:configuration/{configuration} | Register custom smtp server configuration |
| DELETE:configuration/{configuration} | De-register custom smtp server configuration |
<smtp>
<!-- defaults to localhost -->
<smtp-host>...</smtp-host>
<!-- defaults to standard smtp for plain or ssl communiction -->
<smtp-port>...</smtp-port>
<!-- skips smtp authentication if either is missing -->
<smtp-auth-user>...</smtp-auth-user>
<smtp-auth-password>...</smtp-auth-password>
<!-- use ssl to talk to smtp server -->
<use-ssl>true|false</use-ssl>
</smtp>
<email configuration="{optional configuration key}">
<!-- an email document can optionally inject headers into the message to be sent -->
<headers>
<header>
<name>...</name>
<value>...</value>
</header>
...
</headers>
<subject>...</subject>
<from>...</from>
<!-- one or more recipient email addresses -->
<to>...</to>
...
<!-- there can be up to two bodies, one the for a plain text body and the other for an html body -->
<body html="(true|false)">
...
</body>
...
</email>
Send an email via the configured Smtp server
The body is assumed to be an Xml document conforming to the above email specification
| Response | Response Body | Description |
| Ok (200) | none | operation completed successfully and a new event was created |
| Bad Request (400) | none | request could not be completed, because of invalid data in the request |
| Unauthorized (401) | none | request could not be completed, because of invalid or missing authorization headers |
None
Register custom smtp server configuration
The body is assumed to be an Xml document conforming to the config specification
| Response | Response Body | Description |
| Ok (200) | none | operation completed successfully and a new event was created |
| Bad Request (400) | none | request could not be completed, because of invalid data in the request |
| Unauthorized (401) | none | request could not be completed, because of invalid or missing authorization headers |
None
De-register custom smtp server configuration
| Response | Response Body | Description |
| Ok (200) | none | operation completed successfully and a new event was created |
| Bad Request (400) | none | request could not be completed, because of invalid data in the request |
| Unauthorized (401) | none | request could not be completed, because of invalid or missing authorization headers |
None
| Images 0 | ||
|---|---|---|
| No images to display in the gallery. |
Copyright © 2011 MindTouch, Inc. Powered by