Line | |
---|
1 | <?xml version="1.0"?>
|
---|
2 |
|
---|
3 | <project name="mail-test" basedir="." default="test1">
|
---|
4 |
|
---|
5 | <target name="test1">
|
---|
6 | <!-- this test is supposed to bring a build exception because user and password is not allowed with plain encoding -->
|
---|
7 | <mail host="localhost" port="25" from="[email protected]" to="[email protected]" subject="hello" encoding="plain" user="joe" password="secret">
|
---|
8 | <message>
|
---|
9 | Hi Laura, how are you doing ?
|
---|
10 | </message>
|
---|
11 | </mail>
|
---|
12 | </target>
|
---|
13 | <target name="test2">
|
---|
14 | <!-- this test is supposed to bring a build exception because SSL is not allowed with plain encoding -->
|
---|
15 | <mail host="localhost" port="465" from="[email protected]" to="[email protected]" subject="hello" encoding="plain" ssl="true">
|
---|
16 | <message>
|
---|
17 | Hi Laura, how are you doing ?
|
---|
18 | </message>
|
---|
19 | </mail>
|
---|
20 | </target>
|
---|
21 |
|
---|
22 |
|
---|
23 |
|
---|
24 | </project>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.