Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Internet Protocols Module User's Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

7.4 Closing the Mail Transfer Session

The dataClose() method in both the RWSmtpClient and RWSmtpAgent classes needs to be called at the end of each data (mail) transfer session. This is because the dataClose() method inserts the end-of-mail indicator—a period contained on a line by itself—before the data channel is closed.

Because a mail message can have a period alone on a line, the SMTP protocol requires that any line with a leading period be sent with two leading periods. You can use the Internet Basics global function rwAddPeriods() to add the necessary periods.

Example 25: Adding periods



Previous fileTop of DocumentContentsNo linkNext file

Copyright © Rogue Wave Software, Inc. All Rights Reserved.

The Rogue Wave name and logo, and SourcePro, are registered trademarks of Rogue Wave Software. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.