Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 4 of 4

This is a discussion on Emails and scripts in the Open Discussion & Chit-chat forum
Hi everybody and happy new year! I have a problem, and got informed by the staff to write a post here at the forum to ...

  1. #1
    JPC Member
    Join Date
    Jan 2007
    Posts
    2

    Emails and scripts

    Hi everybody and happy new year!

    I have a problem, and got informed by the staff to write a post here at the forum to see if anyone can help me. So here goes:

    1) Upon a transaction, I will recieve an email with the customer's information (name, street etc)
    2) This information must be converted and then sent to the production company
    3) With the information, the production company will then produce the product and ship it to the customer

    I'd like to have the information from the transaction company converted automatically on the mailserver, and then have the mailserver to send the new file to the production company (so that I never see this process).

    Is there a suitable script that takes care of this process?

    Also, the production company offers a variety of different ways to recieve this information, but the one I found (which I believe is most correct) is a XML web service (SOAP) which can be found at http://www.swiftcd.com/faq/xml/webservice.html

    Thank you for any suggestions in this matter!

    Best Regards
    Marcus Ingemann
    -FortuneWell.com

  2. #2
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    Marcus,

    What you are describing is certainly doable. I highly doubt that you'll be able to find an existing script that will do it because it is a specialized application. Nonetheless it sounds like a pretty straightforward process that shouldn't be too hard to create from scratch.

    The most logically way to do this is to have a script capture the email when it arrives. You can set up a forwarder in cPanel that points at a script instead of another email address by specifying the path to the script instead of an address as follows:

    Code:
    "|/home/USERNAME/bin/yourscript"
    The server supports many different languages, but the most commonly used ones are probably Perl and PHP (and maybe Python). All three should be able to support the SOAP transactions.

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

  3. #3
    JPC Member
    Join Date
    Jan 2007
    Posts
    2
    Thanks mate, I'll definitly check into it. I don't know too much about programming, but a couple of my friends do, so they might be able to create the scripts for me.

    Again, thanks for your reply
    /Marcus

  4. #4
    草分け
    Join Date
    Aug 2006
    Location
    Bellthorpe
    Posts
    214
    Quote Originally Posted by jason View Post
    You can set up a forwarder in cPanel that points at a script instead of another email address by specifying the path to the script ...
    That's terrific! I haven't seen anything like that in the cPanel documents. It answers a pressing need I have (automatic unsubscribe from a mailing list).

    The server supports many different languages, but the most commonly used ones are probably Perl and PHP (and maybe Python). All three should be able to support the SOAP transactions.
    I've been using Euphoria for all my CGI stuff. It will handle this kind of application well.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •