From Sound to Email Alert

 

I am a relative newbie in programming.

Is it possible to change a line of code that plays a sound alert to one that sends out e-mail alert instead?

if (SoundON == true && Bars>alertBar) {PlaySound("Alert.wav");alertBar = Bars;}

I tried substituting it with

if (EmailON == true && Bars>alertBar) {SendMail("Alert");alertBar=Bars;}

but it doesn't work.

Can some one kindly help me out?

Thank you.

 

Read the Documentation for SendMail . . . it takes two variables.

Does your test email sent from Tools > Options > Email work ?

 
RaptorUK:

Read the Documentation for SendMail . . . it takes two variables.

Does your test email sent from Tools > Options > Email work ?


Thank you RaptorUK. Learn something new everyday. Yes test email was OK. It was the variables.

Much appreciated.

Reason: