Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

About EMAIL Adapter in mercator6.7

Status
Not open for further replies.

siddhardha

Programmer
Feb 1, 2006
5
US
Hi All,

I am facing some problem in using email adapter,after running my map in Unix box,i am getting like "couldn't locate host information" and one more is WSAconnect:connect refused",these are the errors,

I am attaching the trace file when that map is running in Unix box


Mercator e-mail Adapter, Version 6.7(306)
Copyright © 1998-2000, TSI International Software, DBA Mercator Software
Built for AIX on Jun 26 2003 at 00:07:06 by Mercator.
Retry Count is 0. Retry Interval is 0. OnFailure is Rollback.
Fetch Unit is 0. Card Mode is Integral.
Will process 28763 bytes of data.
Run Started at 18:35:00.352 on 01/31/06.
Options used: trace,name,login,pass,subject,attach,server,to,name,from,name,proto
SMTP Gateway 'elanus' will be used.
Mercator e-mail Adapter, Version 6.7(306)
Copyright © 1998-2000, TSI International Software, DBA Mercator Software
Built for AIX on Jun 26 2003 at 00:07:06 by Mercator.
Retry Count is 0. Retry Interval is 0. OnFailure is Rollback.
Fetch Unit is 0. Card Mode is Integral.
Will process 28763 bytes of data.
Run Started at 18:35:00.353 on 01/31/06.
GetMailCoreInfo: Successful.
Sockets Client ID 2 enabled.
Wrote 28763 bytes to /tmp/baal1Gkab.
Filename 'audit.log' will be used in the outbound message.
Originator is sidd.
Recipient #1 is nallams@xwide.com.
Rollback specified; returning to map engine.
Cleanup call from prior Rollback; re-initializing instance storage.
Mercator map return is 0.
Wrote Header: Date: Tue, 31 Jan 2006 18:35:1 -0500 (EST)
Wrote Header: X-Mailer: Mercator e-mail Adapter 1.0.6
Local host is 'elanus'.
Client host is 'elanus'.
Server host is 'elanus'.
Couldn't locate host information.
Connecting to 'elanus'.
Socket Opened.
WSAConnect: Connect refused.
No connection.
Socket Closed.
Connection closed.
Data in /tmp/baal1Gkab deleted.
Run Terminated at 18:35:01.599 on 01/31/06.


plz help on this problem

Thanks
sid
 
Hi All,

Its me Only i forgot to add the code ,this is the code i used in output card

=IF ( RtrnCd Execution Elements:MapStatus != 0 ,
VALID ( PUT ( "EMAIL" ,
" -PR INET -SVR elanus -U newgen -P newgen1 -FROM sidd -TO nallams@xwide.com -SUB Audit_Log_Error -ATT audit.log -T " ,PACKAGE ( Error_Msg )) , FAIL ( "Output Card 4 (EMail_Error) failed to send an e-mail detailing an error log" ) + LASTERRORMSG()+LASTERRORCODE( )))


Thanks
sid
 
It is telling you it can't find the server elanus / it's e-mail server. Also, the from address would need @company.ext

Try a verbose trace -TV for mor information.

However VALID(PUT(EMAIL) will not fail except for major error like log ons.

Much better error handling if you use a RUN map, with an e-mail over ride.



BocaBurger
<===========================||////////////////|0
The pen is mightier than the sword, but the sword hurts more!
 
its me only,still its not working,any body have any idea how can we write unix script for sending email when condition fails
 
You want to send an e-mail to report that e-mail is unable to send, since it can't find the server?

This is a network/DNS/external type problem. Try using the IP address of the e-mail server. Make sure that your e-mail system is up and running on that host. Make sure you can get to that host (see if there is a proxy or firewall beteen the two machines (try tracert).



BocaBurger
<===========================||////////////////|0
The pen is mightier than the sword, but the sword hurts more!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top