{"id":1262,"date":"2019-03-01T09:07:01","date_gmt":"2019-03-01T03:37:01","guid":{"rendered":"http:\/\/blog.openwebsolutions.in\/?p=1262"},"modified":"2019-03-01T09:07:01","modified_gmt":"2019-03-01T03:37:01","slug":"set-up-mail-functionalities-postmark-package-laravel-project","status":"publish","type":"post","link":"https:\/\/openwebsolutions.in\/blog\/set-up-mail-functionalities-postmark-package-laravel-project\/","title":{"rendered":"How to set up mail functionalities with postmark package in your Laravel project"},"content":{"rendered":"<p>Postmark is globally used package which is used to set up inbound and outbound mail functionality from your server. Postmark provides lightning and fast delivery of the transactional emails.<\/p>\n<p>To set up mail configuration with postmark is an easy way to manage your mail services and send transactional emails to the user&#8217;s mail account. It is durable fast and you can check the mail status from postmark dashboard.<\/p>\n<p>After setting up the postmark account, you will have the access of the server credentials and you can set your server in the postmark dashboard. You can now set up the postmark service into your project folder.<\/p>\n<p>You need to go to the base path of your Laravel project folder and run the following command and install the package.<\/p>\n<pre class=\"western\"><span style=\"color: #24292e;\"><span style=\"font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace;\"><span style=\"font-size: small;\">$ composer require coconutcraig\/laravel-postmark<\/span><\/span><\/span><\/pre>\n<p>This command will automatically register the package into your project folder.<\/p>\n<p>Now you can publish the config file optionally by typing the following command:<\/p>\n<pre class=\"western\"><span style=\"color: #24292e;\"><span style=\"font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace;\"><span style=\"font-size: small;\">php artisan vendor:publish --provider=<span style=\"color: #032f62;\">\"Coconuts\\Mail\\PostmarkServiceProvider\"<\/span> --tag=<span style=\"color: #032f62;\">\"config\"<\/span><\/span><\/span><\/span><\/pre>\n<p>Now you can update the .env file of your project and update the following lines.<\/p>\n<pre class=\"western\"><span style=\"color: #24292e;\"><span style=\"font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace;\"><span style=\"font-size: small;\"><span style=\"color: #005cc5;\">MAIL_DRIVER<\/span><span style=\"color: #d73a49;\">=<\/span><span style=\"color: #005cc5;\">postmark<\/span><\/span><\/span><\/span>\r\n<span style=\"color: #24292e;\"><span style=\"font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace;\"><span style=\"font-size: small;\"><span style=\"color: #005cc5;\">POSTMARK_SECRET<\/span><span style=\"color: #d73a49;\">=<\/span><span style=\"color: #005cc5;\">YOUR<\/span><span style=\"color: #d73a49;\">-<\/span><span style=\"color: #005cc5;\">SERVER<\/span><span style=\"color: #d73a49;\">-<\/span><span style=\"color: #005cc5;\">KEY<\/span><span style=\"color: #d73a49;\">-<\/span><span style=\"color: #005cc5;\">HERE<\/span><\/span><\/span><\/span><\/pre>\n<p>If required you may run the clear config cache from your project folder on the terminal and that will successfully setup the postmark mail functionality. Now you can send the mail by using SMTP, log, mailgun, etc.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Postmark is globally used package which is used to set up inbound and outbound mail functionality from your server. Postmark provides lightning and fast delivery of the transactional emails. To set up mail configuration with postmark is an easy way to manage your mail services and send transactional emails to the user&#8217;s mail account. It [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":1306,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[22],"tags":[71],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v14.8.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to set up mail functionalities with postmark package in your Laravel project<\/title>\n<meta name=\"robots\" content=\"index, follow\" \/>\n<meta name=\"googlebot\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta name=\"bingbot\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/openwebsolutions.in\/blog\/set-up-mail-functionalities-postmark-package-laravel-project\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to set up mail functionalities with postmark package in your Laravel project\" \/>\n<meta property=\"og:description\" content=\"Postmark is globally used package which is used to set up inbound and outbound mail functionality from your server. Postmark provides lightning and fast delivery of the transactional emails. To set up mail configuration with postmark is an easy way to manage your mail services and send transactional emails to the user&#8217;s mail account. It [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/openwebsolutions.in\/blog\/set-up-mail-functionalities-postmark-package-laravel-project\/\" \/>\n<meta property=\"og:site_name\" content=\"Openweb Solutions Blog\" \/>\n<meta property=\"article:published_time\" content=\"2019-03-01T03:37:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/openwebsolutions.in\/blog\/wp-content\/uploads\/2019\/02\/laravel-mailbox-featured.png\" \/>\n\t<meta property=\"og:image:width\" content=\"800\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n<meta name=\"twitter:card\" content=\"summary\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/openwebsolutions.in\/blog\/#website\",\"url\":\"https:\/\/openwebsolutions.in\/blog\/\",\"name\":\"Openweb Solutions Blog\",\"description\":\"Transforming ideas into reality\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/openwebsolutions.in\/blog\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/openwebsolutions.in\/blog\/set-up-mail-functionalities-postmark-package-laravel-project\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/openwebsolutions.in\/blog\/wp-content\/uploads\/2019\/02\/laravel-mailbox-featured.png\",\"width\":800,\"height\":400},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/openwebsolutions.in\/blog\/set-up-mail-functionalities-postmark-package-laravel-project\/#webpage\",\"url\":\"https:\/\/openwebsolutions.in\/blog\/set-up-mail-functionalities-postmark-package-laravel-project\/\",\"name\":\"How to set up mail functionalities with postmark package in your Laravel project\",\"isPartOf\":{\"@id\":\"https:\/\/openwebsolutions.in\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/openwebsolutions.in\/blog\/set-up-mail-functionalities-postmark-package-laravel-project\/#primaryimage\"},\"datePublished\":\"2019-03-01T03:37:01+00:00\",\"dateModified\":\"2019-03-01T03:37:01+00:00\",\"author\":{\"@id\":\"https:\/\/openwebsolutions.in\/blog\/#\/schema\/person\/c9e8df950151e1fe03f38488f3581d97\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/openwebsolutions.in\/blog\/set-up-mail-functionalities-postmark-package-laravel-project\/\"]}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/openwebsolutions.in\/blog\/#\/schema\/person\/c9e8df950151e1fe03f38488f3581d97\",\"name\":\"Riddhi Dutta\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/openwebsolutions.in\/blog\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8546b50eb2e0393ceeb1be219b44173a?s=96&r=g\",\"caption\":\"Riddhi Dutta\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/openwebsolutions.in\/blog\/wp-json\/wp\/v2\/posts\/1262"}],"collection":[{"href":"https:\/\/openwebsolutions.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/openwebsolutions.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/openwebsolutions.in\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/openwebsolutions.in\/blog\/wp-json\/wp\/v2\/comments?post=1262"}],"version-history":[{"count":3,"href":"https:\/\/openwebsolutions.in\/blog\/wp-json\/wp\/v2\/posts\/1262\/revisions"}],"predecessor-version":[{"id":1295,"href":"https:\/\/openwebsolutions.in\/blog\/wp-json\/wp\/v2\/posts\/1262\/revisions\/1295"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/openwebsolutions.in\/blog\/wp-json\/wp\/v2\/media\/1306"}],"wp:attachment":[{"href":"https:\/\/openwebsolutions.in\/blog\/wp-json\/wp\/v2\/media?parent=1262"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/openwebsolutions.in\/blog\/wp-json\/wp\/v2\/categories?post=1262"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/openwebsolutions.in\/blog\/wp-json\/wp\/v2\/tags?post=1262"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}