Midrange News for the IBM i Community


Posted by: Larry Taylor
Issue with QTMMSENDMAIL
has no ratings.
Published: 13 Jan 2012
Revised: 23 Jan 2013 - 1520 days ago
Last viewed on: 23 Mar 2017 (4998 views) 

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.

Issue with QTMMSENDMAIL Published by: Larry Taylor on 13 Jan 2012 view comments(4)

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

 

Return to midrangenews.com home page.
Sort Ascend | Descend

COMMENTS

(Sign in to Post a Comment)
Posted by: bobcozzi
Site Admin ****
Chicagoland
Comment on: Issue with QTMMSENDMAIL
Posted: 5 years 2 months 11 days 57 minutes ago

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.

Posted by: LarryTaylor
Premium member *
Comment on: Issue with QTMMSENDMAIL
Posted: 5 years 2 months 11 days 4 minutes ago

Thanks for your reply - I research the SendMail

Posted by: bobcozzi
Site Admin ****
Chicagoland
Comment on: Issue with QTMMSENDMAIL
Posted: 5 years 2 months 10 days 4 hours 45 minutes ago

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.

Posted by: clbirk
Premium member *
Comment on: Issue with QTMMSENDMAIL
Posted: 5 years 1 months 18 days 2 hours 48 minutes ago

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.