Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
livebox:gmail [2014/05/12 05:44] – brett | livebox:gmail [2014/06/12 11:24] (current) – minerva9 | ||
---|---|---|---|
Line 2: | Line 2: | ||
The xap-mail daemon allows you to send an xAP message and have it redirected to a mailbox. | The xap-mail daemon allows you to send an xAP message and have it redirected to a mailbox. | ||
+ | |||
+ | {{: | ||
Configuration is via the GUI however manual configuration of the / | Configuration is via the GUI however manual configuration of the / | ||
< | < | ||
[mail] | [mail] | ||
+ | enable=1 | ||
server=smtp:// | server=smtp:// | ||
- | from=user@gmail.com | + | from=job.blogs@gmail.com |
fullname=Joe Blogs | fullname=Joe Blogs | ||
password=mypassword | password=mypassword | ||
</ | </ | ||
- | To send am email construct | + | If you modify this file manually you'll need to restart the xap-mail daemon so it picks up these changes |
+ | < | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | To send an email, construct | ||
< | < | ||
xap-header | xap-header | ||
{ | { | ||
- | target=dbzoo.wombat.Mail | + | v=12 |
+ | hop=1 | ||
+ | uid=FF00D800 | ||
+ | source=dbzoo.livebox.test | ||
+ | target=dbzoo.livebox.Mail | ||
class=email | class=email | ||
} | } | ||
message | message | ||
{ | { | ||
- | to=brett@dbzoo.com | + | to=mary.little@gmail.com |
- | subject=Email test | + | subject=How is your lamb? |
- | text=From wombat | + | text=I'll be around for dinner tonight at 6pm |
} | } | ||
</ | </ | ||
- | When it successful sends the email it will send a OK packet | + | You will get an mail.ok payload response on success and a mail.error on failure. |
< | < | ||
xap-header | xap-header | ||
{ | { | ||
- | class=mail | + | v=12 |
- | source=dbzoo.wombat.Mail | + | hop=1 |
+ | uid=FF00E100 | ||
+ | class=email | ||
+ | source=dbzoo.livebox.Mail | ||
} | } | ||
mail.ok | mail.ok | ||
Line 40: | Line 55: | ||
</ | </ | ||
- | An error packet with a status code will be send otherwise. | + | The value of the error code in the response packet |