Want to automate a few things

Diamundo

New member
Joined
Jun 28, 2016
Messages
2
Hello,

I am looking to automate a few things in DirectAdmin.
We currently do the following tasks by hand, but that's becoming a bit of a pain.

- Given the "to" e-mailaddress and its forward alias, create a forward e-mailaddress
- Add this forward e-mailaddress to a mailinglist (or possibly multiple ones in the future)
- Send an invite to Google Drive
- Send an invite to our Slack
- Send an e-mail with the starting info.

The last three points can also be done in a single e-mail where we put the links, which is how I'm planning to automate it.

If possible, I want to run this script on a different site than the domain where it's supposed to do the above things (i.e. script on siteA.com/newPersonScript.php, but with [email protected]). Both sites are on rented hosting, I haven't found the command line yet. I do have FTP credentials.

And since I have no idea where to start, I thought to just ask here :) (Google wasn't very helpful...)
Can anyone help me out with an example, link to documentation or something?
I have sufficient programming knowledge, so that shouldn't be a problem.


Thanks in advance!
Sincerely,
Diamundo
 
Do you own the server or you have just bought an hosting package?
Do you have DA Login Keys enabled for your account?
Is not that clear when you want those action to take place, if is after an e-mail account creation in DA this can be acchieved with pre/post script commands, but just if you have root access to the server, otherwise you may need to ask your hosting company to do that for you (very unlickely they will)...

You may also write your own form and use DA API's to create the email address and than with some PHP coding acchieve all the other needs.

Regards
 
I have no idea, but I believe we don't own the server - we just rent it.

DA Login keys: no idea whatsoever what that is.

The actions can take place whenever I (user) want to. I was thinking about a script, where I give a first and last name and e-mailaddress, and when I click submit it does the above actions.

I was indeed thinking about simply writing my own form... But the DA API is the part where I require help. Can you help me?
 
Sorry, i'm not a programmer, but there is a PHP loader somewhere here on the forum and few example on how to use it, it should be quite easy.

Regards
 
Back
Top