Mark Breitner wrote:
I think you misunderstood me.
Yes, after reading your explanaition I see that I did.
It�s not about sending emails by webdav, it�s about connecting by webdav to
exchange and then sending an email.
Then the Slide WebDAV-client library should be able to help you.
JavaDoc for the API is available here:
http://jakarta.apache.org/slide/clientjavadoc/index.html
Getting-started hint from the list archives:
http://mail-archives.eu.apache.org/mod_mbox/jakarta-slide-user/200210.mbox/[EMAIL
PROTECTED]
Code-snippet to get an idea of where to start
(extracts content from a WebDAV resource, meta-code - not complete):
HttpURL url = new HttpURL(remoteUrl);
InputStream result = null;
InputStream webdavStream = null;
try {
Credentials cred = null;
if (user != null) {
cred = new UsernamePasswordCredentials(user, password);
}
WebdavResource remoteResource = new WebdavResource(url, cred,
WebdavResource.NOACTION, DepthSupport.DEPTH_0);
webdavStream = remoteResource.getMethodData();
if (webdavStream != null) {
result = new BufferedInputStream(webdavStream, HTTP_CHUNK_SIZE);
}
} catch (HttpException httpe) {
// handle HttpException
} catch (IOException ioe) {
// handle IOException
} finally {
if (result == null && webdavStream != null) {
try {
webdavStream.close();
} catch (IOException e) {
// handle IOException
}
}
// TODO: check API if removeResource.close() kills result stream,
// if not it should probably be called here
I know I have to extract some kind of mail submission URI (typical
complicated ms stuff ;) ) to use to send the email.
This sound MS Exchange specific...
And I think I got this URi ... but I don�t know how to use it to send
emails.
OK, then try to connect to the URI with the Slide WebDAV client.
The exact WebDAV-methods used to send the mails is also Exchange-specific
and you will have to try Microsoft resources for more info on that.
Regards,
Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]