Hello. I have a "Default welcome email" template set and when I manually add a user to ISPConfig, the welcome email is sent. However, when I create a client remotely, such an e-mail is not sent. Is there a way to fix this?
https://github.com/ole1986/wp-ispconfig3 - this is the plugin I use. @Jesse Norell - yes, I am creating client.
Looks like the mail is sent here, which as far as I know would run for adding a client from ui and api; perhaps the 'default_group' value on line 357 isn't set for sessions from the api? Dunno, just guessing, you could probably file an issue in gitlab on this. (bug report or feature request?)
This email is sent on wordpress side, not from ispconfig, thus I think it should be some missing feature for remote client creation (maybe?), because when I add a user from within ISPConfig email is sent.
Ah, ok, I thought you meant there was no welcome email sent by ispconfig when creating a client via the api; if the problem is in the wordpress plugin, you will need to contact the plugin author.
A bit of misunderstanding. 1. The code you've pointed is to send the email on wordpress side by the plugin 2. The email on wordpress side is being sent. 3. The email from ispconfig is not sent.
don't actually have an answer for you, but just a thought.. if you're creating your new ispconfig client from a wordpress form, using this plugin, and that wordpress itself then sends a welcome email to them, isn't it possible, even likely, that the api call the plugin uses to create the client in ispconfig is deliberately stopping ispconfig from sending it's own welcome email so that the client doesn't receive two different welcome emails?
I.e. the api script should explicitly say to ispconfig to send email? I thought this is internal function and everytime client is created, no matter how, email should be send.
i don't know, i've not looked at their code. but i believe the welcome emails can be turned off in ispconfig. perhaps when adding a client the plugin first makes an api call to turn off the welcome emails, then adds the client, and then turns the welcome emails back on afterwards?