IBM Sterling Transformation Extender

Sterling Transformation Extender

Come for answers, stay for best practices. All we're missing is you.


#Sterling
#Supplychain
 View Only
Expand all | Collapse all

PROBLEM with email adapter on unix

  • 1.  PROBLEM with email adapter on unix

    Posted 12/27/06 08:50 AM

    Originally posted by: SystemAdmin


    I have problem sending email.

    dstx /ING/ADVANTAGE/gateway/mmc/STP/MAPS/GBL_MailAdapter2.sun -OAEMAIL2 "' -T /BBL/ADVANTAGE/gateway/mmc/STP/MAPS/test01.mtr -SERVER smtp.be.intra
    net -FROM aaa_order -TO 'stephane.lallemand@ing.be' -SUBJECT ''AAAAAAAAdsf AAAAAAAAAAllldfsd12123123123123 sdfsdfpdkfpqkdfqdpsfkdp qdfpgkdfpgkdfpgkdfgpk llll
    lllSUBJJJJJJJJJ'' '"

    when I put a -CC with an email adr, I get an invalid command line. More amazing: when subject is more than 70 char, it does not work anymore ...

    if so could help me... does anyone have a correct command line that works ???

    thanks
    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender


  • 2.  Re: PROBLEM with email adapter on unix

    Posted 12/27/06 12:32 PM

    Originally posted by: jvanboga


    what version and OS are you running?

    #IBM-Websphere-Transformation-Extender
    #DataExchange
    #IBMSterlingTransformationExtender


  • 3.  Re: PROBLEM with email adapter on unix

    Posted 12/27/06 12:41 PM

    Originally posted by: jvanboga


    ie.... if you are not running 8.1 and you are on windows there is a command line limit of aprox 250 bytes. the newer version's limit is, I believe, 1000.

    You can try using things like resource registry variables, shorten your paths if possible, use email groups to same bytes......

    /ING/ADVANTAGE/gateway/mmc/STP/MAPS/GBL_MailAdapter2.sun
    /BBL/ADVANTAGE/gateway/mmc/STP/MAPS/test01.mtr
    And, I'm not sure this will help but you could try populating you long subject in an element.... it might look something like.....

    -SUBJECT '"+ subject:text +"'"
    #IBMSterlingTransformationExtender
    #DataExchange
    #IBM-Websphere-Transformation-Extender


  • 4.  Re: PROBLEM with email adapter on unix

    Posted 12/27/06 01:18 PM

    Originally posted by: SystemAdmin


    Note: The 260 and 2000 byte limit does include the "expanded" element, but this is only for the adapter command line. E-mail groups help because they are not expanded by the WTX engine. The increase from 200 to 2000 came about in 8.0.

    If you happen to be running v8.0 base and are having this problem, move to 8.0.1.1.

    Yvonne
    Resistance is NOT futile.
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender


  • 5.  Re: PROBLEM with email adapter on unix

    Posted 12/27/06 02:16 PM

    Originally posted by: jvanboga


    net, net, net in older version, of the 260, you can only use about 252 bytes for your actual command. Also, not sure if this was a limit in Unix. Seems like this cmd is about 300 bytes.
    #IBM-Websphere-Transformation-Extender
    #DataExchange
    #IBMSterlingTransformationExtender


  • 6.  Re: PROBLEM with email adapter on unix

    Posted 12/28/06 03:38 AM

    Originally posted by: SystemAdmin


    hii!!

    thanks for all your answers!
    I m working on Dstx 7.5.1 (not with 8.0 yet ;o)
    It seems to be a problem of lenght limit :(. very bad limitation if it is really.

    If I launch this command:
    dstx /ING/ADVANTAGE/gateway/mmc/STP/MAPS/GBL_MailAdapter2.sun -OAEMAIL1 "' -T /BBL/ADVANTAGE/gateway/mmc/STP/MAPS/test01.mtr -SERVER smtp.be.intranet -FROM
    aaa_order -TO stephane.lallemand@ing.be -TO steph.lallemand@gmail.com -SUBJECT "0123456789012345678901234567890123456789" '"

    All is working. If I add a new TO parameter, it crashes ... :o(
    How can I send a mail with eg 10 recipients and a subject with 150 char ... ? without using mailing lists ?

    thanks,

    stephane
    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender


  • 7.  Re: PROBLEM with email adapter on unix

    Posted 12/28/06 04:27 PM

    Originally posted by: SystemAdmin


    Use the MIME adapter with the Email adapter and the -RAW parameter.

    The recipients then need to be mapped as data rather than adapter parameters.

    Cheers,
    Olly.
    #IBMSterlingTransformationExtender
    #DataExchange
    #IBM-Websphere-Transformation-Extender


  • 8.  Re: PROBLEM with email adapter on unix

    Posted 12/28/06 03:49 AM

    Originally posted by: SystemAdmin


    would it be better to use VALID(PUT("EMAIL", ... ). Would I have the same limitation? or maybe forget the dstx mail adapter :o( and directly use mailx command??

    steph
    #IBMSterlingTransformationExtender
    #DataExchange
    #IBM-Websphere-Transformation-Extender


  • 9.  Re: PROBLEM with email adapter on unix

    Posted 12/28/06 09:07 AM

    Originally posted by: jvanboga


    I've never used the 'dstx' version but both 'valid(put(...' and 'put(...' all have the same limit.

    Others may have an alternative but, here, we use email lists. Partly because of the limit, mostly because email lists avoid code changes and developer envolvment.

    As I see it, other than the suggestions above, you have several options...

    1. send the email multiple times
    2. provide a shorter subject line and include the current subject as part of the email body.
    3. create an email run map that points to the paths defined there by avoiding the need for it in the cmd line.
    4. create an email run map packaging the data from the paths define in your cmd line.
    5. have a separate map move your trace file from the default directory to the defined path.
    6. upgrade to a more recent version.
    7. use a combo of any of the above....


    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender
    #DataExchange


  • 10.  Re: PROBLEM with email adapter on unix

    Posted 12/28/06 09:10 AM

    Originally posted by: jvanboga


    sorry I forgot... you could use a different email tool/app too.
    #IBMSterlingTransformationExtender
    #DataExchange
    #IBM-Websphere-Transformation-Extender


  • 11.  Re: PROBLEM with email adapter on unix

    Posted 12/28/06 03:40 PM

    Originally posted by: SystemAdmin


    I have executed a UNIX script from the Shell Script adapter. I built the variable text, mailing list, etc., in a prior output card or cards and wrote each to a file. The script then used the files to build the mail command line.
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender


  • 12.  Re: PROBLEM with email adapter on unix

    Posted 12/28/06 04:07 PM

    Originally posted by: SystemAdmin


    I found that the subject cannot contain spaces. When I tried to use them I received errors but when underscores were used in their place, everything worked fine.
    #IBMSterlingTransformationExtender
    #DataExchange
    #IBM-Websphere-Transformation-Extender


  • 13.  Re: PROBLEM with email adapter on unix

    Posted 12/28/06 04:16 PM

    Originally posted by: jvanboga


    You can have spaces in the subject but you need to punctuate as above...

    Jim, I thought I tried that in Windows and it didn't work. Is it diff in Unix or is it my memory having an issue???
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender


  • 14.  Re: PROBLEM with email adapter on unix

    Posted 12/28/06 10:15 PM

    Originally posted by: SystemAdmin


    I don't recall trying to email from a batch file under Windows. What executable do you run? For UNIX, Output card 1 built the message body, message.txt. Output card 2 built the script. Output card 3 ran the shell script. The script was just: mail -s "Some Subject" jim@abc.com -c bob@abc.com -c jill@xyz.com < message.txt.
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender


  • 15.  Re: PROBLEM with email adapter on unix

    Posted 12/29/06 04:50 AM

    Originally posted by: SystemAdmin


    thanks Jim !!! I m going to use unix script ... that the only way to be sure the mail will be sent. Hope this adapter will be corrected in the future :o(
    stephh
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange


  • 16.  Re: PROBLEM with email adapter on unix

    Posted 12/29/06 04:52 AM

    Originally posted by: SystemAdmin


    You must put simple quote (double quote work too) : -SUB 'this is the sub'

    steph
    #IBMSterlingTransformationExtender
    #DataExchange
    #IBM-Websphere-Transformation-Extender