Send Email Attachments With MailJet

I didn’t use the mailjet wrapper, instead I used curl to call the request. Here’s an example code to send a pdf attachment file with mailjet. I believe its similar to the code in their documentation. function sendMailjetAttachment($email = '', $name = '', $subject = '', $message = '', $file = '') { $mailjetApiKey = ''; $mailjetApiSecret = ''; $pdfBase64 = base64_encode(file_get_contents($file)); $data = [ 'Messages' => [ [ 'From' => [ 'Email' => "[email protected]", 'Name' => "From Email" ],

Continue Reading

Site Footer

Sliding Sidebar

RYAN OUN

Nice to meet you, my name is Ryan and I build stuff for the web. Welcome to my website where you can learn about me and my interests.

USEFUL LINKS