Dolibarr : emailing command line [EN/FR]

Hello, (french bellow)

I want to send email with command line. The command that is given by Dolibarr is :

php ./scripts/emailings/mailing-send.php 4 grenaud

But when i open my ssh client i have the return

Could not open input file: ./scripts/emailings/mailing-send.php

I think i must had something at the end of command but don’t know what.
Thanks in advanced for your help.


Bonjour,

J’aimerais envoyer un email en ligne de commande. Dolibarr me donne la commande suivante :
php ./scripts/emailings/mailing-send.php 4 grenaud

Mais quand je lance la commande dans mon client SSH, j’ai le message d’erreur suivant :
Could not open input file: ./scripts/emailings/mailing-send.php

J’imagine que je dois rajouter quelque chose à la commande pour lui indiquer ou est mon Dolibarr, mais je ne sais pas quoi et j’ai besoin de votre aide et vos lumières.

Merci beaucoup par avance.
On utilise Dolibarr pour une asso loi 1901.

Can you try with the full path?
php /var/www/dolibarr/scripts/emailings/mailing-send.php 4 grenaud

1 Like

Thanks a lott i don’t know the rifht way :slight_smile: it’s work perfectly

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.