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

Popular posts from this blog

html - Difficulties with background-image property -

visual studio code - What does the isShellCommand property actually do and how should you use it? -

ios - Segue not passing data between ViewControllers -