My script is same as yours but with my values it sends and I can call it to send but soon as I start the script it sends the email.
I want to be able to start the script then it waits until I call the function then sends the email, at the moment soon as I start the script it sends the email so everytime I start the script I will get a email then I will have recall it to send when I want it to send.
Basicly I don't want it to send the email when I start the script only when I call the function.
Thanks.
P.S. Good work on script I tried to find something like this a very long time ago when I started playing with autoit functions but default Inets never seem to work since free smtp servers without auth don't seem to exist.