php - How to use variables in mailgun API? -


how can use variables in mailgun?

in test email (test@example.com) added following variable

{"age": 20} 

but not go used when creating mail.

here goes code when mail sent.

$mailformat = "code html :d"; $result = $mgclient->sendmessage($domain, array(     'from'    => 'example <example@example.com>',     'to'      => 'test@example.com',     'subject' => '%recipient_fname%, testing mail',     'html'    => $mailformat )); 

from documentation:

v: prefix followed arbitrary name allows attach custom json data message. see attaching data messages more information.


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -