I want to send emails where the data is from a php/mySQL query.
I know that html will render in the email but i don’t think the php codes will.
So is there any way where i can send emails with content queried from a mySQL DB ?
I already search here, there is one topic that covers it but the person who advised suggested a pdf export or to use a 3rd party tool which in my case are not applicable.
Thank you for the help guys 🙂
Use PHPMailer to generate the email on the server. It makes it very easy to generate multi-part messages (plaintext + html, with attachments and embedded/inline images). Basically: