Community discussions

MikroTik App
 
tabate47
Long time Member
Long time Member
Topic Author
Posts: 510
Joined: Wed Mar 13, 2013 5:23 am
Location: Los Angeles

How do I send an email to 2 addresses in Netwatch Script?

Sun Mar 02, 2014 8:02 am

Right now I am sending an email to myself. I need the email to also go to another address. Is there a way to set it up so that the notification email will go to two separate addresses?

Thanks.
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: How do I send an email to 2 addresses in Netwatch Script

Sun Mar 02, 2014 12:02 pm

You should be able to send as many as you want. You are using a script to send the current email, correct? Just add another send to that script.
 
tabate47
Long time Member
Long time Member
Topic Author
Posts: 510
Joined: Wed Mar 13, 2013 5:23 am
Location: Los Angeles

Re: How do I send an email to 2 addresses in Netwatch Script

Sun Mar 02, 2014 8:35 pm

Here is my script:

/tool e-mail send to= mikrotik@***.com subject=([/system identity get name] . " Printer Up")

It's in the up portion of the netwatch. How would I add another address?
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: How do I send an email to 2 addresses in Netwatch Script

Sun Mar 02, 2014 8:38 pm

/tool e-mail send to= mikrotik@***.com subject=([/system identity get name] . " Printer Up")
/tool e-mail send to= anotheruser@***.com subject=([/system identity get name] . " Printer Up")
 
tabate47
Long time Member
Long time Member
Topic Author
Posts: 510
Joined: Wed Mar 13, 2013 5:23 am
Location: Los Angeles

Re: How do I send an email to 2 addresses in Netwatch Script

Sun Mar 02, 2014 9:00 pm

Wow that's too easy. I'll try it. Thanks.
 
User avatar
marioclep
Trainer
Trainer
Posts: 139
Joined: Sat Jul 11, 2009 4:36 pm
Location: Cordoba - Argentina
Contact:

Re: How do I send an email to 2 addresses in Netwatch Script

Wed Mar 05, 2014 1:12 am

/tool e-mail send to=first@email.com cc=second@email.com subject=test body=test
 
tabate47
Long time Member
Long time Member
Topic Author
Posts: 510
Joined: Wed Mar 13, 2013 5:23 am
Location: Los Angeles

Re: How do I send an email to 2 addresses in Netwatch Script

Wed Mar 05, 2014 8:35 am

Mike how would that work with more than 2 emails?

Who is online

Users browsing this forum: Bing [Bot] and 34 guests