Announcement

Collapse
No announcement yet.

Auto email after upload

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Auto email after upload

    Hello,

    Does anyone know a good utility/windows component to allow an automated email to be triggered when Actinic has performed an upload? I though maybe I could use the 'run file after upload' option to trigger a batch file.

    The email can be the same each time as I only need to be notified.

    Point being I can then ensure that the froogle feed etc is updated to match the new shop product lines.
    Blog, Twitter, Facebook
    Actinic Ecommerce, CMS and Video production

    www.petraboase.com
    www.progrow.co.uk
    www.christopherpiperwines.co.uk
    www.cheeksandcherries.co.uk
    www.skatewarehouse.co.uk

    #2
    You could add some Perl to MergeDiff.pl that sends an email. This routine is run at the end of every upload. You could call sub SendMail in ACTINIC.pm to do the actual work.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Originally posted by NormanRouxel
      You could add some Perl to MergeDiff.pl that sends an email. This routine is run at the end of every upload. You could call sub SendMail in ACTINIC.pm to do the actual work.
      Sounds great.....Any idea where I can learn more about this please?

      Alex
      Blog, Twitter, Facebook
      Actinic Ecommerce, CMS and Video production

      www.petraboase.com
      www.progrow.co.uk
      www.christopherpiperwines.co.uk
      www.cheeksandcherries.co.uk
      www.skatewarehouse.co.uk

      Comment


        #4
        Open MergeDiff.pl in a plain text editor then find the following lines:
        Code:
        SendResponse("OK\n");
        CompleteResponse();
        exit;
        Then edit it to have something like this
        Code:
        SendResponse("OK\n");
        CompleteResponse();
        #
        # Send upload notification
        #
        ACTINIC::SendMail("<Actinic:Variable Name="SmtpServer"/>",
        	'your_email_address@somewhere.com',
        	'The email subject',
        	'Your message');	
        exit;
        Before you try this don't forget to replace the dummy eamil address with yours.
        Please note the usual disclaimer on script customisation applies here.
        Zoltan
        Actinic Software
        www.actinic.co.uk

        Comment


          #5
          Easiest way to do this would be to use our One Stop Automation product and schedule one task to upload and then schedule a task to upload to froogle.

          Regards,
          Jan Strassen, Mole End

          Comment


            #6
            Originally posted by Jan
            Easiest way to do this would be to use our One Stop Automation product and schedule one task to upload and then schedule a task to upload to froogle.

            Regards,
            Thanks for this Jan,

            However the set-up we have already creates quite a complicated Froogle feed based on an export from the clients in-house database. All I need to know is when they have uploaded so I can keep it all in sync (and keep an eye on what they are doing!).

            Alex
            Blog, Twitter, Facebook
            Actinic Ecommerce, CMS and Video production

            www.petraboase.com
            www.progrow.co.uk
            www.christopherpiperwines.co.uk
            www.cheeksandcherries.co.uk
            www.skatewarehouse.co.uk

            Comment


              #7
              Originally posted by zmagyar
              Open MergeDiff.pl in a plain text editor then find the following lines:
              Code:
              SendResponse("OK\n");
              CompleteResponse();
              exit;
              Then edit it to have something like this
              Code:
              SendResponse("OK\n");
              CompleteResponse();
              #
              # Send upload notification
              #
              ACTINIC::SendMail("<Actinic:Variable Name="SmtpServer"/>",
              	'your_email_address@somewhere.com',
              	'The email subject',
              	'Your message');	
              exit;
              Before you try this don't forget to replace the dummy eamil address with yours.
              Please note the usual disclaimer on script customisation applies here.
              Nice one - I shall give this a bash later.

              Maybe this is just not possible but is there anyway to find out what has been changed between each upload. I don' suppose there is a 'changelog' or similar?

              Alex
              Blog, Twitter, Facebook
              Actinic Ecommerce, CMS and Video production

              www.petraboase.com
              www.progrow.co.uk
              www.christopherpiperwines.co.uk
              www.cheeksandcherries.co.uk
              www.skatewarehouse.co.uk

              Comment


                #8
                Jam on it, eh! There's a table in the database FIleList that contains each file and its upload date and time. No idea how you'd use it though.
                Norman - www.drillpine.biz
                Edinburgh, U K / Bitez, Turkey

                Comment


                  #9
                  Originally posted by NormanRouxel
                  Jam on it, eh! There's a table in the database FIleList that contains each file and its upload date and time. No idea how you'd use it though.
                  Sorry - just trying to make things easier (and for maybe anybody who reads this thread in the future).

                  I shall investigate this table further.

                  As always, your help is invaluable Norman.

                  Alex
                  Blog, Twitter, Facebook
                  Actinic Ecommerce, CMS and Video production

                  www.petraboase.com
                  www.progrow.co.uk
                  www.christopherpiperwines.co.uk
                  www.cheeksandcherries.co.uk
                  www.skatewarehouse.co.uk

                  Comment

                  Working...
                  X