Email Attachment

Discussions related to customizing hooks. Hooks are documented at http://bigprof.com/appgini/help/advanced-topics/hooks/
Post Reply
User avatar
aarlauskas
Veteran Member
Posts: 127
Joined: 2019-04-28 18:03
Location: Medway, UK

Email Attachment

Post by aarlauskas » 2021-01-03 21:01

Hi, I have a form which includes image field. There is also an email script in hook that sends an email with some of the field data when this form is submitted. If user attach the image in the form, is there a way to include the image/attachment in the email?
Thanks.

fciprian
Veteran Member
Posts: 52
Joined: 2020-04-20 10:51

Re: Email Attachment

Post by fciprian » 2021-02-13 23:38

Any news about this topic?

User avatar
onoehring
AppGini Super Hero
AppGini Super Hero
Posts: 1156
Joined: 2019-05-21 22:42
Location: Germany
Contact:

Re: Email Attachment

Post by onoehring » 2021-02-14 08:50

Hi,

I would suggest looking into AG genereated code. In incFunctions.php you find the sendmail function which essentially uses phpmailer ( https://github.com/PHPMailer/PHPMailer ). Probably it's the easiest to check the sendmail code, copy and adjust it into your own function and add the option to give attachments on the way.
Please see the docs in the mentioned URL.

Olaf

Post Reply