Using IBM i? Need to create Excel, CSV, HTML, JSON, PDF, SPOOL reports? Learn more about the fastest and least expensive tool for the job: SQL iQuery.
We are V6.1. We email PO's as a PDF attachment using QTMMSENDMAIL. Some vendors(not all) do not get emails from the iSeries using this API, but they do get emails thru outlook, or a third party product called iMail. I have tried changing the from address to various other addresses - none have worked so far. I'm getting a bounce back like this:
NOT ABLE TO DELIVER MAIL TO SOME/ALL RECIPIENTS.
REPLY CODES WITH FIRST DIGIT = '4' OR '5' ARE ERROR REPLIES.
ERRORS THAT DO NOT HAVE ERROR REPLY CODES MAY EXIST.
HOST (hostname) NOT ABLE TO DELIVER MAIL TO FOLLOWING RECIPIENT(S):
<vendoremailaddress>
RETRIES EXHAUSTED WHILE ATTEMPTING TO CONNECT TO REMOTE HOST vendordomainnname.
** TEXT OF MAIL FOLLOWS **
To: VendorName/TEST PO <vendoremailaddress>
From: OurCompanyName <mycompanyemailaddress>
Date: Thu, 12 Jan 2012 10:43:54 -0600
Subject: PO#:9516095-/TEST PO
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="--=.=2012-01-12-10.43.50.144000"
----=.=2012-01-12-10.43.50.144000
Content-Type: text/plain
TEST TEST Note: This is a Purchase Order Via E-Mail! From CompanyNAME.
----=.=2012-01-12-10.43.50.144000
Content-Type: application/octet-stream; name="9516095V_2012-01-12-10.39.00.673000.PDF"
Content-Disposition: attachment;filename="9516095V_2012-01-12-10.39.00.673000.PDF"
Content-Transfer-Encoding: base64
JVBERi0xLjQKJcnDxOIKJUlDRFMyUERGIFZlcnNpb24gMSBSZXZpc2lvbiAyMSBpCiUgSUJNUFND
MjAwIPHwbeXi1tfWbfn18fbw+fXlbfLw8fJg8PFg8fJg8fBL8/lL8PBL9vfz8PDwQEBAQEBAQEBA
Any ideas/suggestions would be greaty appreciated.
Larry
Sounds like a networking issue not an API issue.
Also, have you considered using the Java SendMail interface instead? It avoids the setup required by that API. I used to use the API all the time, now I've been using SendMail on IBM i for at least 6+ years and its always worked.
Thanks for your reply - I research the SendMail
Let me know if you need a copy of it. I have it in source-code form, but it does require that the Java runtime be installed on your IBM i system. It "compiles" the Java during the install/build.
The problem is probably a missing message id header as I don't see one here.
Message-Id: B5B3A12B-E2D0-4792-A5C9-BFA6A0F6D6ED@somedomain.com
I know for example that aol won't take mail (or at least wouldn't) if no message id header.
If it is not an issue of a blocked ip (I assume you have made checks to be sure your ip is not being blocked or that the "outlook" you reference is using the same IP (which means mailserver also), clarifying that, your ibmi could be sending directly from your LAN, maybe 72.72.72.72 whereas when you send from outlook, it uses your smtp server which is on 109.109.109.109. (ip's are example only). While your outlook comes from your lan, it is really sent from your smtp server (and if that is not on the same lan behind the firewall, then it is an apple and orange comparision.
I use brad stone's mailtool, and have sent lots and lots and lots of emails with it and it works great.