MORE INFORMATION
Refer to the Microsoft SMTP Service documentation if:
- Verifying the Host and SmartHost settings does not resolve the problem.
- You need more information to verify these settings.
- You require additional information on the installation and configuration of the SMTP Server component.
To view the documentation do one of the following.
With IIS 4.0 on Windows NT 4.0
The documentation is located on the
SMTP menu in Windows NT. Click
Start, point to
Programs, point to
Windows NT 4.0 Option Pack, point to
Microsoft Internet Information Server, and then click
Microsoft SMTP Service. There you can choose from SMTP Service Documentation and SMTP Service Readme documents. Click once to view the document in your browser.
With IIS on Windows 2000
The SMTP documentation is incorporated in Windows 2000 Help. For the latest information, please visit the following Microsoft Web site and search on
SMTP:
Knowledge Base
If you are experiencing an SMTP error or just need more information on SMTP, you can perform a search on the Microsoft Knowledge Base, which is located at the following Microsoft Web address:
SMTP Support Options
If you require assistance, you can refer to Microsoft Support Online or you can contact a Microsoft Support Professional. To view support options, please visit the following Microsoft Web site:
Steps to Reproduce Behavior
- On an Access Workflow Designer Server, install the Access Workflow Designer Document Library Sample Template form the following Microsoft Web site:
-
Because IIS is required for the Workflow Designer, SMTP is probably loaded. You can check this by seeing if the manager is installed (See the "Resolution" section).
-
Make sure the SMTP Delivery settings have nothing for Fully Qualified Domain Name or Smart Host.
-
On the Programs menu, click Microsoft Office 2000 Developer, Access Workflow Designer, and Team Solutions Manager.
-
Click Refresh, wait, and then click the User Information tab and double-click a blank line in the grid. A user Details dialog box is displayed.
-
You can enter test information for the new user, except for the e-mail name, which must be a valid internet mail address.
-
After adding the user, close the Team Solutions Manager.
-
In Internet Explorer, browse to <your machine name>/documentlibrarysample/default.htm.
-
Click Submit a New Document.
-
Fill out the form. In the URL box, you can type a UNC path to a word document on your computer. You can leave Owner blank.
-
Click Save, and then click Start a New Review.
-
On the Starting a New Document Review page, pick the new user from the list of reviewers; then, click Add and Finish.
Note that even though the next page says that the review has been started, the e-mail recipient never gets the e-mail message.
The SMTP service is a component of Internet Information Server and is designed to allow for the easy transmission of Internet Mail. The Document Library Sample contains VBScript that uses the CDO for NTS interface to send mail messages via SMTP. CDO for NTS stands for Collaboration Data Objects for Windows NT Server.
If you have a solution based on this template, you can perform the following steps to view the VBScript function that sends mail through SMTP.
-
Open the Access Project DocumentLibrarySample.adp.
-
On the Tools menu, click Access Workflow Designer.
-
In the Workflow Designer, in the Object List, click the Workflow process folder.
-
Click either the ReviewItemsWork flow process or the ReviewsWorkFlow process. They both contain the same function.
-
Click the Shared Script tab, and in the Go to procedure list, click ModSendMail. Note that the following code is displayed:
------------------------------------------------------------------------
'// Name : modSendMail
'// Purpose : SEND MAIL VIA SMTP
'//
'// Prereq : Assumes that you have a smarthost assigned in the SMTP
'// Settings to route
'// : mail via exchange.
'// Inputs : strUser - account name of recipient
'// : strFrom - name to use for sending mail
'// : strSubject - Subject of mail
'// : strBody - Body of mail
'//
'// Return : True if it succeeds, Otherwise False
'// -------------------------------------------------------------------------
Function modSendMail(strUser, strFrom, strSubject, strBody, nPriority)
'// declarations
Dim objmail, strTo
'// assume failure
modSendMail = False
On Error Resume Next
Set rsUser = Session.Userlist("SAMAccountName = '" & strUser & "'")
If Not rsUser.EOF Then
strTo = rsUser.Fields("Mail").Value
If strTo <> "" Then
Set objmail = CreateObject("CDONTS.NewMail")
objMail.BodyFormat = 0 'html
objMail.MailFormat = 0 'mime
objMail.To = strTo
objMail.From = strFrom
objMail.Subject = strSubject
objMail.Body = strBody
objMail.Importance = nPriority
objmail.Send
'Logger.PrintString "modSendMail: From '" & _
strFrom & "', To '" & strTo & "', Body '" & _
strBody & "', Importance " & nPriority & vbCrLf
'// check for fail
If Err Then
LogError "modSendMail: Error '" & Err.Description _
& "' sending mail"
Exit Function
End If
modSendMail = True
Else
LogError "modSendMail: No address for user '" & strUser & "'"
End If
Else
LogError "modSendMail: No record for user '" & strUser & "'"
End If
End Function
More information about CDO for NTS
For Documentation on CDO for NTS, please visit the following Microsoft Web site:
You can also visit
http://mspress.microsoft.com to search for books on CDO.
Overview of the SMTP Service
When the SMTP service is installed, it creates a directory called MailRoot in your default wwwroot folder. MailRoot has a number of subdirectories that are used for the processing of SMTP Mail. The names and purposes of these subdirectories are as follows.
Mailroot\Pickup
The Pickup directory is used as the primary location for outgoing mail messages. Whenever a mail message is placed in this directory, the SMTP service will pick up the message and process it. This means that you can copy a text file into this directory and, if it is in the correct format, it will be sent as a mail message.
Mailroot\Queue
After a message has been retrieved from the Pickup
directory, SMTP attempts to send it immediately. If the message cannot be sent immediately, it is placed in the Queue directory and the SMTP service attempts to resend the message at regular intervals. The number and frequency of retries can be configured on the
Delivery tab of the property sheet for the SMTP site in the Microsoft Management Console.
The Queue directory also contains transcript files. These are text files and have either an LTR (local transcript) or RTR (remote transcript) extension and can be used to determine the reason for the non-delivery of a particular mail message.
Mailroot\BadMail
If a message cannot be delivered (and the maximum number of retries has been exceeded) and the message cannot be returned to the sender as undeliverable, it is placed in the BadMail directory. After installation, the location of the BadMail directory can be changed on the
Messages tab of the property sheet for the SMTP site in the Microsoft Management Console.
Mailroot\Drop
This is the location for incoming messages for all of the local domains that make up a particular site. Note that there is only a single Drop
directory for all users on all local domains. The SMTP service within IIS 4.0 has no concept of local mailboxes, and therefore delivery of incoming mail messages to individual mailboxes is not supported. However, inbound messages in the Drop directory can be read from an Active Server Page.