Hi Guys,
i have a requirement: need to send a email from the map (i am using mercator 6.7), and i should not be using a email adapter, but thru socket adapter. What i need to know is, how to trigger the smtphost command from the map, and then how to receive the code returned by it so that i give the next set of commands.
typically i want to do the following:
test@mcsdev1:test> telnet smtphost.abc.com 25
Trying 192.21.82.26...
Connected to smtphost.abc.com.
Escape character is '^]'.
220 smtphostem01.theabc.com ESMTP Postfix
HELO abc.com
250 smtphostem01.theabc.com
MAIL FROM: test@abc.com
250 2.1.0 Ok
RCPT TO: test1@abc.com
250 2.1.5 Ok
DATA
354 End data with <CR><LF>.<CR><LF>
Subject: Test Email
Content-Type:text/html
<BODY>test <B> message </BODY>
.
250 2.0.0 Ok: queued as 4FBB5500FE
quit
221 2.0.0 Bye
Connection to smtphost.abc.com closed by foreign host.
test@mcsdev1:test>
1. So now how to first trigger the telnet command thru socket adapters
2. how do i check the response code (220) and then give the next set of commands
Pleased to get any ideas,
thanks,
sid
i have a requirement: need to send a email from the map (i am using mercator 6.7), and i should not be using a email adapter, but thru socket adapter. What i need to know is, how to trigger the smtphost command from the map, and then how to receive the code returned by it so that i give the next set of commands.
typically i want to do the following:
test@mcsdev1:test> telnet smtphost.abc.com 25
Trying 192.21.82.26...
Connected to smtphost.abc.com.
Escape character is '^]'.
220 smtphostem01.theabc.com ESMTP Postfix
HELO abc.com
250 smtphostem01.theabc.com
MAIL FROM: test@abc.com
250 2.1.0 Ok
RCPT TO: test1@abc.com
250 2.1.5 Ok
DATA
354 End data with <CR><LF>.<CR><LF>
Subject: Test Email
Content-Type:text/html
<BODY>test <B> message </BODY>
.
250 2.0.0 Ok: queued as 4FBB5500FE
quit
221 2.0.0 Bye
Connection to smtphost.abc.com closed by foreign host.
test@mcsdev1:test>
1. So now how to first trigger the telnet command thru socket adapters
2. how do i check the response code (220) and then give the next set of commands
Pleased to get any ideas,
thanks,
sid