rubo77 Posted August 29, 2023 Posted August 29, 2023 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
d00p Posted August 29, 2023 Posted August 29, 2023 https://docs.froxlor.org/latest/api-guide/commands/emails.html
rubo77 Posted August 29, 2023 Author Posted August 29, 2023 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/ )
rubo77 Posted August 29, 2023 Author Posted August 29, 2023 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
d00p Posted August 29, 2023 Posted August 29, 2023 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
d00p Posted August 29, 2023 Posted August 29, 2023 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
rubo77 Posted August 29, 2023 Author Posted August 29, 2023 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
d00p Posted August 29, 2023 Posted August 29, 2023 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
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