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
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 >