Sending Electronic Mail From TangoMail ActionThe Mail action sends out electronic mail using the Simple Mail Transport Protocol (SMTP). SMTP is the main protocol used to send mail on the Internet. The Mail action lets you build features into Tango application files so you can send e-mail messages. For example, you might send a mail message to a list of recipients notifying them of a change to a database or that a particular file has been executed. Many types of information gathering are possible. For example, you can use mail for inventory management, shipping and receiving, data compilation, generating sales leads, or any function that can use data derived from activity in a database. In fact, you can send a mail message about any subject to anyone with an e-mail address. You simply add the Mail action to an application file, prepare your message, and execute the file to send the message. This chapter covers the following topics: ![]() Setting Up a Mail Action |
|
![]() |
When you drag the Mail action into your application file, the Mail action editing window appears. |
For more information, see "mailDefaultFrom"
in the Meta Tags and Configuration
Variables manual.
|
All of the mail fields support the use of Tango meta tags, which are evaluated at the time mail is sent. When the Mail action is executed, Tango Server connects to the SMTP server. Tango then sends the message to all the specified recipients. The SMTP server is defined by the configuration variables mailServer and mailPort. These variables can be changed by using the config.taf application file. They are also stored in the Tango Server configuration file (t3server.ini) as MAILSERVER and MAILPORT. The result of the action is a one-column array of the messages received from the SMTP server. Use <@COL 1> inside a <@ROWS> block in the Mail action's Results HTML to display these results. The result array is also stored automatically in the local variable resultSet. ![]() Disabling Mail |
Mail actions are enabled in Tango by default. If you want to disable (or enable) this feature, you can do so by changing the following option in the config.taf application file Feature Switches screen: Check or uncheck the check box beside the option. ![]() Getting Additional Mail FunctionalityEarlier versions of Tango did not have a mail action built in. Windows Tango users sent out mail by calling an External action. This was called TeMail. TeMail is still available in Tango, and it has a few functions not yet built into the Mail action, such as MIME (Multipurpose Internet Mail Extensions) encoding, and the ability to send mail with HTML formatting. TeMail is not included in the installer, but it is included on the Tango CD-ROM. TeMail documentation is only available in electronic form in the Windows Help file installed with TeMail. |
Copyright © 1998, Pervasive Software Inc. All rights reserved.