{"id":58898,"date":"2016-09-09T07:12:36","date_gmt":"2016-09-09T07:12:36","guid":{"rendered":"http:\/\/webkul.com\/blog\/?p=58898"},"modified":"2024-02-23T04:38:12","modified_gmt":"2024-02-23T04:38:12","slug":"attach-pdf-file-magento-2-email","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/attach-pdf-file-magento-2-email\/","title":{"rendered":"How to attach Pdf file in Magento 2 Email"},"content":{"rendered":"\n<p>Here we learn, how to send attachment in magento 2 email programmatically. I have attached pdf file here.<\/p>\n\n\n\n<p>Magento 2 uses the lib\/internal\/Magento\/Framework\/Mail\/Template\/TransportBuilder class to send mail, which doesn&#8217;t support attachment yet.<\/p>\n\n\n\n<p>TransportBuilder class uses the lib\/internal\/Magento\/Framework\/Mail\/Message.php to prepare the email message.<\/p>\n\n\n\n<p>Here we can observe that Message class extends \\Zend_Mail so we can add attachment functionality in TransportBuilder Class.<\/p>\n\n\n\n<p>Please note that the below&nbsp;<strong>solution is compatible till Magento 2.3.5&nbsp;version only<\/strong>. If your store is running on versions above <strong>Magento 2.3.5<\/strong>, you may opt for <a href=\"https:\/\/store.webkul.com\/magento2-order-attachment.html\">Order Attachments for Magento 2<\/a> extension in which the customers can upload file attachments with the order.<\/p>\n\n\n\n<p>1. create your TransportBuilder class, Webkul\/EmailDemo\/Model\/Mail\/TransportBuilder.php<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?php\n\/**\n * Webkul Software.\n *\n * @category  Webkul\n * @package   Webkul_EmailDemo\n * @author    Webkul\n * @copyright Copyright (c) 2010-2016 Webkul Software Private Limited (https:\/\/webkul.com)\n * @license   https:\/\/store.webkul.com\/license.html\n *\/\n\nnamespace Webkul\\EmailDemo\\Model\\Mail;\n\nclass TransportBuilder extends \\Magento\\Framework\\Mail\\Template\\TransportBuilder\n{\n    \/**\n     * @param Api\\AttachmentInterface $attachment\n     *\/\n    public function addAttachment($pdfString)\n    {\n        $this-&gt;message-&gt;createAttachment(\n            $pdfString,\n            &#039;application\/pdf&#039;,\n            \\Zend_Mime::DISPOSITION_ATTACHMENT,\n            \\Zend_Mime::ENCODING_BASE64,\n            &#039;attatched.pdf&#039;\n        );\n        return $this;\n    }\n}<\/pre>\n\n\n\n<p>2. Here i have created sample Email Sending Helper,&nbsp;Webkul\/EmailDemo\/Helper\/Data.php<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?php\n\/**\n * Webkul Software.\n *\n * @category  Webkul\n * @package   Webkul_EmailDemo\n * @author    Webkul\n * @copyright Copyright (c) 2010-2016 Webkul Software Private Limited (https:\/\/webkul.com)\n * @license   https:\/\/store.webkul.com\/license.html\n *\/\nnamespace Webkul\\EmailDemo\\Helper;\n\nuse Magento\\Customer\\Model\\Session;\n\n\/**\n * Webkul EmailDemo Helper. you can write email sending code where ever you want.\n *\/\nclass Data extends \\Magento\\Framework\\App\\Helper\\AbstractHelper\n{\n    const XML_PATH_EMAIL_DEMO = &#039;emaildemo\/email\/email_demo_template&#039;;\n\n    protected $_inlineTranslation;\n\n    protected $_transportBuilder;\n\n    protected $_template;\n\n    protected $_storeManager;\n\n    \/**\n     * @param Magento\\Framework\\App\\Helper\\Context              $context\n     * @param Magento\\Framework\\Translate\\Inline\\StateInterface $inlineTranslation\n     * @param Magento\\Framework\\Mail\\Template\\TransportBuilder  $transportBuilder\n     * @param Magento\\Store\\Model\\StoreManagerInterface         $storeManager\n     *\/\n    public function __construct(\n        \\Magento\\Framework\\App\\Helper\\Context $context,\n        \\Magento\\Framework\\Translate\\Inline\\StateInterface $inlineTranslation,\n        \\Webkul\\EmailDemo\\Model\\Mail\\TransportBuilder $transportBuilder,\n        \\Magento\\Store\\Model\\StoreManagerInterface $storeManager\n    ) \n    {\n        $this-&gt;_objectManager = $objectManager;\n        parent::__construct($context);\n        $this-&gt;_inlineTranslation = $inlineTranslation;\n        $this-&gt;_transportBuilder = $transportBuilder;\n        $this-&gt;_storeManager = $storeManager;\n    }\n\n    \/**\n     * &#091;generateTemplate description].\n     *\n     * @param Mixed $emailTemplateVariables\n     * @param Mixed $senderInfo\n     * @param Mixed $receiverInfo\n     *\/\n    public function generateTemplate()\n    {\n        $pdfFile = &#039;pdf_file_path\/email.pdf&#039;;\n\n        $emailTemplateVariables&#091;&#039;message&#039;] = &#039;This is a test message.&#039;;\n        \/\/load your email tempate\n        $this-&gt;_template  = $this-&gt;scopeConfig-&gt;getValue(\n            self::XML_PATH_EMAIL_DEMO,\n            \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE,\n            $this-&gt;_storeManager-&gt;getStore()-&gt;getStoreId()\n        );\n        $this-&gt;_inlineTranslation-&gt;suspend();\n\n        $this-&gt;_transportBuilder-&gt;setTemplateIdentifier($this-&gt;_template)\n                -&gt;setTemplateOptions(\n                    &#091;\n                        &#039;area&#039; =&gt; \\Magento\\Framework\\App\\Area::AREA_FRONTEND,\n                        &#039;store&#039; =&gt; $this-&gt;_storeManager-&gt;getStore()-&gt;getId(),\n                    ]\n                )\n                -&gt;setTemplateVars($emailTemplateVariables)\n                -&gt;setFrom(&#091;\n                    &#039;name&#039; =&gt; &#039;MyName&#039;,\n                    &#039;email&#039; =&gt; &#039;myname@gmail.com&#039;,\n                ])\n                -&gt;addTo(&#039;yourname@gmail.com&#039;, &#039;Your Name&#039;)\n                -&gt;addAttachment(file_get_contents($pdfFile)); \/\/Attachment goes here.\n\n        try {\n            $transport = $this-&gt;_transportBuilder-&gt;getTransport();\n            $transport-&gt;sendMessage();\n            $this-&gt;_inlineTranslation-&gt;resume();\n        } catch (\\Exception $e) {\n            echo $e-&gt;getMessage(); die;\n        }\n    }\n}<\/pre>\n\n\n\n<p>That&#8217;s it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here we learn, how to send attachment in magento 2 email programmatically. I have attached pdf file here. Magento 2 uses the lib\/internal\/Magento\/Framework\/Mail\/Template\/TransportBuilder class to send mail, which doesn&#8217;t support attachment yet. TransportBuilder class uses the lib\/internal\/Magento\/Framework\/Mail\/Message.php to prepare the email message. Here we can observe that Message class extends \\Zend_Mail so we can add <a href=\"https:\/\/webkul.com\/blog\/attach-pdf-file-magento-2-email\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":69,"featured_media":54828,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3286,1],"tags":[3593,3594,3592,3595],"class_list":["post-58898","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-magento2-1","category-uncategorized","tag-attach-file-in-magento-email","tag-email-attachemnt","tag-magento2-email","tag-send-mail-in-magento-2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to attach Pdf file in Magento 2 Email<\/title>\n<meta name=\"description\" content=\"Here we learn, how to send attachment in magento 2 email programmatically. I have attached pdf file here. Magento 2 uses the TransportBuilder for mail.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/attach-pdf-file-magento-2-email\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to attach Pdf file in Magento 2 Email\" \/>\n<meta property=\"og:description\" content=\"Here we learn, how to send attachment in magento 2 email programmatically. I have attached pdf file here. Magento 2 uses the TransportBuilder for mail.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/attach-pdf-file-magento-2-email\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2016-09-09T07:12:36+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-02-23T04:38:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/07\/Magneto-Code-Snippet.png\" \/>\n\t<meta property=\"og:image:width\" content=\"825\" \/>\n\t<meta property=\"og:image:height\" content=\"260\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Mahesh Singh\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mahesh Singh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/attach-pdf-file-magento-2-email\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/attach-pdf-file-magento-2-email\/\"},\"author\":{\"name\":\"Mahesh Singh\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/53d3b977a0ab5adcf32aef9f97e595bd\"},\"headline\":\"How to attach Pdf file in Magento 2 Email\",\"datePublished\":\"2016-09-09T07:12:36+00:00\",\"dateModified\":\"2024-02-23T04:38:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/attach-pdf-file-magento-2-email\/\"},\"wordCount\":148,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/attach-pdf-file-magento-2-email\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/07\/Magneto-Code-Snippet.png\",\"keywords\":[\"Attach file in Magento Email\",\"Email attachemnt\",\"Magento2 Email\",\"Send Mail in Magento 2\"],\"articleSection\":[\"Magento2.1\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/attach-pdf-file-magento-2-email\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/attach-pdf-file-magento-2-email\/\",\"url\":\"https:\/\/webkul.com\/blog\/attach-pdf-file-magento-2-email\/\",\"name\":\"How to attach Pdf file in Magento 2 Email\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/attach-pdf-file-magento-2-email\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/attach-pdf-file-magento-2-email\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/07\/Magneto-Code-Snippet.png\",\"datePublished\":\"2016-09-09T07:12:36+00:00\",\"dateModified\":\"2024-02-23T04:38:12+00:00\",\"description\":\"Here we learn, how to send attachment in magento 2 email programmatically. I have attached pdf file here. Magento 2 uses the TransportBuilder for mail.\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/attach-pdf-file-magento-2-email\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/attach-pdf-file-magento-2-email\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/attach-pdf-file-magento-2-email\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/07\/Magneto-Code-Snippet.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/07\/Magneto-Code-Snippet.png\",\"width\":825,\"height\":260},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/attach-pdf-file-magento-2-email\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to attach Pdf file in Magento 2 Email\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/53d3b977a0ab5adcf32aef9f97e595bd\",\"name\":\"Mahesh Singh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f4c013ebf7008223382b8a49203e6d354677e8baff0eca373e6e4266efa762da?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/f4c013ebf7008223382b8a49203e6d354677e8baff0eca373e6e4266efa762da?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Mahesh Singh\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/mahesh721\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to attach Pdf file in Magento 2 Email","description":"Here we learn, how to send attachment in magento 2 email programmatically. I have attached pdf file here. Magento 2 uses the TransportBuilder for mail.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/attach-pdf-file-magento-2-email\/","og_locale":"en_US","og_type":"article","og_title":"How to attach Pdf file in Magento 2 Email","og_description":"Here we learn, how to send attachment in magento 2 email programmatically. I have attached pdf file here. Magento 2 uses the TransportBuilder for mail.","og_url":"https:\/\/webkul.com\/blog\/attach-pdf-file-magento-2-email\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2016-09-09T07:12:36+00:00","article_modified_time":"2024-02-23T04:38:12+00:00","og_image":[{"width":825,"height":260,"url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/07\/Magneto-Code-Snippet.png","type":"image\/png"}],"author":"Mahesh Singh","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Mahesh Singh","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/attach-pdf-file-magento-2-email\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/attach-pdf-file-magento-2-email\/"},"author":{"name":"Mahesh Singh","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/53d3b977a0ab5adcf32aef9f97e595bd"},"headline":"How to attach Pdf file in Magento 2 Email","datePublished":"2016-09-09T07:12:36+00:00","dateModified":"2024-02-23T04:38:12+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/attach-pdf-file-magento-2-email\/"},"wordCount":148,"commentCount":2,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/attach-pdf-file-magento-2-email\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/07\/Magneto-Code-Snippet.png","keywords":["Attach file in Magento Email","Email attachemnt","Magento2 Email","Send Mail in Magento 2"],"articleSection":["Magento2.1"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/attach-pdf-file-magento-2-email\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/attach-pdf-file-magento-2-email\/","url":"https:\/\/webkul.com\/blog\/attach-pdf-file-magento-2-email\/","name":"How to attach Pdf file in Magento 2 Email","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/attach-pdf-file-magento-2-email\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/attach-pdf-file-magento-2-email\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/07\/Magneto-Code-Snippet.png","datePublished":"2016-09-09T07:12:36+00:00","dateModified":"2024-02-23T04:38:12+00:00","description":"Here we learn, how to send attachment in magento 2 email programmatically. I have attached pdf file here. Magento 2 uses the TransportBuilder for mail.","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/attach-pdf-file-magento-2-email\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/attach-pdf-file-magento-2-email\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/attach-pdf-file-magento-2-email\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/07\/Magneto-Code-Snippet.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/07\/Magneto-Code-Snippet.png","width":825,"height":260},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/attach-pdf-file-magento-2-email\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to attach Pdf file in Magento 2 Email"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/53d3b977a0ab5adcf32aef9f97e595bd","name":"Mahesh Singh","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/f4c013ebf7008223382b8a49203e6d354677e8baff0eca373e6e4266efa762da?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f4c013ebf7008223382b8a49203e6d354677e8baff0eca373e6e4266efa762da?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Mahesh Singh"},"url":"https:\/\/webkul.com\/blog\/author\/mahesh721\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/58898","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/69"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=58898"}],"version-history":[{"count":6,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/58898\/revisions"}],"predecessor-version":[{"id":423930,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/58898\/revisions\/423930"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media\/54828"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=58898"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=58898"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=58898"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}