Announcement

Collapse
No announcement yet.

Send an email from built-in function with the espocrm

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Send an email from built-in function with the espocrm

    I would like to send an email from built-in function with the espocrm, can you help me?

  • #2
    PHP Code:

    $email 
    $this->getEntityManager()->getEntity('Email');
    $email->set(array(
         
    'to' => 'address@address',
         
    'name' => 'subject',
         
    'body' => 'body',
         
    'isHtml' => true
    ));

    $this->getEmailSender()->send($email); 
    See application/Espo/Services/Email.php how to get Email Sender in your code.

    Comment


    • #3
      Thanks you

      Comment

      Working...
      X