This command sends emails to the email addresses you specify. You can also send an email and a photo to text message recipients.
EMAIL "to_address(es)", "from_address", "subject", "message_body", "host", "auto_send", "attach_chart"
to_address(es)
A valid email address must contain the '@' and '.' characters, and it must not contain any spaces. It can specify just the email address (such as "name@companyname.xxx" or "<name@companyname.xxx>") or a name and address (such as "firstname lastname <name@companyname.xxx>").
To specify multiple email addresses, use a comma (,) or a semicolon (;) to separate the addresses.
from_address
Valid options for this parameter will depend on the email program you use to send emails from GainSeeker, the security settings on your email server, and whether the EMAIL command is configured to auto-send email messages:
from_address |
email program: |
auto-send setting: |
explanation: |
valid email address |
works correctly for all email programs |
works correctly for both auto-send settings |
A valid email address must contain the '@' and '.' characters, and it must not contain any spaces. It can specify just the email address (such as "name@companyname.xxx" or "<name@companyname.xxx>") or a name and address (such as "firstname lastname <name@companyname.xxx>"). Depending on the security settings for your email server, it may be necessary to specify the from_address between brackets (< >), such as "<name@companyname.xxx>" or "firstname lastname <name@companyname.xxx>". Tip: If you have set up email addresses for the GainSeeker login names, then you can substitute the EADDRESS command for this parameter. |
blank string |
GainSeeker's built-in email program |
must be set to "N" |
This allows the user to enter the "From" email address before sending the message. |
some versions of Microsoft Outlook |
works correctly for both auto-send settings |
If the "From" email address is not specified, some versions of Microsoft Outlook will automatically enter the current user's email address in this field. |
|
name without an email address |
some versions of Microsoft Outlook |
works correctly for both auto-send settings |
Some versions of Microsoft Outlook will automatically replace this name with the current user's email address. |
subject
The text string you specify here will appear in the Subject portion of the email message.
message_body
The text string you specify here will provide the body of the email message.
host
Valid options for this parameter will depend on the email program you use to send emails from GainSeeker and the security settings on your email server:
host |
email program: |
explanation: |
name or IP address of your company's email server |
works correctly for all email programs |
Tip: If you have configured the Email server name or IP address, then you can substitute the ESERVER command for this parameter. |
blank string |
some versions of Microsoft Outlook |
Some versions of Microsoft Outlook will ignore this parameter and automatically use the email server for which Outlook is configured |
To send the email message automatically with no user intervention, set this parameter to "Y".
Tip: If the security settings for Microsoft Outlook force the user to click the Send button even when this option is used, you can download a free utility from http://www.mapilab.com/outlook/security/ that will allow GainSeeker emails to be sent automatically without user intervention.
If this parameter is set to any other value (such as "N" or a blank string), the email program you use will display the email message to the user, who can edit all parts of the email before sending it. To send the email, the user must click the Send button.
attach_chart
To include a .jpg of the chart for the current row of the template as an email attachment, set this parameter to "Y".
To attach a file to the email message, set this parameter to the file path and name of the file you want to attach. The file path and name must be at least four characters in length. If the file does not exist, an empty file with this name will be attached to the email.
Please Note: When you use this option to attach a file (filename.ext), the program will delete all files named filename.* from the specified file path after the email has been sent. If you need to keep these files, make a copy of the file (such as filename01.ext) and attach the copy.
To avoid attaching any files to this email, set this parameter to any string up to three characters long (such as "N" or a blank string).
EMAIL "to_address", "from_address", "subject", "message_body", "host", "auto_send", "attach_chart", "email_login_name", "email_login_password"
If your email system requires its own login name and password for authentication, you can use the additional email_login_name and email_login_password parameters to specify a valid login name and password for your email system.
Tip: If you have set up email login names and passwords for the GainSeeker login names, then you can substitute the ELOGIN_NAME and EPASSWORD commands for these parameters.
This command returns the number 0.
This command is commonly executed as Feedback when a real-time failure occurs during data entry.
Because of the third-party components used for sending email from GainSeeker, sending two emails in rapid succession sometimes results in the second email not being sent. To avoid this situation, you should insert a DELAY command between the two EMAIL commands to force a one- to three-second pause between the two emails.
To email charts that include default headings, add one of the following lines to the Convert.db file:
de_cht_hdrs=1 |
Headings are only displayed when you email, save or print the chart. They are not displayed in the chart windows on the data entry screen. |
de_cht_hdrs=2 |
Headings are displayed in the chart windows on the data entry screen and in charts that you email, save or print. |
If you add one of these lines to the Convert.db file, it will apply to all SPC data entry charts in all configurations.
See also: Configuring email settings for GainSeeker, email_timeout=
EMAIL "Engineering@companyname.com", "line1@companyname.com", "Urgent problem - Line 1", "Product out of control on Line 1", "mailserver.companyname.com", "Y", "Y"
EMAIL "Engineering@companyname.com", "<line1@companyname.com>", "Urgent problem - Line 1", "Product out of control on Line 1", "mailserver.companyname.com", "Y", "Y", "Line1", "Line1Password"
These examples send an email to Engineering from Line 1, with the current chart attached and no intervention from the user, via the email server named "mailserver.companyname.com".
The second example includes the email login name and password for authentication on the email server.
EMAIL "Engineering@companyname.com", EADDRESS, "Urgent problem - Line 1", "Product out of control on Line 1", ESERVER, "N", "Y", ELOGIN_NAME, EPASSWORD
This example sends an email to Engineering from Line 1, with the current chart attached, where the user can add or modify information before sending the email.
The "From" address, email server name, and email system login and password come from the email settings defined for whichever GainSeeker login name is logged in to GainSeeker and is running this template.
You can use your email account to send text messages to text message recipients.
Use the following formats* to send a text message to a recipient using your email account:
Cell phone provider** |
Format for text only (Replace "phonenumber" with recipient phone number, for example: 5745555111@ ) |
Format for text and photo (Replace "phonenumber" with recipient phone number, for example: 5745555111@ ) |
Alltel | phonenumber@message.alltel.com | phonenumber@alltel.com |
AT&T | phonenumber@txt.att.net | phonenumber@mms.att.net |
Boost Mobile | phonenumber@myboostmobile.com | phonenumber@myboostmobile.com |
Nextel | phonenumber@messaging.nextel.com | phonenumber@messaging.nextel.com |
Sprint | phonenumber@messaging.sprintpcs.com | phonenumber@pm.sprint.com |
T-Mobile | phonenumber@tmomail.net | phonenumber@tmomail.net |
U.S. Cellular | my phonenumber@email.uscc.net | phonenumber@mms.uscc.net |
Verizon Wireless | phonenumber@vtext.com | phonenumber@vzwpix.com |
Virgin Mobile | phonenumber@vmobl.com | phoenumber@vmobl.com |
*formats as of this writing. You may want to send a test email to text or contact your carrier for more information.
**standard text messaging rates from your carrier may apply