Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
#828399
I'm trying to send an email using PMFSendMessage with the following line of code.
Code: Select all
@@Test=PMFSendMessage(@@APPLICATION, "MYEMAIL@MAIL.COM", "MYEMAIL@MAIL.COM", '', '', 'Reminder Notice', 'test.html');
the result is 1 however nothing is being send to the email.
I use processmaker 3.4.6-community and I have no trouble sending email notifications with the case properties.
is there a way to fix this?
thanks in advance
-------------------------------------------------------------------------------------------------------------------------------------------------------
update:
I checked APP_MESSAGE table and there is no record of the message.
#829309
Dear all,

I also have the same problem. I tested my process in Windows Dev (PM3.4.7 Community) the code works. Emails are sent.

After deploying to Ubuntu Based Production, the PMFSendMessage failed to send any emails.
Here are the syptoms:
1. APP_MESSAGE does not have record.
2. supervisor is running ok.
Code: Select all
geh@GEH-Ubuntu-02:/opt/processmaker/workflow/engine/config$ ps -ef | grep supervisor
root      1047     1  0 Apr14 ?        00:09:28 /usr/bin/python /usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf
geh      31990 22268  0 10:56 pts/0    00:00:00 grep --color=auto supervisor
3. supervisor config file.
Code: Select all
[program:laravel-worker-workflow]
user=www-data
directory=/opt/processmaker/
command=php /opt/processmaker/processmaker artisan queue:work --workspace=workflow
stdout_logfile=/opt/processmaker/worker-workflow.log
stderr_logfile=/opt/processmaker/worker-workflow-error.log
autostart=true
autorestart=true
4. log fle
Code: Select all
> artisan queue:work --workspace=workflow --tries=10 --processmakerPath=/opt/processmaker/
[2021-07-02 09:35:38][1] Processing: Closure (JobsManager.php:187)
[2021-07-02 09:35:38][1] Processed:  Closure (JobsManager.php:187)
[2021-07-02 09:59:51][2] Processing: Closure (JobsManager.php:187)
[2021-07-02 09:59:51][2] Processed:  Closure (JobsManager.php:187)
[2021-07-02 10:29:40][3] Processing: Closure (JobsManager.php:187)
[2021-07-02 10:29:40][3] Processed:  Closure (JobsManager.php:187)
[2021-07-02 10:51:55][4] Processing: Closure (JobsManager.php:187)
[2021-07-02 10:51:55][4] Processed:  Closure (JobsManager.php:187)
[2021-07-02 10:53:16][5] Processing: Closure (JobsManager.php:187)
[2021-07-02 10:53:16][5] Processed:  Closure (JobsManager.php:187)
5. There is no entries in error log
Code: Select all
geh@GEH-Ubuntu-02:/opt/processmaker/workflow$ ls -atl  /opt/processmaker/worker-workflow-error.log
-rw-r--r-- 1 root root 4433 Apr 14 18:51 /opt/processmaker/worker-workflow-error.log
6. Test email is successful.
7. Email from Designer -> Process -> Task -> Properties -> Notification -> After routing notify the next assigned user(s) also works in the system.
8. Artisan is working, and seems no failure found
Code: Select all
geh@GEH-Ubuntu-02:/opt/processmaker/workflow$ ps -ef | grep artisan
www-data  1506  1047  0 Apr14 ?        00:00:00 php /opt/processmaker/processmaker artisan queue:work --workspace=workflow
www-data  1520  1506  0 Apr14 ?        00:00:00 sh -c /usr/bin/php7.3 artisan queue:work --workspace=workflow --tries=10 --processmakerPath=/opt/processmaker/
www-data  1524  1520  0 Apr14 ?        00:30:03 /usr/bin/php7.3 artisan queue:work --workspace=workflow --tries=10 --processmakerPath=/opt/processmaker/
geh      32440 22268  0 11:33 pts/0    00:00:00 grep --color=auto artisan

geh@GEH-Ubuntu-02:/opt/processmaker/workflow$ php /opt/processmaker/processmaker artisan queue:failed --workspace=workflow
> artisan queue:failed --workspace=workflow --processmakerPath=/opt/processmaker/
Can some one direct me to the next step for trouble shooting please?

A 1xbet clone script is a pre-designed software so[…]

4rabet clone script is enabling entrepreneurs to e[…]

Parimatch clone script is enabling entrepreneurs t[…]

In the world of cryptocurrency, a wallet is an app[…]