Is it possible to send e-mails with login details to users manually?
The e-mail is being send automatically when somebody sings up online.
But if I add a user manually, how can i send e-mail to that user?
is there a command or a script which I can use to tell User-manager to send the e-mail to user.
You could use the built-in
/tool e-mail send
command from within RouterOS to send email to a user.
ok, but with which command will I get user data from user-manager?
(username, password, money paid, prepaid time…etc..)
Because this e-mail should contain user data.
imaljko4,
You can send anything in the body of the e-mail message.
Ex. To send User Manager data, try something like this:
First, configure all settings in: /tool e-mail.
:local useremail "";
:local emailmsg "";
/tool user-manager user {
:foreach u in=[find] do={
:set useremail [get $u email];
:set emailmsg ("User " . [get $u first-name] . " " . [get $u last-name] . "\n");
:set emailmsg ($emailmsg . "Username: " . [get $u name] . "\n");
:set emailmsg ($emailmsg . "Password: " . [get $u password] . "\n");
:set emailmsg ($emailmsg . "Credit-Left: " . [get $u credit-left] . "\n");
# you may need tls= if server requires it
/tool e-mail send to=$useremail body=$emailmsg;
}
}
thank you!
Can you give me a link where i can find all the parameters that I am able to input to get user- manager data.
I am using userman-test 4.10
Thank you
The Wiki has some documentation on User Manager v4 test:
http://wiki.mikrotik.com/wiki/User_Manager, however it doesn’t look completed yet. It should get you started though.
Also, at the console if you type: /tool user-manager then press the key, you’ll get a list of sub-menus and properties you can query (aka include in your email message).
Hope this helps.
Open Usermanager, find client.
Highight email-address. Ctrl-C.
Open email program, click New Message, Ctrl-V.
Click Send ?