× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: RE: Email from AS/400
  • From: Rob Berendt <rob@xxxxxxxxx>
  • Date: Mon, 6 Mar 2000 10:03:12 -0500

See also:
CHGPOPA MSGSPLIT(*NOMAX)




Patrik.Timura@gecapital.com on 03/06/2000 03:14:01 AM
Please respond to RPG400-L@midrange.com@Internet
To:     watcher@pconline.com@Internet
cc:     RPG400-L@midrange.com@Internet 
Fax to: 
Subject:        RE: Email from AS/400

Hi Sue, hope you're doing well.
 
YES, I found a relatively good way to send an email with attachment from the
AS/400. It is using the QtmmSendMail API.
 
I found it on the NEWS/400 as the free code.
 
It is working so, that it takes an IFS file, add MIME header and footer, and
writes back to IFS to temporary file, then calls API, which send the mail
and delete the temp file.
 
But be aware, there are a few troubles - 
 
1) the code page problem - you need to specify the same CP in source of
program (variable AsciiCodePage), it must be the same as the CCSID parameter
in CHGSMTPA command (and when this parm will be changed, you will need to
change the program and recompile it).
 
2) the non-text attachments - aren't working :o(, only text files are beeing
sent correctly
 
3) the large files are divided incorrectly to more mails, so the target
probably won't be able to become the same file as was sent.
 
I found the solution to the third problem, but it must not be always
correct, look at
http://publib.boulder.ibm.com/pubs/html/as400/v4r4/ic2924/info/RZAIRSSV4.HTM
#HDRRZAIRSSV4
<http://publib.boulder.ibm.com/pubs/html/as400/v4r4/ic2924/info/RZAIRSSV4.HT
M#HDRRZAIRSSV4> 
(use the correct for your OS version)
 
In the attachment of this mail you will find three files, you will have to
change the libraries names in them.
 
CRTPGMSM pgm is CLP, which will create the main program (SNDEMAIL_P)
You will need to create the SNDEMAIL command with PGM(SNDEMAIL_P)
 
You will also need to have configured SMTP.
 
! ENJOY !
 
For any question, pls mail me back ....
 

          ("`- ' '-/") .___..--''" ` - . _ 
           `6_ 6  )   `-.   (     ) . ` - .__.`) 
          (_Y_.)'  ._   )  ` . _  ` . ` ` -. .-' 
        _ ..`--'_..-_/  /--'_.' ,' 
       (il),-''  (li),'  ((!.-' 

     Patrik Timura 
 GE Capital Bank 


-----Original Message-----
From: Tom & Sue Hotchkiss [mailto:watcher@pconline.com]
Sent: Sunday, March 05, 2000 6:21 PM
To: Patrik.Timura@gecapital.com
Subject: Email from AS/400


Patrik,
 
Did you ever figure out a good way to send an email with an attachment from
the 400?
I am trying to do the same thing.
 
Sue Hotchkiss
watcher@pconline.com <mailto:watcher@pconline.com>  
 



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 5.00.2314.1000" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=160400606-06032000>Hi 
Sue, hope you're doing well.</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=160400606-06032000></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=160400606-06032000>YES,&nbsp;I found a relatively good way to send an 
email with attachment from the AS/400. It is using the QtmmSendMail 
API.</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=160400606-06032000></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=160400606-06032000>I 
found it on the NEWS/400 as the free code.</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=160400606-06032000></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=160400606-06032000>It is 
working so, that it takes an IFS file, add MIME header and footer, and writes 
back to IFS to temporary file, then calls API, which send the mail and delete 
the temp file.</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=160400606-06032000></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=160400606-06032000>But 
be 
aware, there are a few troubles - </SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=160400606-06032000></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=160400606-06032000>1) 
the 
code page problem - you need to specify the same CP in source of program 
(variable AsciiCodePage), it must be the same as the CCSID parameter in 
CHGSMTPA 
command (and when this parm will be changed, you will need to change the 
program 
and recompile it).</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=160400606-06032000></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=160400606-06032000>2) 
the 
non-text attachments - aren't working :o(, only text files are beeing sent 
correctly</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=160400606-06032000></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=160400606-06032000>3) 
the 
large files are divided incorrectly to more mails, so the target probably won't 
be able to become the same file as was sent.</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=160400606-06032000></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=160400606-06032000>I 
found the solution to the third problem, but it must not be always correct, 
look 
at <A 
href="http://publib.boulder.ibm.com/pubs/html/as400/v4r4/ic2924/info/RZAIRSSV4.HTM#HDRRZAIRSSV4">http://publib.boulder.ibm.com/pubs/html/as400/v4r4/ic2924/info/RZAIRSSV4.HTM#HDRRZAIRSSV4</A></SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=160400606-06032000>(use&nbsp;the correct for your OS 
version)</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=160400606-06032000></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=160400606-06032000>In 
the 
attachment of this mail you will find three files, you will have to change the 
libraries names in them.</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=160400606-06032000></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=160400606-06032000>CRTPGMSM pgm is CLP,&nbsp;which will create the main 
program (SNDEMAIL_P)</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=160400606-06032000>You 
will need to create the SNDEMAIL command with 
PGM(SNDEMAIL_P)</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=160400606-06032000></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=160400606-06032000>You 
will also need to have configured SMTP.</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=160400606-06032000></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=160400606-06032000>! 
ENJOY !</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=160400606-06032000></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=160400606-06032000>For 
any question, pls mail me back ....</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<P><FONT color=#000000 face=Arial 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ("`- ' '-/") 
.___..--''" ` - . _</FONT> <BR><FONT color=#000000 face=Arial 0
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; `6_ 6&nbsp; 
)&nbsp;&nbsp; `-.&nbsp;&nbsp; (&nbsp;&nbsp;&nbsp;&nbsp; ) . ` - .__.`)</FONT> 0
<BR><FONT color=#000000 face=Arial 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (_Y_.)'&nbsp; 
._&nbsp;&nbsp; )&nbsp; ` . _&nbsp; ` . ` ` -. .-'</FONT> <BR><FONT ==
color=#000000 
face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _ 
..`--'_..-_/&nbsp; /--'_.' ,'</FONT> <BR><FONT color=#000000 ==
face=Arial 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (il),-''&nbsp; (li),'&nbsp; 
((!.-'</FONT> </P>
<P><FONT color=#ff0000 face="Times New Roman CE">&nbsp;&nbsp;&nbsp;&nbsp; 
Patrik 
Timura</FONT> <BR><B><FONT color=#0000ff face="Trebuchet MS">&nbsp;GE Capital 
Bank</FONT></B> <BR></P>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
  <DIV align=left class=OutlookMessageHeader dir=ltr><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> Tom &amp; Sue Hotchkiss 
  [mailto:watcher@pconline.com]<BR><B>Sent:</B> Sunday, March 05, 2000 6:21 
  PM<BR><B>To:</B> Patrik.Timura@gecapital.com<BR><B>Subject:</B> Email from 
  AS/400<BR><BR></DIV></FONT>
  <DIV><FONT size=2>Patrik,</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT size=2>Did you ever figure out a good way to send an email with an 
  attachment from the 400?</FONT></DIV>
  <DIV><FONT size=2>I am trying to do the same thing.</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT size=2>Sue Hotchkiss</FONT></DIV>
  <DIV><FONT size=2><A 
  href="mailto:watcher@pconline.com">watcher@pconline.com</A> </FONT></DIV>
  <DIV>&nbsp;</DIV></BLOCKQUOTE></BODY></HTML>

sndemail.exe


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.