{"id":54,"date":"2023-08-19T15:00:00","date_gmt":"2023-08-19T15:00:00","guid":{"rendered":"https:\/\/mailmug.net\/blog\/?p=54"},"modified":"2024-02-25T15:39:58","modified_gmt":"2024-02-25T15:39:58","slug":"mail-lumen","status":"publish","type":"post","link":"https:\/\/mailmug.net\/blog\/mail-lumen\/","title":{"rendered":"Lumen Send Email Example"},"content":{"rendered":"\n<div style=\"height:49px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Step-by-step instructions to configure mail function with <a href=\"https:\/\/lumen.laravel.com\/\">Lumen<\/a> php framework (Lumen sends email by SMTP). It uses the Laravel mail library and SMPT. You can also use the <a href=\"https:\/\/mailmug.net\/\">MailMug.net<\/a> sandbox account for email testing. MailMug is providing fake SMTP testing accounts.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/mailmug.net\/\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/mailmug.net\/blog\/wp-content\/uploads\/2023\/08\/sandbox-1024x576.png\" alt=\"SMTP Sandbox\" class=\"wp-image-267\" srcset=\"https:\/\/mailmug.net\/blog\/wp-content\/uploads\/2023\/08\/sandbox-1024x576.png 1024w, https:\/\/mailmug.net\/blog\/wp-content\/uploads\/2023\/08\/sandbox-300x169.png 300w, https:\/\/mailmug.net\/blog\/wp-content\/uploads\/2023\/08\/sandbox-768x432.png 768w, https:\/\/mailmug.net\/blog\/wp-content\/uploads\/2023\/08\/sandbox.png 1200w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<div style=\"height:55px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1:  Add Laravel mail library to Lumen<\/h2>\n\n\n\n<p>The email library is not included with the Lumen framework. We need to install it by the composer.<\/p>\n\n\n\n<p> Go to the Lumen root folder and execute the following code. <\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\ncomposer require illuminate\\mail\n<\/pre><\/div>\n\n\n<div style=\"height:49px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2: Configure the mail service  <\/h2>\n\n\n\n<p>Edit <strong>bootstrap\/app.php<\/strong> file. Uncommand <strong>$app-&gt;withFacades();<\/strong> and register <strong>Illuminate\\Mail\\MailServiceProvider::class<\/strong> then add <strong>$app-&gt;configure(&#8216;mail&#8217;);<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n$app-&gt;withFacades();\n$app-&gt;register(Illuminate\\Mail\\MailServiceProvider::class);\n\n<\/pre><\/div>\n\n\n<p>After creating the configuration file, you should register the mailer and its aliases within your&nbsp;<code>bootstrap\/app.php<\/code>&nbsp;file.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n$app-&gt;configure(&#039;app&#039;);\n$app-&gt;configure(&#039;mail&#039;);\n\n$app-&gt;alias(&#039;mail.manager&#039;, Illuminate\\Mail\\MailManager::class);\n$app-&gt;alias(&#039;mail.manager&#039;, Illuminate\\Contracts\\Mail\\Factory::class);\n\n$app-&gt;alias(&#039;mailer&#039;, Illuminate\\Mail\\Mailer::class);\n$app-&gt;alias(&#039;mailer&#039;, Illuminate\\Contracts\\Mail\\Mailer::class);\n$app-&gt;alias(&#039;mailer&#039;, Illuminate\\Contracts\\Mail\\MailQueue::class);\n<\/pre><\/div>\n\n\n<div style=\"height:71px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3: Add SMTP credentials to the ENV file<\/h2>\n\n\n\n<p>Create a free SMTP sandbox account from <a href=\"https:\/\/mailmug.net\/\">Mailmug.net<\/a>. We can easily test email functions from MailMug. <\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nMAIL_MAILER=smtp\nMAIL_HOST=&quot;smtp.mailmug.net&quot;\nMAIL_PORT=2525\nMAIL_USERNAME=&quot;lz5e45osxdq0uruxb&quot;\nMAIL_PASSWORD=&quot;kbs6mfhifn8di3gi&quot;\nMAIL_ENCRYPTION=null\nMAIL_FROM_ADDRESS=&quot;your.email@mail.com&quot;\nMAIL_FROM_NAME=&quot;${APP_NAME}&quot;\n\n<\/pre><\/div>\n\n\n<div style=\"height:42px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Step 4: Add config\/mail.php file<\/h2>\n\n\n\n<p>Create a <strong>config<\/strong> folder then Copy the code from the following code and paste it to the <strong>config\/mail.php<\/strong> file.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n&lt;?php\n\nreturn &#x5B;\n\n    \/*\n    |--------------------------------------------------------------------------\n    | Default Mailer\n    |--------------------------------------------------------------------------\n    |\n    | This option controls the default mailer that is used to send any email\n    | messages sent by your application. Alternative mailers may be setup\n    | and used as needed; however, this mailer will be used by default.\n    |\n    *\/\n\n    &#039;default&#039; =&gt; env(&#039;MAIL_MAILER&#039;, &#039;smtp&#039;),\n\n    \/*\n    |--------------------------------------------------------------------------\n    | Mailer Configurations\n    |--------------------------------------------------------------------------\n    |\n    | Here you may configure all of the mailers used by your application plus\n    | their respective settings. Several examples have been configured for\n    | you and you are free to add your own as your application requires.\n    |\n    | Laravel supports a variety of mail &quot;transport&quot; drivers to be used while\n    | sending an e-mail. You will specify which one you are using for your\n    | mailers below. You are free to add additional mailers as required.\n    |\n    | Supported: &quot;smtp&quot;, &quot;sendmail&quot;, &quot;mailgun&quot;, &quot;ses&quot;, &quot;ses-v2&quot;,\n    |            &quot;postmark&quot;, &quot;log&quot;, &quot;array&quot;, &quot;failover&quot;\n    |\n    *\/\n\n    &#039;mailers&#039; =&gt; &#x5B;\n        &#039;smtp&#039; =&gt; &#x5B;\n            &#039;transport&#039; =&gt; &#039;smtp&#039;,\n            &#039;url&#039; =&gt; env(&#039;MAIL_URL&#039;),\n            &#039;host&#039; =&gt; env(&#039;MAIL_HOST&#039;, &#039;smtp.mailgun.org&#039;),\n            &#039;port&#039; =&gt; env(&#039;MAIL_PORT&#039;, 587),\n            &#039;encryption&#039; =&gt; env(&#039;MAIL_ENCRYPTION&#039;, &#039;tls&#039;),\n            &#039;username&#039; =&gt; env(&#039;MAIL_USERNAME&#039;),\n            &#039;password&#039; =&gt; env(&#039;MAIL_PASSWORD&#039;),\n            &#039;timeout&#039; =&gt; null,\n            &#039;local_domain&#039; =&gt; env(&#039;MAIL_EHLO_DOMAIN&#039;),\n        ],\n\n        &#039;ses&#039; =&gt; &#x5B;\n            &#039;transport&#039; =&gt; &#039;ses&#039;,\n        ],\n\n        &#039;mailgun&#039; =&gt; &#x5B;\n            &#039;transport&#039; =&gt; &#039;mailgun&#039;,\n            \/\/ &#039;client&#039; =&gt; &#x5B;\n            \/\/     &#039;timeout&#039; =&gt; 5,\n            \/\/ ],\n        ],\n\n        &#039;postmark&#039; =&gt; &#x5B;\n            &#039;transport&#039; =&gt; &#039;postmark&#039;,\n            \/\/ &#039;client&#039; =&gt; &#x5B;\n            \/\/     &#039;timeout&#039; =&gt; 5,\n            \/\/ ],\n        ],\n\n        &#039;sendmail&#039; =&gt; &#x5B;\n            &#039;transport&#039; =&gt; &#039;sendmail&#039;,\n            &#039;path&#039; =&gt; env(&#039;MAIL_SENDMAIL_PATH&#039;, &#039;\/usr\/sbin\/sendmail -bs -i&#039;),\n        ],\n\n        &#039;log&#039; =&gt; &#x5B;\n            &#039;transport&#039; =&gt; &#039;log&#039;,\n            &#039;channel&#039; =&gt; env(&#039;MAIL_LOG_CHANNEL&#039;),\n        ],\n\n        &#039;array&#039; =&gt; &#x5B;\n            &#039;transport&#039; =&gt; &#039;array&#039;,\n        ],\n\n        &#039;failover&#039; =&gt; &#x5B;\n            &#039;transport&#039; =&gt; &#039;failover&#039;,\n            &#039;mailers&#039; =&gt; &#x5B;\n                &#039;smtp&#039;,\n                &#039;log&#039;,\n            ],\n        ],\n    ],\n\n    \/*\n    |--------------------------------------------------------------------------\n    | Global &quot;From&quot; Address\n    |--------------------------------------------------------------------------\n    |\n    | You may wish for all e-mails sent by your application to be sent from\n    | the same address. Here, you may specify a name and address that is\n    | used globally for all e-mails that are sent by your application.\n    |\n    *\/\n\n    &#039;from&#039; =&gt; &#x5B;\n        &#039;address&#039; =&gt; env(&#039;MAIL_FROM_ADDRESS&#039;, &#039;hello@example.com&#039;),\n        &#039;name&#039; =&gt; env(&#039;MAIL_FROM_NAME&#039;, &#039;Example&#039;),\n    ],\n\n    \/*\n    |--------------------------------------------------------------------------\n    | Markdown Mail Settings\n    |--------------------------------------------------------------------------\n    |\n    | If you are using Markdown based email rendering, you may configure your\n    | theme and component paths here, allowing you to customize the design\n    | of the emails. Or, you may simply stick with the Laravel defaults!\n    |\n    *\/\n\n    &#039;markdown&#039; =&gt; &#x5B;\n        &#039;theme&#039; =&gt; &#039;default&#039;,\n\n        &#039;paths&#039; =&gt; &#x5B;\n            resource_path(&#039;views\/vendor\/mail&#039;),\n        ],\n    ],\n\n];\n\n<\/pre><\/div>\n\n\n<div style=\"height:49px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Step 5: Create an Email Controller<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n&lt;?php\n\nnamespace App\\Http\\Controllers;\n\nuse Illuminate\\Support\\Facades\\Mail;\n\nclass EmailController extends Controller\n{\n     \n    public function send() {\n\n        $data = array(&#039;name&#039;=&gt;&#039;Test Name&#039;);\n        Mail::send(&#039;mail&#039;, $data, function($message) {\n            $message-&gt;to(&#039;your-email@gmail.com&#039;, &#039;Test Name&#039;)-&gt;subject(&#039;Test Mail from MailMug&#039;);\n            $message-&gt;from(&#039;info@name.com&#039;,&#039;your Name&#039;);\n        });\n        echo &quot;Email Sent. Check your inbox.&quot;;\n        \n    }\n}\n\n<\/pre><\/div>\n\n\n<div style=\"height:51px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Step 6: Edit routes\/web.php file<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n$router-&gt;get(&#039;\/send&#039;, &#039;EmailController@send&#039;);\n\n<\/pre><\/div>\n\n\n<div style=\"height:63px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Step 7: Create resources\/views\/mail.blade.php file<\/h2>\n\n\n\n<p><strong>Example<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n&lt;p&gt;Hi... How are you?&lt;\/p&gt;\n<\/pre><\/div>\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Step 8: Test it<\/h2>\n\n\n\n<p>Navigate <strong>your-domain\/send<\/strong>. Then it will send an email by MailMug. <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/mailmug.net\/blog\/wp-content\/uploads\/2023\/08\/mailmug-admin.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"274\" src=\"https:\/\/mailmug.net\/blog\/wp-content\/uploads\/2023\/08\/mailmug-admin-1024x274.png\" alt=\"Send Emails in Lumen\" class=\"wp-image-42\" srcset=\"https:\/\/mailmug.net\/blog\/wp-content\/uploads\/2023\/08\/mailmug-admin-1024x274.png 1024w, https:\/\/mailmug.net\/blog\/wp-content\/uploads\/2023\/08\/mailmug-admin-300x80.png 300w, https:\/\/mailmug.net\/blog\/wp-content\/uploads\/2023\/08\/mailmug-admin-768x205.png 768w, https:\/\/mailmug.net\/blog\/wp-content\/uploads\/2023\/08\/mailmug-admin.png 1254w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div>\n\n\n<div style=\"height:58px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Step 9: Add production email SMTP<\/h2>\n\n\n\n<p>Configure production email credentials from cPanel, plesk, or other server admin panel. Then copy SMPT credentials and paste them to <code>.env<\/code> file. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Step-by-step instructions to configure mail function with Lumen php framework (Lumen sends email by SMTP). It uses the Laravel mail library and SMPT. You can also use the MailMug.net sandbox account for email testing. MailMug is providing fake SMTP testing accounts. Step 1: Add Laravel mail library to Lumen The email library is not included [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":67,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[],"class_list":["post-54","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.13 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Lumen Send Email Example - MailMug Blog<\/title>\n<meta name=\"description\" content=\"Step-by-step instructions to configure mail function with Lumen php framework. Send emails by lumen framework (Lumen send email example).\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/mailmug.net\/blog\/mail-lumen\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Lumen Send Email Example - MailMug Blog\" \/>\n<meta property=\"og:description\" content=\"Step-by-step instructions to configure mail function with Lumen php framework. Send emails by lumen framework (Lumen send email example).\" \/>\n<meta property=\"og:url\" content=\"https:\/\/mailmug.net\/blog\/mail-lumen\/\" \/>\n<meta property=\"og:site_name\" content=\"MailMug Blog\" \/>\n<meta property=\"article:published_time\" content=\"2023-08-19T15:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-02-25T15:39:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/mailmug.net\/blog\/wp-content\/uploads\/2023\/08\/email-lumen.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"675\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/mailmug.net\/blog\/mail-lumen\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/mailmug.net\/blog\/mail-lumen\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/mailmug.net\/blog\/#\/schema\/person\/97fb32aba211755b8d48bdd54df9c66d\"},\"headline\":\"Lumen Send Email Example\",\"datePublished\":\"2023-08-19T15:00:00+00:00\",\"dateModified\":\"2024-02-25T15:39:58+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/mailmug.net\/blog\/mail-lumen\/\"},\"wordCount\":238,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/mailmug.net\/blog\/#organization\"},\"articleSection\":[\"php\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/mailmug.net\/blog\/mail-lumen\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/mailmug.net\/blog\/mail-lumen\/\",\"url\":\"https:\/\/mailmug.net\/blog\/mail-lumen\/\",\"name\":\"Lumen Send Email Example - MailMug Blog\",\"isPartOf\":{\"@id\":\"https:\/\/mailmug.net\/blog\/#website\"},\"datePublished\":\"2023-08-19T15:00:00+00:00\",\"dateModified\":\"2024-02-25T15:39:58+00:00\",\"description\":\"Step-by-step instructions to configure mail function with Lumen php framework. Send emails by lumen framework (Lumen send email example).\",\"breadcrumb\":{\"@id\":\"https:\/\/mailmug.net\/blog\/mail-lumen\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/mailmug.net\/blog\/mail-lumen\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/mailmug.net\/blog\/mail-lumen\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/mailmug.net\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Lumen Send Email Example\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/mailmug.net\/blog\/#website\",\"url\":\"https:\/\/mailmug.net\/blog\/\",\"name\":\"MailMug\",\"description\":\"SandBox SMTP Email Account\",\"publisher\":{\"@id\":\"https:\/\/mailmug.net\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/mailmug.net\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/mailmug.net\/blog\/#organization\",\"name\":\"MailMug\",\"url\":\"https:\/\/mailmug.net\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/mailmug.net\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/mailmug.net\/blog\/wp-content\/uploads\/2023\/08\/logo.png\",\"contentUrl\":\"https:\/\/mailmug.net\/blog\/wp-content\/uploads\/2023\/08\/logo.png\",\"width\":320,\"height\":293,\"caption\":\"MailMug\"},\"image\":{\"@id\":\"https:\/\/mailmug.net\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/mailmug.net\/blog\/#\/schema\/person\/97fb32aba211755b8d48bdd54df9c66d\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/mailmug.net\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1e1bdecb54e39d090acd1ba4b20cb7db?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1e1bdecb54e39d090acd1ba4b20cb7db?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"https:\/\/mailmug.net\/blog\"],\"url\":\"https:\/\/mailmug.net\/blog\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Lumen Send Email Example - MailMug Blog","description":"Step-by-step instructions to configure mail function with Lumen php framework. Send emails by lumen framework (Lumen send email example).","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:\/\/mailmug.net\/blog\/mail-lumen\/","og_locale":"en_US","og_type":"article","og_title":"Lumen Send Email Example - MailMug Blog","og_description":"Step-by-step instructions to configure mail function with Lumen php framework. Send emails by lumen framework (Lumen send email example).","og_url":"https:\/\/mailmug.net\/blog\/mail-lumen\/","og_site_name":"MailMug Blog","article_published_time":"2023-08-19T15:00:00+00:00","article_modified_time":"2024-02-25T15:39:58+00:00","og_image":[{"width":1200,"height":675,"url":"https:\/\/mailmug.net\/blog\/wp-content\/uploads\/2023\/08\/email-lumen.png","type":"image\/png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/mailmug.net\/blog\/mail-lumen\/#article","isPartOf":{"@id":"https:\/\/mailmug.net\/blog\/mail-lumen\/"},"author":{"name":"admin","@id":"https:\/\/mailmug.net\/blog\/#\/schema\/person\/97fb32aba211755b8d48bdd54df9c66d"},"headline":"Lumen Send Email Example","datePublished":"2023-08-19T15:00:00+00:00","dateModified":"2024-02-25T15:39:58+00:00","mainEntityOfPage":{"@id":"https:\/\/mailmug.net\/blog\/mail-lumen\/"},"wordCount":238,"commentCount":0,"publisher":{"@id":"https:\/\/mailmug.net\/blog\/#organization"},"articleSection":["php"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/mailmug.net\/blog\/mail-lumen\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/mailmug.net\/blog\/mail-lumen\/","url":"https:\/\/mailmug.net\/blog\/mail-lumen\/","name":"Lumen Send Email Example - MailMug Blog","isPartOf":{"@id":"https:\/\/mailmug.net\/blog\/#website"},"datePublished":"2023-08-19T15:00:00+00:00","dateModified":"2024-02-25T15:39:58+00:00","description":"Step-by-step instructions to configure mail function with Lumen php framework. Send emails by lumen framework (Lumen send email example).","breadcrumb":{"@id":"https:\/\/mailmug.net\/blog\/mail-lumen\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/mailmug.net\/blog\/mail-lumen\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/mailmug.net\/blog\/mail-lumen\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/mailmug.net\/blog\/"},{"@type":"ListItem","position":2,"name":"Lumen Send Email Example"}]},{"@type":"WebSite","@id":"https:\/\/mailmug.net\/blog\/#website","url":"https:\/\/mailmug.net\/blog\/","name":"MailMug","description":"SandBox SMTP Email Account","publisher":{"@id":"https:\/\/mailmug.net\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/mailmug.net\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/mailmug.net\/blog\/#organization","name":"MailMug","url":"https:\/\/mailmug.net\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/mailmug.net\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/mailmug.net\/blog\/wp-content\/uploads\/2023\/08\/logo.png","contentUrl":"https:\/\/mailmug.net\/blog\/wp-content\/uploads\/2023\/08\/logo.png","width":320,"height":293,"caption":"MailMug"},"image":{"@id":"https:\/\/mailmug.net\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/mailmug.net\/blog\/#\/schema\/person\/97fb32aba211755b8d48bdd54df9c66d","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/mailmug.net\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/1e1bdecb54e39d090acd1ba4b20cb7db?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1e1bdecb54e39d090acd1ba4b20cb7db?s=96&d=mm&r=g","caption":"admin"},"sameAs":["https:\/\/mailmug.net\/blog"],"url":"https:\/\/mailmug.net\/blog\/author\/admin\/"}]}},"amp_enabled":true,"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/mailmug.net\/blog\/wp-json\/wp\/v2\/posts\/54"}],"collection":[{"href":"https:\/\/mailmug.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mailmug.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mailmug.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mailmug.net\/blog\/wp-json\/wp\/v2\/comments?post=54"}],"version-history":[{"count":11,"href":"https:\/\/mailmug.net\/blog\/wp-json\/wp\/v2\/posts\/54\/revisions"}],"predecessor-version":[{"id":269,"href":"https:\/\/mailmug.net\/blog\/wp-json\/wp\/v2\/posts\/54\/revisions\/269"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mailmug.net\/blog\/wp-json\/wp\/v2\/media\/67"}],"wp:attachment":[{"href":"https:\/\/mailmug.net\/blog\/wp-json\/wp\/v2\/media?parent=54"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mailmug.net\/blog\/wp-json\/wp\/v2\/categories?post=54"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mailmug.net\/blog\/wp-json\/wp\/v2\/tags?post=54"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}