SMTP/400 is ready for V6R1/V7R1 of i5/OS, starting with version 1.61

General email performance note: SMTPBUFFER data area can be set from the default value of 512 to some value such as 4096 or 10000 to improve SMTP throughput.

1.72.0

2015-12-18

  • The minimum OS/400 compatibility is now V6R1

1.71

2011-12-1

  • Fixed problem with apostrophes in email addresses - they are now allowed.
  • Fixed problem that placing a $ or = in Subject or Msg caused the rest of the text to be dropped.
  • Changed the SMTPSEND2 command so that the To: address is not required. At least one of To:, CC:, or BCC: is required.
  • Fixed problem that the password was not always passed to the program that compressed attachments.
  • Added Set Use 7 Zip Setting - SMTP7ZIP (option 9) to Splitter menu.
  • Changed SMTPFAXFB command to use SMTPSENDJ command instead of SMTPSEND.
NOTE: Be sure that the SMTPJAVAEN command has been run, to restore the Java runtime files.

1.70

2010-12-21

  • Added ability to set JAVA_HOME directory to determine which Java JVM to use. This affects the ability to use the faster 32-Bit JVM on V5R4 and above. At V7R1,the 32-Bit JVM becomes the default.
    • This data area should be blank at V5R3 and before.
    • This data area should be set at V5R4 and above. Default value for 32-Bit JVM is /QOpenSys/QIBM/ProdData/JavaVM/jdk50/32bit.

1.69

2010-05-24

  • Added 7Zip support for compression, if enabled.
    • Created SMTPZIP3 command to interface with 7Zip compression product.
    • Created SMTP7ZIP data area to control using 7Zip compression, which supports passwords. If set to *YES, we will attempt to use 7Zip when zipping a file for mailing.
NOTE: Requires RJS7ZIP library and 7Zip installed. Also requires V5R3 and above for 7Zip to work.

1.68

2009-11-26

  • Added SMTPFAXFB CL command for faxing via FaxBack fax servers.
  • Added FAXDOMAIN data area which must be set to the FaxBack server SMTP domain name.
  • FAXHOST data area must point to the IP address or host name for the FaxBack fax server.
  • Added SMTPFAXKY data area which will hold the next fax key info which will be placed into the subject line for each outbound fax. The FaxID can be extracted from fax completion email messages using SMTP/400 if user desires to create a log of outbound and inbound fax ID's.

Setting up for Faxback server usage.

  1. Install Faxback SMTP gateway on Windows server and assign it a domain name such as fax.rjssoftware.com.
  2. Use CHGDTAARA to set the FAXDOMAIN data area value to match the FaxBack SMTP domain from 1.)
  3. Create a Host entry via GO CFGTCP, option 10. Call it RJS_FAXBACK. Point it to the IP address of the FaxBack SMTP server.
  4. Use CHGDTAARA to set FAXHOST data area to RJS_FAXBACK. You should be able to ping the FaxBack server by typing PING RJS_FAXBACK from the iSeries command line.
  5. Use SMTPFAXFB command to send a test fax with ot without a file attachment.

1.67

2009-02-19

Added copy OF EMADDR and SMTPLOG00 to the upgrade program.

1.66

2009-02-19

Added SMTPDBUSR command to allow users to store Java database user and password for exporting to XLS format. On V5R1 and V6R1 *NONE/*NONE does not seem to work for user and password for JDBC connectivity. If SMTPDBUSR is run and user/password is set to blank, *NONE will be user for Java DB user/password.

Example to set database use and password: 
SMTPDBUSR OPTION(*SET) DBUSER(USERID) DBPASS(PASSWORD)   
 
Example to reset database use and password: 
SMTPDBUSR OPTION(*SET) DBUSER(' ') DBPASS(' ')

Changed default SMTP buffer to 5000 from 512. Provides faster email sending.

1.65

2009-01-06

The 8th and 10th BCC email address was getting ignored when user was using the SMTPSEND2 command and passing 30 BCC's. This has been fixed.

1.64

2008-09-25

Updated SMTPSEND2 command to handle authenticated SMTP. This command can no be used for authenticated SMTP email sending.

1.63

2008-09-09

Added new data area to disable adding the 'please review enclosed attachmentments' text to the message body when attachments are sent. Created data area name is SMTPMSGTXT to store the settings. If set to *YES (Default), the please review message is added to the message body. If set to *NO, the please review message is not added at the top of message body.

1.62

2008-02-08

  • Created SMTPFAXMS command to send text message via Castelle Faxpress.
  • Updated SMTPFAXCS and SMTPFAXMS to look for FROMADDR data area, not FRADDR.

1.61

2008-02-08

NOTE: Minimum OS/400 release is V5R1.

1.60

2006-03-02

Added SMTPFAXCS command for faxing documents via Castelle Faxpress server. User must set up a TCP/IP host named RJS_FAXPRESS via GO CFGTCP, option 10. The IP address must point to the Castelle Faxpress server where the SMTP gateway is running.

1.59

2005-09-27

Updated SMTPSEND and SMTPSEND2 to correctly handle sending emails to QMAIL servers. We had one point in each program where we were sending a LF after the message line instead of a CR/LF and the QMAIL servers were rejecting our outbound email messages because of this.

1.58

2005-09-16

Changed SMTPDB264 to use DBEXPXLS2 command. Requires V1.32 or above of DataExport/400.

1.57

2005-09-12

Implemented new SMTPSENDJ command to send email messages via java email API. This command calls a java program to send email messages. Requires Java JDK version 1.4 Implemented SMTPJAVAEN command to restore RJS Java objects to the IFS. SMTPJAVAEN must be called one time to restore java objects before using SMTPSENDJ.

Note: THe SMTPJAVAEN command must be run once before using the SMTPSENDJ command. Implemented new VFYJDK command to verify if the Java JDK 1.4 is loaded on the iSeries.

1.56

2005-06-16

If *LIBL selected and *XLS is format, we will retreive file library with RTVOBJD when converting a file with SMTPDB264 command. Note: Library QTEMP cannot be used to hold temporary files when converting to XLS format. Java does not like work files in QTEMP.

1.55

2005-06-10

Enabled new, faster Excel format support if *XLS is selected when running SMTPDB264. *XLS format requires DataExport V1.31 or above.

1.54

2004-03-13

Added ability for the mail commands to return specific messages upon error sending an email message. If data area - SMTPCPFMSG is set to *NO (Default), a CPF9898 message is returned upon any error. If data area - SMTPCPFMSG is set to *YES, messages SMT1003 - SMT1026 will be sent if an email error occurs. It is also still posssible for the CPF9898 message to be returned for various errors as well so both SMT1001-SMT1026 and CPF9898 should be monitored in user programs.

Users can use the following command to view the SMTxxxx message descriptions:

WRKMSGD MSGF(RJSSMTP/SMTMSGF)  

1.53

2005-01-20

Added PAIRQUOTES and ADDSINGLE parms to SMTPDB264 and SMTPDB2 commands. SMTPDB264 commands.

Requires DataExport Requires DataExport V1.24 for this support.

1.52

2004-11-08

Added XLS output type to SMTPDB2 and SMTPDB264 commands. Requires DataExport V1.22 to use XLS output type.

1.51

2004-06-09

Added code to SMTP email program to insure that sockets are getting closed after an email failure. This can eventually lead to the inability for a job to send any more emails if the job gets a lot of connection failures.

1.50

2004-06-09

Created message file for SMTP messages. We will soon be adding SMTP specific CPF messages when email commands error.

1.49

2004-03-16

Added switches for the following extended attributes to be requested for an email sent with SMTPTEXT.

  • Delivery Confirmation Request: This setting requests a confirmation email back to the sender telling if the email message was delivered successfully.
  • Read Confirmation Request: This setting requests a confirmation email back to the sender telling if the email message was read by the user. During testing it appears that this setting does the same thing as the Delivery Confirmation.
  • High Priority: This setting requests that an email message be sent with a high priority flag indicating the message is a high priority message.

1.48

2003-10-15

Added To Name text description to the SMTPTEXT command.

1.47

2003-10-15

Added SMTPSPOOL command to spool text physical file members to spool file for printing with RJS Eforms print server or other products.

1.46

2003-02-12

Added trim space parameter to the SMTPDB2 and SMTPDB264 commands.

Note: Requires DataExport V1.19 or above.

1.45

2003-02-12

Added symbolic link spreadsheet format (SYLK) SYLK files can be read in directly by Excel. Added to SMTPDB2 and SMTPDB264 commands.

Note: Requires DataExport V1.16 or above.

1.44

2003-01-17

Changed SMTPSEND2 to create a mime type of application/pdf, application/rtf, etc. instead of using application/octet-stream. A customer had problems with Netscape 7 not allowing them to open an attachment. They could only save the attachment. The problem was resolved with a Netscape setting change, but we made this change anyway.

Added switches for the following extended attributes to be requested for an email sent with SMTPSEND2. Delivery Confirmation Request: This setting requests a confirmation email back to the sender telling if the email message was delivered successfully. Read Confirmation Request: This setting requests a confirmation email back to the sender telling if the email message was read by the user. During testing it appears that this setting does the same thing as the Delivery Confirmation.

High Priority: This setting requests that an email message be sent with a high priority flag indicating the message is a high priority message.

Note: Since all mail servers are different and it also appears that there is no set industry standard for these mail flags, we cannot guarantee that these settings will work for every email recipient you send messages to. Example: RJS uses Lotus Domino and our mail server has the return receipts disabled for all email messages.

Added switch to allow the temp IFS files to be left in the /RJSTEMP IFS directory after mail processing with SMTPSEND2. All temp files

Added "Importance: High" header to emails when using SMTPSEND or SMTPSEND2 and high priority is specified. Noticed an odd issue when Lotus Notes would not recognize high priority messages without the Importance flag.

1.43

2002-09-18

Added zero suppress option to allow users to pad all numerics to their entire length if required. By default this setting will suppress all zeros as it always has. Added to commands: SMTPDB2, SMTPDB264. **NOTE**: Requires DataExport/400 V1.15 or above.

1.42

2002-09-01

Updated help panel groups for CL commands. Also started on help panels for additional commands.

1.41

2002-08-16

Changed SMTP message header from multipart/alternative to multipart/mixed for the SMTPSEND command. This was causing attachments not to get sent correctly to mail servers such as ATTBI.COM or YAHOO.COM. The attachments would get stripped from the messages. This fix can also resolve problems where users are trying to send just text messages with CR/LF's in the message text. The CR/LF's were not getting sent through correctly to the messages.

1.40

2002-08-07

Status messages are now displayed when SMTPSEND is run interactively. This is useful so a user knows the command is running.

1.39

2002-07-09

Updated SMTPSEND and SMTPSEND2 to allow mixed case for email addresses, subject and message text.

1.38

2002-07-07

Added from name data area SMTPNAME.

Also added from name parm to SMTPTEXT command so from names can be more personalized.

1.37

2002-06-04

Added from name data area SMTPNAME.

Also added from name parm to SMTPTEXT command so from names can be more personalized.

1.36

2002-03-22

Changed SMTPSEND to allow blanks to be passed for a file name. This will prevent users from getting an error if they pass a blank IFS file name variable to the SMTPSEND call from an RPG or CL program.

Added switches for the following extended attributes to be requested for an email sent with SMTPSEND.

  • Delivery Confirmation Request: This setting requests a confirmation email back to the sender telling if the email message was delivered successfully.
  • Read Confirmation Request: This setting requests a confirmation email back to the sender telling if the email message was read by the user. During testing it appears that this setting does the same thing as the Delivery Confirmation.
  • High Priority: This setting requests that an email message be sent with a high priority flag indicating the message is a high priority message.

Note: Since all mail servers are different and it also appears that there is no set industry standard for these mail flags, we cannot guarantee that these settings will work for every email recipient you send messages to.

Example: RJS uses Lotus Domino and our mail server has the return receipts disabled for all email messages.

Added switch to allow the temp IFS files to be left in the /RJSTEMP IFS directory after mail processing with SMTPSEND. All temp files are deleted after processing by default. Temp files start with the file prefix of SMTP*.

Added SMTPUPG command to upgrade settings to new library version if installed.

Added initial F1 help panel implementation to selected commands.

1.35

2002-03-15

Changed SMTPTEXT to allow sending a multiple part email message with one part being HTML and the other part begin plain text. This way customers can send out mixed text and HTML messages for users who may or may not have HTML viewing capability in their mail program.

1.34

2001-11-21

Changed SMTPTEXT to send CR/LF after each data record being mailed instead of just using a lf. Some customers were getting error messages returned via SMTP regarding bare line feeds. Bare line feeds are data lines where a CR/LF combination is not sent after every record. A LF was being sent instead.

1.33

2001-11-19

Created SMTPZIP2 command to interface with ASI PKZIP compression product. requires ASI PKZIP v5.0 or above to work with IFS.

Created SMTPZIPVER data area. if set to 4, we're using PKZIP 4.0. if 5, we're using PKZIP 5.0.

Added call to smtpzip2 in programs SMTPMAIL4C and SMTP010C.

1.32

2001-11-14

Added email logging to log file SMTPLOG00.

Programs/cmds created for logging:SMTPWRTLOG, SMTPLOG001

1.31

2001-11-01

Added secure SMTP option to smtp/400. If SMTPSECURE is set to *YES, the smtp/400 software will use "auth plain" security to authenticate to the remote SMTP server. our testing was done with ms exchange, but this should also work with other SMTP servers that support SMTP authentication. SMTPUSER is used to set SMTP user/password info to authenticate to the selected SMTP server.

1.30

2001-10-10

Created SMTPSEND command. this command can be used to replace the SMTPMAIL2 and SMTPMAIL64 commands because it allows a text or html message to be mailed. it also allows for up to 30 email recipients and 30 ifs file attachments. zip support is also built into the new command.

Created supporting programs for SMTPSEND: SMTP010, SMTP010C, SMTP010L, SMTPGMMSG SMTPGMMSGC, SMTPRTNC, SMTP011R, SMTPPARS3C SMTPLOGC

1.29

2001-09-30

Added option to not print the debug report when running debug mode - SMTPMAIL3C

Created SMTPDBGPRT data area and CL command to set the data area.

1.28

2001-08-03

Removed SMTP/400 Base64 access code check.

1.27

2001-05-28

Added *SMTPDIRECT option to all SMTP commands. SMTP direct must be purchased as a separate option in order to use it.

1.26

2001-05-28

Removed *FIX data format option from SMTPDB2 and SMTPDB264. Use *TBL instead.

Added new data export command parms to SMTPDB2 and SMTPDB264 commands to handle additional export parms. Requires: DataExport/400 V1.06 or above

1.25

2001-05-02

Fixed SMTPZIP1C to only send password to PKZIP process if entered. This prevents zip files that require a single blank character for the password from getting created.

Created SMTPPARS2C program to parse out the file name extension from IFS path.

Fixed problem in SMTPDB264 command. If user specified the internal file attachment name instead of leaving the default value of *AS400FILE, the file extension was left off the file that got emailed out. This would typically only be a problem with zipped files.

1.24

2001-04-30

Added LPAR access code checking option.

Updated SMTPMAIL3C program to correctly recognize if an SMTP server will not accept mail relaying when sending email messages. Also added a few other miscellaneous SMTP status checks to insure a message gets correctly forwarded to the selected SMTP server.

1.23

2001-04-23

Updated SMTPMAIL64 command to support either the built-in zip compression or the ASI PKZIP compression product as an alternative.

Created SMTPZIP1 command to interface with ASI PKZIP compression product. Requires ASI PKZIP V4.0 or above to work with IFS.

Created SMTPASIZIP & SMTPZIPLIB commands for ASI PKZIP compression product setting.

Created SMTPASIZIP and SMTPZIPLIB data areas to handle the ASI zip settings. SMTPASIZIP - contains *YES/*NO setting to enable or disable zip compression. SMTPZIPLIB - contains ASI PKZIP library name.

Changed default to *DSP for following commands: SMTPBUFFER, SMTPFROM, SMTPHOST, SMTPPORT, SMTPZIPEXT.

1.22

2001-04-16

Created SMTPDB264 command to send AS/400 2database files via email. This is a drop-in replacement for SMTPDB2, except it allows files to be zipped and also uses Base64 attachment encoding when sending.

1.21

2001-03-29

Fixed SMTPCLEAN to default to /RJSTEMP.

1.20

2001-01-02

Added new base64 encoding program to handle the ms IIS 4.0 SMTP server on NT 4.0. This is a cloned version of SMTPMAIL4L that uses CR/LF instead of LF when encoding the email messages. The NT 4.0 mail service would garble messages if the CR/LF wasn't used and a file attachment was being sent. New program name: smtpmail5l.

Also created SMTPBASE64 data area to hold the appropriate Base64 encoding program name. Options:

  • SMTPMAIL4L -or- SMTPMAIL5L.

NOTE: To use SMTPMAIL5L, the data area SMTPBASE64 must be changed from SMTPMAIL4L to SMTPMAIL5L.

1.19

2000-12-22

Added ability to change default data buffer when sending emails. This may prevent lockups if a user runs into a weird lockup condition.

Created SMTPBUFFER data area and CL command to set the data buffer data area.

1.18

2000-11-21

Added JOB/USER/JOB number to temp file names to prevent potential work file naming conflicts.

1.17

2000-10-04

Modified SMTPMAIL4L to use email address instead of "RJS SMTP MAILER" text for the sender: when sending Base64 messages.

1.16

2000-09-13

Fixed SMTPDATE to format dates correctly.

1.15

2000-09-13

SMTPMAIL4L Base 64 file conversion now takes place in its own activation group. This was to resolve issues where SMTPASCII would cause an error if run 256 times.

1.14

2000-09-06

Soft coded the SMTP port number. Some customers don't use port 25.

Added SMTPPORT command to set and display the SMTPPORT data area.

Created SMTPTEXT command to allow email text messages to be sent from a data file member on the AS/400 that contains a single 512 character field.

Converted To: address for each recipient from *PNAME to *CHAR so that email can be sent out when an address contains a single apostrophe.

1.13

2000-08-24

Pass MIME content type for text messages. This will allow users to use HTML formatting.

1.12

2000-08-24

Pass MIME content type for text messages. This will allow users to use HTML formatting.

1.11

2000-08-04

Shrank message buffer from 9999 to 5000. The CL maximum buffer size is 5000 bytes. For SMTPMAIL,SMTPMAIL2 and SMTPMAIL64 commands and for SMTPDB and SMTPDB2 commands.

Added additional parms to handle the field delimiters and output type of a file after it gets converted.

1.10

2000-08-10

Added correct date handling to the SMTPMAIL and SMTPMAIL2 commands. Also the SMTPDB, SMTPDB2 and SMTPMAIL64 commands.2) Created SMTPDATEC program.

1.09

2000-08-04

Expanded message buffer from 2048 to 9999 for SMTPMAIL,SMTPMAIL2 and SMTPMAIL64 commands and for SMTPDB and SMTPDB2 commands.

1.08

2000-07-28

Made real internal name match the disposition file name. Some mail systems such as Groupwise, don't correctly recognize the disposition attachment name.

1.07

2000-07-20

Added *AS400FILE logic to internal file name. If *AS400FILE is specified the internal file name is based on the selected AS/400 file name + the file extension.

Added *ATTACHNAME logic to internal file name. If *ATTACHNAME is specified the internal file name is based on the IFS file. Created SMTPPARSEC program to parse out the file name from an IFS path to SMTPDB2, SMTPMAIL2 AND SMTPMAIL64 commands.

Added internal attachment file name parm. to SMTPDB2 and SMTPMAIL2 commands.

1.06

2000-06-03

Improved message logging during Macro handling.

Created ZIPEXT data area and added PKZIP compression to the SMTPMAIL64 command. Converted RJSSMTP1 menu to use UIM. Added RJSSMTP UIM menu - duplicate of RJSSMTP1.

Added SMTPHOST command to set and display the MAILHOST data area. Added SMTPFROM command to set and display the FROMADDR data area.

Added SMTPZIPEXT command to set and display the ZIPEXT data area.

Check From/To email addresses for @ sign for commands: SMTPMAIL2, SMTPMAIL64, SMTPSIMPLE, SMTPDB2, SMTPMAIL, SMTPDB.

Added *DEFAULT option to following commands to retrieve default from mail address from the FROMADDR data area: SMTPMAIL2, SMTPMAIL64, SMTPSIMPLE, SMTPDB2 SMTPMAIL, SMTPDB.

Added *DEFAULT option to following commands to retrieve default SMTP mail host from the MAILHOST data area: SMTPMAIL2, SMTPMAIL64, SMTPSIMPLE, SMTPDB2.

1.05

2000-04-12

Separated the Base64 licensing from the standard email API. If users want to send Base64 attachments they will need the Base64 access code.

1.04

2000-03-09

Major enhancement to add C-Based Base 64 encoding for TIF/PCL attachments. This should speed up conversion and prevent us from getting data corruption when binary files are sent via email. Created program SMTPMAIL4L. We also make a copy of the SMTPASCII service program to handle ASCII conversion.

Added attachment file extension to SMTPDB2.

1.03

1999-12-29

Added CHKOBJIFS command. Modified SMTPMAILR and SMTPMAIL2R to not trim data when writing to the mime file.

1.02

1999-12-29

Modified SMTPMAILR and SMTPMAIL2R to not trim data when writing to the mime file.

1.00

1999-10-01

Modified SMTPMAILR and SMTPMAIL2R to not trim data when writing to the mime file.


Still have questions? We can help. Submit a case to Technical Support.

Last Modified On: August 09, 2018