Hello,
I am looking for a way to import a list of eMail addresses into the mailinglist by job.
The mail addresses are in a SQL database. But I have understood so far that there is no direct way to do this.
But I could of course write this list via PHP into a .txt or similar.
Can I import this list automatically by task, e.g. every hour?
I know the solution is somewhere here:
But how do I get Plesk to import content from a text file here, and then how exactly do I run this command via cronjob?
Glad about any hint.
Thank you
Dennis
I am looking for a way to import a list of eMail addresses into the mailinglist by job.
The mail addresses are in a SQL database. But I have understood so far that there is no direct way to do this.
But I could of course write this list via PHP into a .txt or similar.
Can I import this list automatically by task, e.g. every hour?
I know the solution is somewhere here:
Code:
plesk bin maillist --update MailinglistName -members add:[email protected] -domain example.com
But how do I get Plesk to import content from a text file here, and then how exactly do I run this command via cronjob?
Glad about any hint.
Thank you
Dennis