/** * Send mail-like messages to the Team inbox of a flow * * @param string $flowToken * @param string $source * @param string $fromAddress * @param string $subject * @param string $content * @param array $options * @return bool True on success, False on failure */ public static function pushToTeamInbox($flowToken, $source, $fromAddress, $subject, $content, $options = array()) { $data = array('source' => $source, 'from_address' => $fromAddress, 'subject' => $subject, 'content' => $content); if (isset($options['tags'])) { $options['tags'] = str_replace(' ', '', $options['tags']); } $data = array_merge($data, $options); return PHPFlow::postRequest(sprintf(PHPFlowEndPoint::TEAM_INBOX, $flowToken), $data); }