Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Exchange
2000.active.directory
2000.admin
2000.announcements
2000.app.conversion
2000.applications
2000.clients
2000.clustering
2000.connectivity
2000.development
2000.documentation
2000.general
2000.information.store
2000.interop
2000.kms
2000.misc
2000.protocols
2000.realtime.collabo.
2000.setup
2000.transport
2000.win2000
admin
application.conversion
applications
clients
clustering
connectivity
design
development
misc
mobility
setup
tools
  
 
date: 2 Apr 2006 13:23:17 -0700,    group: microsoft.public.exchange2000.development        back       


send a fax using webdav   
i can send an email via webdav on an exchange server:

      Dim xmlReq As MSXML.XMLHTTPRequest
        Dim strText

        On Error GoTo ErrHandler
        ' Construct the text of the PUT request.
        strText = "From: " & strFrom & vbNewLine & _
           "To: " & strTo & vbNewLine & _
           "Subject: " & strSubject & vbNewLine & _
           "Date: " & Now & _
           "X-Mailer: test mailer" & vbNewLine & _
           "MIME-Version: 1.0" & vbNewLine & _
           "Content-Type: text/plain;" & vbNewLine & _
           "Charset = ""iso-8859-1""" & vbNewLine & _
           "Content-Transfer-Encoding: 7bit" & vbNewLine & _
           vbNewLine & _
           strBody

        ' Create the DAV PUT request.
        xmlReq = CreateObject("Microsoft.XMLHTTP")
        xmlReq.open("PUT", strSubURL, False, strUserName, strPassWord)
        If strText <> "" Then
            xmlReq.setRequestHeader("Content-Type", "message/rfc822")
            xmlReq.send(strText)
        End If

when i send to john.smith@hotmail.com i works, but

when i try to send a fax : [fax:+33458885699]
i receive an error from the mail server : this account is unknown

ps: with Outlook Web Access i can send the fax
date: 2 Apr 2006 13:23:17 -0700   author:   unknown

Re: send a fax using webdav   
Its sound like its something to do with your syntax one possible way you 
might want to look at to resolve this is create an email with a fax 
recipient via OWA and then save it to the drafts folder. Then using 
something like this 
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/e2k3/e2k3/_exch2k_getting_an_items_stream_http.asp 
to get the stream from the item in the drafts folder. You should then have 
the exact syntax for what the headers of the message should look like when 
you want to send a fax you should then be able to convert this into 
something that should work.

Cheers
Glen

 wrote in message 
news:1144009397.855543.241170@g10g2000cwb.googlegroups.com...
>i can send an email via webdav on an exchange server:
>
>      Dim xmlReq As MSXML.XMLHTTPRequest
>        Dim strText
>
>        On Error GoTo ErrHandler
>        ' Construct the text of the PUT request.
>        strText = "From: " & strFrom & vbNewLine & _
>           "To: " & strTo & vbNewLine & _
>           "Subject: " & strSubject & vbNewLine & _
>           "Date: " & Now & _
>           "X-Mailer: test mailer" & vbNewLine & _
>           "MIME-Version: 1.0" & vbNewLine & _
>           "Content-Type: text/plain;" & vbNewLine & _
>           "Charset = ""iso-8859-1""" & vbNewLine & _
>           "Content-Transfer-Encoding: 7bit" & vbNewLine & _
>           vbNewLine & _
>           strBody
>
>        ' Create the DAV PUT request.
>        xmlReq = CreateObject("Microsoft.XMLHTTP")
>        xmlReq.open("PUT", strSubURL, False, strUserName, strPassWord)
>        If strText <> "" Then
>            xmlReq.setRequestHeader("Content-Type", "message/rfc822")
>            xmlReq.send(strText)
>        End If
>
> when i send to john.smith@hotmail.com i works, but
>
> when i try to send a fax : [fax:+33458885699]
> i receive an error from the mail server : this account is unknown
>
> ps: with Outlook Web Access i can send the fax
>
date: Mon, 3 Apr 2006 09:12:43 +1000   author:   Glen Scales [MVP]

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us