livebox:gmail

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revisionBoth sides next revision
livebox:gmail [2014/05/12 05:44] brettlivebox:gmail [2014/05/12 23:14] brett
Line 2: Line 2:
  
 The xap-mail daemon allows you to send an xAP message and have it redirected to a mailbox.   This is useful for monitoring and alerts. The xap-mail daemon allows you to send an xAP message and have it redirected to a mailbox.   This is useful for monitoring and alerts.
 +
 +{{:livebox:mail-tab.png?nolink|}}
  
 Configuration is via the GUI however manual configuration of the /etc/xap.d/xap-mail.ini file is supported.  A typical setup for gmail would look like this: Configuration is via the GUI however manual configuration of the /etc/xap.d/xap-mail.ini file is supported.  A typical setup for gmail would look like this:
 <code> <code>
 [mail] [mail]
 +enable=1
 server=smtp://smtp.gmail.com:587 server=smtp://smtp.gmail.com:587
-from=user@gmail.com+from=job.blogs@gmail.com
 fullname=Joe Blogs fullname=Joe Blogs
 password=mypassword password=mypassword
 </code> </code>
  
-To send am email construct an xAp packet of this form.+If you modify this file manually you'll need to restart the xap-mail daemon so it picks up these changes 
 +<code> 
 +/etc/init.d/xap restart mail 
 +</code> 
 + 
 +To send an email construct a xAP packet of this form.
 <code> <code>
 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
 } }
 </code> </code>
  
-When it successful sends the email it will send OK packet+You will get an mail.ok payload response on success and mail.error on failure.
 <code> <code>
 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:
 </code> </code>
  
-An error packet with a status code will be send otherwise.  The value of the error can be consulted at: http://curl.haxx.se/libcurl/c/libcurl-errors.html+The value of the error code in the response packet can be consulted at: http://curl.haxx.se/libcurl/c/libcurl-errors.html
  • livebox/gmail.txt
  • Last modified: 2014/06/12 11:24
  • by minerva9