mailin-api/mailin-api-php

It is not possible to use the http-headers for send_email()

slue opened this issue · 1 comments

slue commented

As stated in the api-docs (https://apidocs.sendinblue.com/tutorial-sending-transactional-email/) it is possible to set headers for transactional mails:

  • X-Mailin-custom
  • X-Mailin-IP
  • X-Mailin-Tag

But I cannot set any headers in the mailin.php

thanks, christoph

Hello Christoph,

Thank you for contacting us.

It is possible to set headers for transactional mails in headers input parameter of send_email() api.
For example:
"headers" => array("Content-Type"=> "text/html; charset=iso-8859-1","X-param1"=> "value1", "X-param2"=> "value2","X-Mailin-custom"=>"my custom value", "X-Mailin-IP"=> "102.102.1.2", "X-Mailin-Tag" => "My tag"),

Please refer the second sample here

Regards,
SendinBlue Team