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



Hi Scott,

I did not change your Service Program, we were using MS Exchange as our mail
server but last week we change it to Zimbra Server then only this started.
(we have not done any changes in our i)

So for a solution I have hard coded the host name. then it start working.

Thanking you

Chamara


On Mon, Oct 11, 2010 at 8:47 PM, Scott Klement <rpg400-l@xxxxxxxxxxxxxxxx>wrote:

Hi Chamara,

My copy of SMTPR4 does the following:

if ( gethostname(hostbuf: %size(hostbuf)) = 0);
host = %str(%addr(hostbuf));
else;
host = 'unknown';
endif;

...then later...

msg = 'HELO ' + host + CRLF;
if ( sendtext(p_SMTP: msg) = *OFF );
return *OFF;
endif;

In your log, it shows the HELO command being sent without a host name
following it. I don't understand how that could happen! It should
either say 'HELO myhostname.com' or 'HELO unknown'? Have you modified
SMTPR4?

Please also check dil4cha



option 12. The 'Host name' and 'domain name'
fields are what determines the host that gethostname() returns.

Also, each routine (SMTP_Connect, SMTP_From, SMTP_Recip, SMTP_data_xxx,
etc) reports whether it succeeded or failed by returning an indicator to
your routine. You appear to be ignoring the success/fail indicator, and
continuing on with the program, even if something failed.




On 10/11/2010 1:24 AM, Chamara Withanachchi wrote:
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.





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

Follow-Ups:
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.