Set the email details for a Purchase order

Parameters

id

This can be the ID of the purchase order.

email

The email address to be set.

text

The email message to be set.

subject

The email subject to be set.

sender

The senders email to be set.

name

The name to be set for the email.

Example

FM_api('PurchaseOrder_orderEmail', ['id' => '17', 'email' => 'email@gmail.com', 'text' => 'Test text', 'subject' => 'Test email', 'sender' => 'fieldmotion@gmail.com', 'name' => 'Test name'])

Result

On Success

{"ok":1}

On Failure

If the purchase order no longer exists. {"error" => "purchase order no longer exists"}