Jump to content

Call a .exe and set variable


 Share

Recommended Posts

Hello guys,

little ask.

I'm writing two scripts, the first one retrieve data from a website and work with then (just numbers and calculations)

The second one is a module that send email (using smtp/mail UDF provide in this forum)

So, the variable $mMessage stores the body of the mail message, this variable exist in the mail module (an .exe called sender.exe)

Also, this variable exist  in the first module to.

So, i wanna "generate" the message body in the first module and send this variable to the second module, like this:

Run(@scriptDir "\sender.exe" -$mMessage)

In this way the mail Sender module will take the variable generate in the other process and put this in the mail function called mailsend() and send the message.

I'm working with .ini file to share parameters, but this time i can't use for security issues, some values in this message must be hidden!

 

Thanks in advance.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...