Emails

As of v2.2.6.0, Dub3 can process replies to Dub3-generated emails. For example, the Dub3 Forum module will email out an alert to each user subscribed to a topic when a message is posted. If an alert reciever replies to that email, their reply will be posted in the forum automatically. Your third party application can make use of this service too and process the Dub3-generated emails your customers are replying to.

This services only applies to emails sent to ws@adi.do. Dub3-generated emails which make use of this service set ws@adi.do as the reply-to address.

Emails will be returned by GetAll and GetAllUnread within 30 seconds.

GetAll

http://ws.adido.org.uk/emails.asmx/GetAll

Get all emails for the specified service.

Parameters

Name Type Description Example
Code String Unique identifier for email service UNIQUE-0001
MarkAsRead Booleon Choose to mark this email as read or unread true

Response

Name Type Description Example
Emails ArrayOfEmail Array of Email objects, comprising of ID, Body, DateTime - See XML Schema

Example

VB

Dim emails As New AdidoEmails.Emails
Dim arrayOfEmails As Email() = emails.GetAll("UNIQUE-0001","true")

C#

AdidoEmails.Emails emails = new AdidoEmails.Emails();
AdidoEmails.Email[] arrayOfEmails = emails.GetAll("UNIQUE-0001","true");

PHP

$wsdl="http://ws.adido.org.uk/emails.asmx?wsdl";
$client=new soapclient($wsdl, 'wsdl');
$param=array('Code'=>'UNIQUE-0001', 'MarkAsRead'=>'true');
echo $client->call('GetAll', $param);

HTTP GET

http://ws.adido.org.uk/emails.asmx/GetAll?Code=UNIQUE-0001&MarkAsRead=true

GetAllUnread

http://ws.adido.org.uk/emails.asmx/GetAllUnread

Get all unread emails for the specified service.

Parameters

Name Type Description Example
Code String Unique identifier for email service UNIQUE-0001
MarkAsRead Booleon Choose to mark this email as read or unread true

Response

Name Type Description Example
Emails ArrayOfEmail Array of Email objects, comprising of ID, Body, DateTime - See XML Schema

Example

VB

Dim emails As New AdidoEmails.Emails
Dim arrayOfEmails As Email() = emails.GetAllUnread("UNIQUE-0001","true")

C#

AdidoEmails.Emails emails = new AdidoEmails.Emails();
AdidoEmails.Email[] arrayOfEmails = emails.GetAllUnread("UNIQUE-0001","true");

PHP

$wsdl="http://ws.adido.org.uk/emails.asmx?wsdl";
$client=new soapclient($wsdl, 'wsdl');
$param=array('Code'=>'UNIQUE-0001', 'MarkAsRead'=>'true');
echo $client->call('GetAllUnread', $param);

HTTP GET

http://ws.adido.org.uk/emails.asmx/GetAllUnread?Code=UNIQUE-0001&MarkAsRead=true