How to send an email using a SendGrid template with php api? -
i have created template in sendgrid account i'd use in php application.
i'm sending emails using account, have code html right inside app, doesn't provide flexibility need.
i couldn't find method in api select template want use , replace variables....
any idea?
thanks
after digging through github found code snippet works me... hope helps you.
$mail->settemplateid("xxxxxxxxxxxxxxxxxxxx"); // put template id in web console after create template
Comments
Post a Comment