-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathJangoMail_API.aspx
More file actions
48 lines (40 loc) · 1.42 KB
/
JangoMail_API.aspx
File metadata and controls
48 lines (40 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
/*
JangoMail_API.aspx
For this example to work you must add the JangoMail API web reference to your web site.
You can do this by right clicking on your project in the solution explorer, then click on "Add Service Reference".
Under Address, enter http://api.jangomail.com/api.asmx?WSDL and click Go
Then change the namespace to JangoMail and click OK.
*/
protected void Page_Load(object sender, EventArgs e)
{
GetGroupList();
}
void GetGroupList()
{
try
{
// first create the JangoMail soap client object
JangoMail.JangoMailSoapClient j = new JangoMail.JangoMailSoapClient("JangoMailSoap");
// then call the getlist method and display the results in our result div
Result.InnerHtml = j.Groups_GetList_String("Your JangoMail/JangoSMTP Username", "Your JangoMail/JangoSMTP Password", "<br/>", " - ", "");
}
catch (Exception ex)
{
Response.Write(ex.Message);
}
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div id="Result" runat="server">
</div>
</form>
</body>
</html>