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



As a clarification, the correct syntax is really like HELO
MYSYSTEM.MYDOMAIN.COM

Also, your program is obviously not properly responding to bad (meaning
negative) return codes. It is dangerous to ignore return codes and just
proceed blindly as though nothing was wrong (as demonstrated in your log).
Consider what will happen if errors are not checked in the following
scenario:

Build work file
Update balances
Send work file to recipients
Delete work file


Won't happen to you, you say? Oh. Well that's good. I've seen it happen
and it's not fun to resolve. :)

Dennis Lovelady
http://www.linkedin.com/in/dennislovelady
--
"I know King Fu, Karate, and 47 other dangerous words."
-- Jo Ramos

The clue is in the 501 text.

You send HELO.

It wants to see HELO <host name>, like:
HELO MYSYSTEM

Dennis Lovelady
http://www.linkedin.com/in/dennislovelady
--
"A hospital is no place to be sick."
-- movie mogul Sam Goldwyn


Bellow is the Log

Connection to 192.168.1.2 established
220 ***************************
HELO
501 Syntax: HELO hostname
ERROR: Invalid reply code to HELO command.
MAIL FROM:<chamara.withanachchi@xxxxxx>
ERROR: send(): Descriptor not valid.
RCPT TO:<indika@xxxxxx>
ERROR: send(): Descriptor not valid.
RCPT TO:<chamara.withanachchi@xxxxxx>
ERROR: send(): Descriptor not valid.
RCPT TO:<prem@xxxxxx>
ERROR: send(): Descriptor not valid.
RCPT TO:<satheesh@xxxxxx>
ERROR: send(): Descriptor not valid.
RCPT TO:<madhawa@xxxxxx>
ERROR: send(): Descriptor not valid.


Thanks,

Chamara


On Mon, Oct 11, 2010 at 10:43 AM, Scott Klement
<rpg400-l@xxxxxxxxxxxxxxxx>wrote:

Can you please post the log of the SMTP session?


On 10/10/2010 11:55 PM, Chamara Withanachchi wrote:
Dear All,

I was using Scott Klement's email sending program(SMTPR4) (from
RPG), our
mail server changed from exchange to Zimbra Mail now Im getting
following
error when I try to send mails from RPG program

501 - Invalid reply code to HELO command. (Syntax error in
parameters
or arguments)

Can someone guide me on this matter



--
This is the RPG programming on the IBM i / System i (RPG400-L)
mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.




--
Regards,

Chamara Withanachchi
IBM Certified Power System Expert
RPG Programmer
(owner of www.rpgiv.info)

WWW.RPGIV.INFO
Mob: +94 77 1678646
chamaraw@xxxxxxxxxx

i want to be future ready. i want control. i want an i.
--
This is the RPG programming on the IBM i / System i (RPG400-L)
mailing
list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



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.