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

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -