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
Post a Comment