Microsoft KB Archive/301109

= How to Programmatically Send a Fax in SBS =

Article ID: 301109

Article Last Modified on 10/30/2006

-

APPLIES TO


 * Microsoft Small Business Server 2000 Standard Edition
 * Microsoft BackOffice Server 4.5

-



This article was previously published under Q301109



SUMMARY
This article describes the Microsoft Visual Basic for Applications (VBA) code that you can use to configure Small Business Server (SBS) 4.5 and SBS 2000 to send faxes by using the Microsoft Shared Fax Client component.



MORE INFORMATION
To programmatically send a fax by using Shared Fax Client, you can use the Microsoft Outlook programming model. The code that you use to configure SBS to send a fax by using Shared Fax Client is similar to the VBA code that you use to configure Outlook to send an e-mail message. This code is almost the same except for the format of the &quot;To&quot; address. The &quot;To&quot; address must be in the following format, where  is the phone number that you want to dial:

[fax: ]

The following code is an example of the code that you can use to configure SBS to send fax by using Shared Fax Client: Sub SendSBSFax Dim myOLApp As New Outlook.Application Dim myOLItem As Outlook.MailItem Set myOLItem = myOLApp.CreateItem(olMailItem)

With myOLItem .To = &quot;[fax: 555 111-2222]&quot; .Subject = &quot;Fax Subject&quot; .Body = &quot;This is a sample fax.&quot; End With myOLItem.Send

'cleanup set myOlAPP = Nothing set myOlItem = Nothing

End Sub

