Announcement

Collapse
No announcement yet.

Script example needed...

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

    Script example needed...

    Does anyone have an example of how to send email using a script? I looked through the help files... I guess my ol' timers is kicking in...

    Thanks,
    Jerry

    #2
    hs.SendEmail "to@gmail.com","from@gmail.com","Subject" , "Body"

    http://homeseer.com/support/homeseer...2/homeseer.htm


    That it sir?


    ~Bill

    Comment


      #3
      That's great Bill!!! I've worked on this for a couple of hours now... I'm wondering, is it possible to send an attachment to?

      Comment


        #4
        I think that would be

        hs.SendEmail "to@gmail.com","from@gmail.com","Subject" , "Body" , "C:\fred.txt"


        ~Bill

        Comment


          #5
          thanks Bill!!!!!!!

          Comment


            #6
            Sorry - that link copied wrong.


            SendEmail
            Purpose
            This function will send an E-mail message.

            The attach parameter is useful if you would like to E-mail a picture taken with a digital camera. Just attach the path to any picture file created by the camera.

            Parameters
            Parameter: mto
            Type: string
            Description: This is the address you are sending the E-mail to.

            Parameter: mfrom
            Type: string
            Description: This is the address you are sending from. Note that some ISPs will not allow you to put just anything in this field. You may be required to put your real E-mail address here. If you are using MAPI to handle your E-mail, MAPI will enter your E-mail address that is associated with your default E-mail account. In that case, this field will be ignored.

            Parameter: msubject
            Type: string
            Description: This is the subject of the E-mail.

            Parameter: message
            Type: string
            Description: This is the body of the E-mail.

            Parameter: attach (optional)
            Type: string
            Description: This is the absolute path name to the file to be attached to the E-mail.

            Returns
            None.


            ~Bill

            Comment


              #7
              Originally posted by Bill Brower View Post
              I think that would be

              hs.SendEmail "to@gmail.com","from@gmail.com","Subject" , "Body" , "C:\fred.txt"
              What if I only wanted to send a JPG...not my fred.txt file? I find my fred.txt file to be VERY personal...and do not want to send it out in e-mail!!

              ;-)

              --Dan

              Just busting on you Bill!!
              Tasker, to a person who does Homeautomation...is like walking up to a Crack Treatment facility with a truck full of 3lb bags of crack. Then for each person that walks in and out smack them in the face with an open bag.

              Comment


                #8
                And your pictures of Fred isn't? x2


                ~Bill

                Comment


                  #9
                  Thanks Bill, I read that and had co-workers looking at me.

                  I've not had a good laugh like that in a while!

                  --Dan
                  Tasker, to a person who does Homeautomation...is like walking up to a Crack Treatment facility with a truck full of 3lb bags of crack. Then for each person that walks in and out smack them in the face with an open bag.

                  Comment

                  Working...
                  X