Wednesday, September 18, 2013

GENTRAN:Server send an attachment through the E-Mail gateway

Recently I was asked if there was a way to send a transaction as an attachment through the E-Mail gateway. Just a bit of history: E-Mail gateway by default will send transactions as the message text of an email.

The answer to our question is YES; however, it is one of those wonderfully undocumented features that is not a straight forward setup.

Follow these steps:
Open your GENTRAN:Server Mailbox Manager > Right click on the E-Mail Mailbox your trying to send data with. > Select Properties > then the Gateway tab > and then Configure.



Next Select Additional Mime Headers and add the following: "Content-Type: Application/X-EDI;"



Your all done, just keep hitting OK until your out of the mailbox properties.

Please Note that a couple readers of this Blog have pointed out that there is another Mime Header you can try if for some reason you do not get the desired result using the above:
"Content-Disposition: attachment;"

Happy Gentraning.

3 comments:

  1. I am having trouble getting Process Control to "see" my mailbox using email gateway; it does not appear in the drop-down box.

    ReplyDelete
  2. I am having trouble getting Process Control to "see" my mailbox using email gateway; it does not appear in the drop-down box.

    ReplyDelete
    Replies
    1. For the mailbox to show up in the dropdown you will need to assign the mailbox as the default destination under a trading partner. The Trading Partner doesn't actually have to be an actual partner, you could create a dummy partner solely for the purpose of forcing the mailbox to show up in the list. - Stephen

      Delete