Please enable JavaScript to view this site.

From version 7.0.00 - This is a Standard Exit program which will allow you to send an email to multiple recipients, including multiple attachments. This program sends the email using SNDPPDEML3 which sends the email directly to your SMTP Mail Server and not via the Cobwebb Queue.

Notes:

The SMTP Server Name, Port, Encryption Type, Authentication UserId and Authentication Password are automatically retrieved from the Email System Parameters.

These email will NOT be written to the Cobwebb Queue but sent directly to your SMTP Mail Server.

*FIRST Call

This is a mandatory call to be called once for each email to reset the variables for a new message.

Parameter

In

Len

Description

PARM1

-

 


PARM2

-

 


PARM3

-

 


PARM4

-

 


PARM5

-

 


PARM6

*FIRST

8


*FROM Call

This is a mandatory call to be called once for each email to specify the sender email details.

Parameter

In

Len

Description

PARM1

Sender Email Address

132

The email address for the sender

PARM2

Sender Email Name

50

The name for the sender

PARM3

-

 


PARM4

-

 


PARM5

-

 


PARM6

*FROM

8


*TO Call

You must call this at least once for each email to specify the recipient email details, but you may have up to 20 recipients. If you supply more entries then only the first 20 will be used.

Parameter

In

Len

Description

PARM1

Email Type

3

This can be TO, CC or BCC. Note: The first email address you supply should always be a TO.

PARM2

Recipient Email Address

132

The email address for the recipient

PARM3

Recipient Email Name

50

The name for the recipient

PARM4

-

 


PARM5

-

 


PARM6

*TO

8


*MESSAGE Call

This is a mandatory call to be called once for each email to specify the message body text for the email. If you supply text in more than one of the parameters then the text will be concatenated with a single space between.

You may also specify the path to an HTML file to use for your message body. You do this by specifying a %FILE parameter in PARM1 e.g.

%FILE"/test/message.htm" where /test/message.htm is the path to the document you wish to use.

Note: The %FILE must be uppercase.

Parameter

In

Len

Description

PARM1

Message body text

132

The first 132 characters of message text.

PARM2

Message body text

132

The next 132 characters.

PARM3

Message body text

132

The next 132 characters.

PARM4

Message body text

132

The next 132 characters.

PARM5

Message body text

132

The last 132 characters.

PARM6

*MESSAGE

8


*SUBJECT Call

This is a mandatory call to be called once for each email to specify the subject text for the email. If you supply text in PARM2 as well then the text will be concatenated with a single space between and then truncated to 256 characters which is the maximum subject length.

Parameter

In

Len

Description

PARM1

Subject text

132

The first 132 characters of the subject text.

PARM2

Subject text

132

The next 132 characters.

PARM3

-

 


PARM4

-

 


PARM5

-

 


PARM6

*SUBJECT

8


*ATT Call

You must call this at least once for each email to specify the attachment you wish to include, but you may have up to 26 attachments. If you supply more entries then only the first 26 will be used. If you don't supply an attachment name then the file name in the attachment path will be used.

Parameter

In

Len

Description

PARM1

Attachment path

132

The path to the file you wish to attach including the extension. E.g. /test/invoice/0104123.PDF

PARM2

Attachment name

68

The attachment name (optional) but must include the extension e.g. AB0001.PDF

PARM3

-

 


PARM4

-

 


PARM5

-

 


PARM6

*ATT

8


*CONFIG1 Call

This is an optional call as all configuration entries have default values. This may be called once for each email if you wish to change the configuration.

Parameter

In

Len

Description

PARM1

Use HTML

1

Use HTML for message text. 0 or 1 (default 1 = Use HTML)

PARM2

Use MSF

1

Use IBM Mail Server Framework. 0 or 1 (default 0 = Cobwebb SMTP client)

PARM3

From Code Page

11

From Code Page (default = 37)

PARM4

To Code Page

11

To Code Page (default = 1252)

PARM5

Trim attachments

1

Trim Attachments. 0 or 1 (default 0 = No)

PARM6

*CONFIG1

8


*CONFIG2 Call

This is an optional call as all configuration entries have default values. This may be called once for each email if you wish to change the configuration.

Parameter

In

Len

Description

PARM1

Translate attachments

1

Translate attachments. 0 or 1 (default 0= No)

PARM2

-

 


PARM3

-

 


PARM4

-

 


PARM5

-

 


PARM6

*CONFIG2

8


*LAST Call

This is a mandatory call to actually send the Email. Note: If any of your attachments reside in QNTC i.e. outside the IFS, then you will need to specify a User Id in PARM1 that has been configured to access QNTC.

Parameter

In

Len

Description

PARM1

User Id

 

Optional

PARM2

-

 


PARM3

-

 


PARM4

-

 


PARM5

-

 


PARM6

*LAST

8