List Info

Thread: Could not send email with attachment to ms exchange server




Could not send email with attachment to ms exchange server
user name
2006-03-30 19:43:19
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-unsubscribejakarta.apache.org
For additional commands, e-mail: slide-user-helpjakarta.apache.org

Could not send email with attachment to ms exchange server
user name
2006-03-31 14:47:55
Have a look at HttpClient SSL guide
http://jakarta.apache.org/commons/httpclient/sslguide
.html.

Xiaobo

On 3/30/06, Hendrik <hendrikvanderwatt.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-unsubscribejakarta.apache.org
> For additional commands, e-mail: slide-user-helpjakarta.apache.org
>
>
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )