Search

GlobalSCAPE Knowledge Base

Adding or modifying objects in SAT's sendmail.aspx file

Karla Marsh
EFT Express (SMB) & Enterprise

THE INFORMATION IN THIS ARTICLE APPLIES TO:

  • EFT Server Enterprise versions 6.0-6.2
  • Secure Ad Hoc Transfer module versions 1.7-2.2

DISCUSSION

Most of the text boxes and buttons in the Secure Ad Hoc Transfer (SAT) sendmail form are pre-populated with blank text or default values; however, you can add or modify some object properties in the sendmail.aspx file. The properties that can be changed when the SAT page is loaded include From, To, CC, BCC, Subject, Body, Send me a copy, and Allow upload. After you install the SAT module, the sendmail.aspx file is installed in C:\Inetpub\wwwroot\EFTAdhoc.

The instructions below are "tweaks" not product features. There are no guarantees that it will work for your system, and the ability to add these tweaks could be removed from future versions. If you reinstall, upgrade, or repair the SAT module, these changes may need to be reapplied. If you save a copy of the modified sendmail.aspx file and attempt to use it on your upgraded version, it may not work due to changes in the new version.

When editing sendmail.aspx, you can introduce errors that cause SAT to no longer function. Before you modify the sendmail.aspx file, make a copy of it in case you need to go back to the original. If you "break" your sendmail.aspx file and did not make a copy of it before tweaking it, the only resolution is to reinstall the SAT module. No support or warranty is provided for these tweaks.

To add or modify text or tool tips on the sendmail.aspx page

  1. In C:\Inetpub\wwwroot\EFTAdhoc, right-click sendmail.aspx, then paste the copy in the same folder. This will create a file called Copy of sendmail.aspx. Save this unedited copy in case the changes that you make to sendmail.aspx do not provide the desired results.
  2. Make the desired changes per the instructions below:
    • From box—Locate the following text in sendmail.aspx:
    • <asp:TextBox ID="FromTextBox" SkinID="EmailAddresSkin" runat="server" AutoCompleteType="Email" TabIndex="5" Width="250px" />

      • Text: Add or modify the following attribute:
      • Text="user@company.com"

        For example:

        <asp:TextBox ID="FromTextBox" SkinID="EmailAddresSkin" runat="server" AutoCompleteType="Email" TabIndex="5" Width="250px" Text="user@company.com" />

      • Tooltip: Add or modify the following attribute:
      • ToolTip="please enter an email"

        For example:

        <asp:TextBox ID="FromTextBox" SkinID="EmailAddresSkin" runat="server" AutoCompleteType="Email" TabIndex="5" Width="250px" ToolTip="please enter an email"/>

      • Enable: Add or modify the following attribute:
      • Enabled="true"

        For example:

        <asp:TextBox ID="FromTextBox" SkinID="EmailAddresSkin" runat="server" AutoCompleteType="Email" TabIndex="5" Width="250px" Enabled="true" />

    • To box—Locate the following text in sendmail.aspx:
    • <uc3:EFTEmailTextBox ID="ToTextBox" runat="server" SkinID="EmailAddresSkin" TabIndex="6" Width="99%"/>

        EmailValues="user@company.com"

        For example:

        <uc3:EFTEmailTextBox ID="ToTextBox" runat="server" SkinID="EmailAddresSkin" TabIndex="6" Width="99%" EmailValues="user@company.com" />

    • Cc box—Locate the following text in sendmail.aspx
    • <uc3:EFTEmailTextBox ID="CcTextBox" runat="server" SkinID="EmailAddresSkin" TabIndex="7" Visible="False" Width="99%"/>

      • Text: Add or modify the following attribute:
      • EmailValues="user@company.com"

        For example:

        <uc3:EFTEmailTextBox ID="CcTextBox" runat="server" SkinID="EmailAddresSkin" TabIndex="7" Visible="False" Width="99%" EmailValues="user@company.com"/>

    • Bcc box—Locate the following text in sendmail.aspx
    • <uc3:EFTEmailTextBox ID="BccTextBox" runat="server" SkinID="EmailAddresSkin" TabIndex="8" Visible="False" Width="99%"/>

      • Text: Add or modify the following attribute:
      • EmailValues="user@company.com"

        For example:

        <uc3:EFTEmailTextBox ID="BccTextBox" runat="server" SkinID="EmailAddresSkin" TabIndex="8" Visible="False" Width="99%" EmailValues="user@company.com"/>

    • Subject box—Locate the following text in sendmail.aspx
    • <asp:TextBox ID="SubjectTextBox" runat="server" SkinID="EmailAddresSkin" TabIndex="9" Width="99%" />

      • Text: Add or modify the following attribute:
      • EmailValues="user@company.com"

        For example:

  3. <asp:TextBox ID="SubjectTextBox" runat="server" SkinID="EmailAddresSkin" TabIndex="9" Width="99%" Text="SAT notification:"/>

  4. Tooltip: Add or modify the following attribute:
  5. ToolTip="please enter a subject"

    For example:

    <asp:TextBox ID="SubjectTextBox" runat="server" SkinID="EmailAddresSkin" TabIndex="9" Width="99%" ToolTip =" please enter subject"/>

  6. Enable: Add or modify the following attribute:

  7. Enabled="true"

    For example:

    <asp:TextBox ID="SubjectTextBox" runat="server" SkinID="EmailAddresSkin" TabIndex="9" Width="99%" Enabled="true” />

  8. Body—Locate the following text in sendmail.aspx
  9. <asp:TextBox ID="NotesTextBox" CssClass="inputMessageBox" Width="100%" runat="server" TextMode="MultiLine" Height="100%" TabIndex="99" />

    • Text: Add or modify the following attribute:

    • Text="user@company.com"

      For example:

      <asp:TextBox ID="NotesTextBox" CssClass="inputMessageBox" Width="100%" runat="server" TextMode="MultiLine" Height="100%" TabIndex="99" Text="Notes" />

    • Tooltip: Add or modify the following attribute:

    • ToolTip="please enter any comments"

      For example:

      <asp:TextBox ID="NotesTextBox" CssClass="inputMessageBox" Width="100%" runat="server" TextMode="MultiLine" Height="100%" TabIndex="99" ToolTip="please enter an email" />

    • Enable: Add or modify the following attribute:

    • Enabled="true"

      For example:

      <asp:TextBox ID="NotesTextBox" CssClass="inputMessageBox" Width="100%" runat="server" TextMode="MultiLine" Height="100%"TabIndex="99" Enabled="true" />

  10. Send me a copy button—Locate the following text in sendmail.aspx
  11. <uc2:ToggleButton ID="SendmeCopyToggleButton" CssClass1="MenuItem" Checked="true" CssClass2="MenuItemSelected" TabIndex="100" runat="server" Text1="Send me a copy" Text2="Send me a copy" />

    • Text: Add or modify the following attribute:

    • Text2="user@company.com"

      For example:

      <uc2:ToggleButton ID="SendmeCopyToggleButton" CssClass1="MenuItem" Checked="true" CssClass2="MenuItemSelected" TabIndex="100" runat="server" Text1="Send me a copy" Text2="Get a Copy"/>

    • Tooltip: Add or modify the following attribute:

    • ToolTip="please enter any comments"

      For example:

      <uc2:ToggleButton ID="SendmeCopyToggleButton" CssClass1="MenuItem" Checked="true" CssClass2="MenuItemSelected" TabIndex="100" runat="server" Text1="Send me a copy" Text2="Send me a copy" ToolTip1="Send a copy of this e-mail to the sender" ToolTip2="Send a copy of this e-mail to the sender"/>

      (ToolTip1 appears when the button is not selected; ToolTip2 appears when the button is selected.)

    • Enable: Add or modify the following attribute:

    • Enabled="true"

      For example:

      <uc2:ToggleButton ID="SendmeCopyToggleButton" CssClass1="MenuItem" Checked="true" CssClass2="MenuItemSelected" TabIndex="100" runat="server" Text1="Send me a copy" Text2="Send me a copy" Enabled="true" />

  12. Allow Upload button—Locate the following text in sendmail.aspx
  13. <uc2:ToggleButton ID="AllowUploadsToggleButton" CssClass1="MenuItem" CssClass2="MenuItemSelected" TabIndex="101" runat="server" Text1="Allow Upload" Text2="Allow Upload" />

    • Text: Add or modify the following attribute:

    • Text2="user@company.com"

      For example:

      <uc2:ToggleButton ID="AllowUploadsToggleButton" CssClass1="MenuItem" CssClass2="MenuItemSelected" TabIndex="101" runat="server" Text1="Allow Upload" Text2="Grant Upload permissions"/>

    • Tooltip: Add or modify the following attribute:
    • ToolTip="please enter any comments"

      For example:

      <uc2:ToggleButton ID="AllowUploadsToggleButton" CssClass1="MenuItem" CssClass2="MenuItemSelected" TabIndex="101" runat="server" Text1="Allow Upload" Text2="Allow Upload" ToolTip1="Grant upload permission to recipient" ToolTip2="Grant upload permission to recipient"/>

      (ToolTip1 appears when the button is not selected; ToolTip2 appears when the button is selected.)

    • Enable: Add or modify the following attribute:
    • Enabled="true"

      For example:

      <uc2:ToggleButton ID="AllowUploadsToggleButton" CssClass1="MenuItem" CssClass2="MenuItemSelected" TabIndex="101" runat="server" Text1="Allow Upload" Text2="Allow Upload" Enabled="true"/>

  14. Reload the page to see your changes. If the page does load, review your changes for erroneous characters. Even using one "Smart quote" (or "curly quote") instead of straight quotes will cause the page not to load.

Details
Last Modified: 7 Years Ago
Last Modified By: GlobalSCAPE 5
Type: HOWTO
Article not rated yet.
Article has been viewed 10K times.
Options
Also In This Category
Tags