how to send attachments using mailsender service in php code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rkaranth
    Junior Member
    • Feb 2016
    • 22

    how to send attachments using mailsender service in php code

    How to send attachments using mailsender serivce??. Currently I am using the code below which sends plain/html messages only and I want the attachment to be included with this, can anyone please help in achieving this. Thanks in advance, any guidance would be helpful

    $email->set(array(
    'to' => 'someone@example.com',
    'name' => subject,
    'body' => $msgBody,
    'isHtml' => true
    ));

    $this->getMailSender()->send($email);
  • yuri
    Member
    • Mar 2014
    • 8485

    #2
    Look into application/Espo/Core/Mail/Sender.php
    It should be array of attachment entities.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    Working...