× 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.



... or cURL and some BASH/QSHELL scripting...

1) You need 5733OPS and maybe 5733SC1

Use SSH to connect to your system (first need to setup the server, it's easy) and use "VI" editor, o just upload the files created on NOTEPAD/NOTEPAD++ using FTP/SFTP/SCP

2) In this example you need to create email.sh in  your IFS:

################################

#!/usr/bin/bash
# CONSTANTS
URL='smtps://smtp.gmail.com:465'
MAILFROM='victor@xxxxxxxxx'
MAILRCP1='usertoreceive@xxxxxxxxxxxxxxxx'
MAILRCP2='victor@xxxxxxxxx'
MAILUSER='victor@xxxxxxxxx'
MAILPWD='victorspwd1234'

cp /home/victor/header0.txt /home/victor/header1.txt
system WRKSYSSTS >> /home/victor/header1.txt
curl --url  $URL --ssl-reqd --mail-from $MAILFROM --mail-rcpt $MAILRCP1 --mail-rcpt $MAILRCP2 --user $MAILUSER:$MAILPWD --insecure --upload-file /home/victor/header1.txt

################################

3) and then create a text file /home/victor/header0.txt with this content

################################

From: "Victor Hunt" <victor@xxxxxxxxx>
To: "User To Receive This Mail" <usertoreceive@xxxxxxxxxxxxxxxx>,victor@xxxxxxxxx
Subject: MyServer - System Status

This is the system status
################################

4) Finally just add some water:

QSH CMD('/home/victor/email.sh')

But if this is some complex just buy MAILTOOL  and don't waste more time ;-)

Good Luck

Diego KESSELMAN


El 02/03/18 a las 11:56, Bradley Stone escribió:
No, you can't with IBM's software. You can with MAILTOOL, though.

$600 a year isn't in the budget?

Most people spend days fighting with email on the IBM i. That's way more
money wasted than the small amount I charge for MAILTOOL and MAILTOOL
Plus. :)

Bradley V. Stone
www.bvstools.com
MAILTOOL Benefit #9 <https://www.bvstools.com/mailtool.html>: Superior
debugging (when using MAILTOOL Plus) - Bypassing the IBM SMTP server means
that we can fully debug and track down sometimes hard to find problems.
Even the Trace TCP/IP Application (TRCTCPAPP) command won't be this
detailed!

On Fri, Mar 2, 2018 at 10:07 AM, Victor Hunt <xlcfdp@xxxxxxxxx> wrote:

Can I tell the SMTP server to use both? There are still many people using
our internal email system that have not been given a corporate email yet.
So I need to be able to use both systems. I've looked at some of the Java
based SMTP replacements, but could never get them to work. They would spit
out Java errors. I know absolutely nothing about Java. I've also looked
into commercial software, but, you know, "it's not in the budget".

On Fri, Mar 2, 2018 at 9:48 AM, Bradley Stone <bvstone@xxxxxxxxx> wrote:

If your corporate email system is Gmail, you need to tell the IBM SMTP
server to use that. Which also requires SSL/TLS, authentication for the
sender (ie, the user and PW), etc. In a sense, GMail is now your mail
server.

There are better options than IBM's SMTP system as well. I gave up on it
years ago.

Bradley V. Stone
www.bvstools.com
MAILTOOL Benefit #13 <https://www.bvstools.com/mailtool.html>: The
ability
to use an IFS stream file as the body of the email (either text or html).

On Fri, Mar 2, 2018 at 9:31 AM, Victor Hunt <xlcfdp@xxxxxxxxx> wrote:

I have an i5 M15 running V7R1. Currently, when a user wants a download
of
data from our i5, they run a menu option that collects the data they're
looking for and creates a CSV file in the IFS. This CSV file is then
emailed to them using SNDDST or SNDSMTPEMM. This process has worked
fine
for a long time. We have our own internal email server (not on the i5)
and
anyone who runs one of these processes is setup on the email server and
everything on the i5 (user profile and SMTP attributes) are setup to
point
to the proper domain and email server.

About 1 1/2 years ago, the original owners sold the company to a large
international company. One of many changes we have been asked to make
is
to
move everyone from our internal email system to the corporate email
system
(which is gmail based). This is a lower priority project and has not
been
completed. In the mean time, I am not allowed to create any new email
addresses on the old email system, anyone new is assigned a corporate
email
address.

The issue is that when a user with a corporate email address uses one
of
the i5 processes that emails them a CSV file, they never receive it.
The
email seems to be sent, according to the journals on the i5, but never
arrives in their corporate email inbox. I've spent a bit of time
searching
the internet, but haven't seen anything yet that is helpful.

I'm wondering about the Mail Router option on the CHGSMTPA command. It
is
currently set to our internal email server which is a different domain
than
the corporate domain. Should I change this to *NONE? I've also read
that
gmail filters incoming emails that have a gmail account as the sender,
but
didn't originate from gmail (I'm not sure if this is true, or just
suspected).

Anyone have any thoughts? If more setting data is needed, just let me
know.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.