getgrav / grav-plugin-email

Grav Email Plugin
http://getgrav.org
MIT License
37 stars 29 forks source link

File Attachments in Version 4.0 onward #174

Closed jcpwdev closed 1 year ago

jcpwdev commented 1 year ago

Hi there,

I was using the now deprecated attachement() method and functionality of the 3.x versions.

For now i failed to figure out how to do it in 4.0. Any hint would be greatly appreciated! Symfony Mailer has the addPart() Stuff, but if i am not mistaken this not exposed via the E-Mail-Plugin?

Best! Jo

rhukster commented 1 year ago

As we are using Symfony Mailer v5.4, you can actually use attatchFromPath() which is what we're doing internally:

https://github.com/getgrav/grav-plugin-email/blob/develop/email.php#L142

jcpwdev commented 1 year ago

Hi Andy, thanks a ton for pointing me in the right direction! Consider this issue done :)

rhukster commented 1 year ago

np.