You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Hendrik <he...@vanderwatt.co.za> on 2006/03/30 21:43:19 UTC
Re: Could not send email with attachment to ms exchange server
Xiaobo Yang <xiaobo.yang <at> gmail.com> writes:
>
> Hi, I can send an email using Slide through MS exchange server but have
> problems to add attachment. I used the code below but always with status
> code 403 returned. I suppose attachment can be added to the message body.
> Any idea? Thanks in advanced.
>
> Xiaobo Yang
I am new to Slide. How do I connect to my exchange server with HTTPS? I have
tried the code below
org.apache.commons.httpclient.HttpsURL hrl = new
org.apache.commons.httpclient.HttpsURL(
"https://<server>/exchange/<user
alias>/Inbox");
NTCredentials ntc = new NTCredentials
("<username>", "<password>",
"<domain>", "CC");
WebdavResource wdr = new WebdavResource(hrl, ntc,
WebdavResource.ALL, DepthSupport.DEPTH_1);
But I always get an 440 error.
Any Ideas?
Thanks
Hendrik
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
Re: Could not send email with attachment to ms exchange server
Posted by Xiaobo Yang <xi...@gmail.com>.
Have a look at HttpClient SSL guide
http://jakarta.apache.org/commons/httpclient/sslguide.html.
Xiaobo
On 3/30/06, Hendrik <he...@vanderwatt.co.za> wrote:
>
> Xiaobo Yang <xiaobo.yang <at> gmail.com> writes:
>
> >
> > Hi, I can send an email using Slide through MS exchange server but have
> > problems to add attachment. I used the code below but always with status
> > code 403 returned. I suppose attachment can be added to the message
> body.
> > Any idea? Thanks in advanced.
> >
> > Xiaobo Yang
>
> I am new to Slide. How do I connect to my exchange server with HTTPS? I
> have
> tried the code below
>
> org.apache.commons.httpclient.HttpsURL hrl = new
> org.apache.commons.httpclient.HttpsURL(
> "https://<server>/exchange/<user
> alias>/Inbox");
> NTCredentials ntc = new NTCredentials
> ("<username>", "<password>",
> "<domain>", "CC");
> WebdavResource wdr = new WebdavResource(hrl, ntc,
> WebdavResource.ALL, DepthSupport.DEPTH_1);
>
> But I always get an 440 error.
>
> Any Ideas?
>
> Thanks
>
> Hendrik
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>
>