rubo77 Posted August 29 Share Posted August 29 Is it possible to create a new email from external by calling a certain API call or such ? We need to create emails from within another php-service on the same machine Link to comment Share on other sites More sharing options...
d00p Posted August 29 Share Posted August 29 https://docs.froxlor.org/latest/api-guide/commands/emails.html Link to comment Share on other sites More sharing options...
rubo77 Posted August 29 Author Share Posted August 29 there it states: Zitat EmailDomains.add You cannot directly add email-domains is it easy to learn how the api calls work? (Example) Maybe We can develop the missing function. Or is someone working on this already (maybe on https://github.com/Froxlor/Froxlor/ ) Link to comment Share on other sites More sharing options...
rubo77 Posted August 29 Author Share Posted August 29 I guess we would have to program the public function add(): https://github.com/Froxlor/Froxlor/blob/a7198f58ce9787c7b67210d6d2eec8f95ceea775/lib/Froxlor/Api/Commands/EmailDomains.php#L150 Link to comment Share on other sites More sharing options...
d00p Posted August 29 Share Posted August 29 it's literally in the comment...you just cannot add emaildomains directly, you just need to use the "Domains.add" api call to create a domain which has email usage enabled Link to comment Share on other sites More sharing options...
d00p Posted August 29 Share Posted August 29 Froxlor itself basically always uses its API internally...so everything you can do within the webui, you can most likely also do with the API externally Link to comment Share on other sites More sharing options...
rubo77 Posted August 29 Author Share Posted August 29 OK, so If I already created the domain for the email, lets say "example.com" , to add "jon.dow@example.com" I guess I need EmailAccounts.add Link to comment Share on other sites More sharing options...
d00p Posted August 29 Share Posted August 29 29 minutes ago, d00p said: https://docs.froxlor.org/latest/api-guide/commands/emails.html my initial answer, remember that adding an address does not automatically make it an account, to make it an account you'd also have to invoke https://docs.froxlor.org/latest/api-guide/commands/emailaccounts.html for the newly created address Link to comment Share on other sites More sharing options...
rubo77 Posted August 29 Author Share Posted August 29 👌perfect ! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now