This is a global setting for all clusters. You need to be authenticated to change this value. In response to this request, Couchbase Server sends a test email with the current configurations. This request uses the same parameters used in setting alerts and additionally an email subject and body.
shell> curl -i -u Administrator:letmein http://localhost:8091/settings/alerts/sendTestEmail \ -d 'subject=Test+email+from+Couchbase& \ body=This+email+was+sent+to+you+to+test+the+email+alert+email+server+settings.&enabled=true& \ recipients=vmx%40localhost&sender=couchbase%40localhost& \ emailUser=&emailPass=&emailHost=localhost&emailPort=25&emailEncrypt=false& \ alerts=auto_failover_node%2Cauto_failover_maximum_reached%2Cauto_failover_other_nodes_down%2Cauto_failover_cluster_too_small'
POST /settings/alerts/sendTestEmail HTTP/1.1 Host: localhost:8091 Content-Type: application/x-www-form-urlencoded Authorization: Basic YWRtaW46YWRtaW4=
200 OK
Possible errrors include:
400 Bad Request: Unknown macro: {"error"} 401 Unauthorized This endpoint isn't available yet.