diff options
-rw-r--r-- | dev-java/ant-javamail/README | 2 | ||||
-rw-r--r-- | dev-java/ant-javamail/attachement.txt | 1 | ||||
-rw-r--r-- | dev-java/ant-javamail/build.xml | 17 |
3 files changed, 20 insertions, 0 deletions
diff --git a/dev-java/ant-javamail/README b/dev-java/ant-javamail/README new file mode 100644 index 0000000..afe5a24 --- /dev/null +++ b/dev-java/ant-javamail/README @@ -0,0 +1,2 @@ +Test like this: +ant -Dsmtmp=your.smtp.host -Dyou@somehost.com diff --git a/dev-java/ant-javamail/attachement.txt b/dev-java/ant-javamail/attachement.txt new file mode 100644 index 0000000..d93c182 --- /dev/null +++ b/dev-java/ant-javamail/attachement.txt @@ -0,0 +1 @@ +attachement diff --git a/dev-java/ant-javamail/build.xml b/dev-java/ant-javamail/build.xml new file mode 100644 index 0000000..3dfaff1 --- /dev/null +++ b/dev-java/ant-javamail/build.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" ?> +<project default="mail"> + <target name="mail"> + <echo message="Using server: ${smtp}" /> + <echo message="Using mail address: ${mail}" /> + <mail mailhost="${smtp}" subject="Test message"> + <from address="${mail}"/> + <replyto address="${mail}"/> + <to address="${mail}"/> + <message>Testing mail target</message> + <!-- use all *.txt files as attachements --> + <fileset dir="."> + <include name="**/*.txt"/> + </fileset> + </mail> + </target> +</project> |