AOW not sending emails but working otherwise

Hi there,

I am currently trying to setup workflows in SuiteCRM 7.1 (I had just upgraded from 7.0.2 yesterday).

My workflows always used to send out emails but now they don’t. The workflows perform other tasks such as modifying records but as soon as I ask them to send out emails they stay in a ‘Running’ state. If they are asked to send out emails they will not even modify records.

My ‘Run AOW WorkFlow’ scheduler shows ‘Done’.

My email settings are fine as I receive the test email. (I used to get an authentication error in sugarcrm.log but that’s gone since I set up my email correctly).

All I am getting in my sugarcrm.log are lines similar to this:
04/02/14 08:03:01 [4400][1][FATAL] Job a29d57bb-4a12-8ce9-9411-533bc4e1c7ac (Run AOW WorkFlow) failed in CRON run

My cron job has not changed since it was last working.

I’ve even disabled Security Groups in case that was causing a conflict.

Any assistance would be really helpful as I’ve scoured the web and it seems other related issues don’t seem to have solutions that work for me. (I may be wrong & this might be already fixed!)

Thanks in advance,

Saagar

there seem to be a dropdown missing add the following drop down :-

name - aow_email_to_list

value ‘to’, display ‘To’;
value ‘cc’, display ‘Cc’;
value ‘bcc’, display ‘Bcc’;

then re-edit and save you workflow

Hi Matt,

I have done as requested but to no avail.

I even deleted the workflow and created a fresh one as well as a task.

Ok it look like it is a bug with sending emails to the related field, to fix open ‘modules/AOW_Actions/actions/actionSendEmail.php’ and change the line around 187 from :-

$emailTarget = $params['email_target'];

to

$emailTarget = $params['email'][$key];

thanks for highlighting this

Hi Matt,

Still no luck. The workflow staying in the ‘Running’ state.

I did test a on a task with ‘Completed’ status and the workflow did not fire.

can you print screen you edit view again and the drop-down you added?

Here it is

seems fine, can you post the drop drop-down in the drop-down editor?

Here it is…

Hi Matt,

I just tried to send a reminder email through the ‘Calls’ module and got this error in sugarcrm.log:

04/03/14 06:20:01 [5816][1][FATAL] SugarPHPMailer encountered an error: The following From address failed: saagar.khimasia@a.org
04/03/14 06:20:01 [5816][1][FATAL] Email Reminder: error sending e-mail (method: smtp), (error: The following From address failed: saagar.khimasia@a.org<p>SMTP server error: <saagar.khimasia@a.org>, Authentication does not match this account

</p>
)

And this when I tried to send an invite from the ‘Calls’ module:

04/03/14 06:31:46 [864][1][FATAL] SugarPHPMailer encountered an error: The following From address failed: saagar.khimasia@a.org
04/03/14 06:31:46 [864][1][FATAL] Notifications: error sending e-mail (method: smtp), (error: The following From address failed: saagar.khimasia@a.org<p>SMTP server error: <saagar.khimasia@a.org>, Authentication does not match this account

</p>
)
04/03/14 06:31:46 [864][1][FATAL] SugarPHPMailer encountered an error: Invalid address: 

Hi Matt,

The emails seem to be okay now.

Not sure why as I made no changes.

Anyhow, thanks for your assistance.

Regards,

Saagar

Hello,
I am new in suitecrm and in code. can you please guide me how to create a cron.php file to send email.
or can you please share your cron.php file to send a email and please guide me how to add file in scheduler.
Please help me it’s urgent

Thanks: