{"id":13479,"date":"2014-05-14T14:45:51","date_gmt":"2014-05-14T09:15:51","guid":{"rendered":"https:\/\/2thenew.online\/blog\/?p=13479"},"modified":"2016-12-19T14:54:40","modified_gmt":"2016-12-19T09:24:40","slug":"receive-email-using-subethasmtp-the-local-smtp-server","status":"publish","type":"post","link":"https:\/\/2thenew.online\/blog\/receive-email-using-subethasmtp-the-local-smtp-server\/","title":{"rendered":"Receive Email using SubEthaSMTP (The local SMTP server)."},"content":{"rendered":"<blockquote><p>In my Grails app, I came across a requirement of setting up an SMTP server for receiving mails and extracting their content. After exploring a lot I found SubEthaSMTP to be the most suitable. <a href=\"http:\/\/code.google.com\/p\/subethasmtp\/\">SubEthaSMTP<\/a> lets your application receive an SMTP mail very easily. <\/p><\/blockquote>\n<p style=\"margin-bottom: 10px\">To setup an SMTP server in your application, You need to follow the steps as follows:<\/p>\n<p style=\"margin-bottom: 10px\">1) Add dependency for the latest (at the time of writing it was 3.1.7) SubEthaSMTP library in the BuildConfig.groovy file.<\/p>\n<p>[shell]dependencies {<br \/>\n        runtime &quot;org.subethamail:subethasmtp:3.1.7&quot;<br \/>\n}<br \/>\n[\/shell]<\/p>\n<p style=\"margin-bottom: 10px\">2) After adding the library you need to implement two Interfaces, namely MessageHandlerFactory and MessageHandler.<\/p>\n<p>The MessageHandlerFactory is instantiated for every message to be exchanged in an SMTP conversation which (MessageHandlerFactory) in turn instantiates a new instance of MessageHandler.<\/p>\n<p>You can implement the <strong>MessageHandlerFactory<\/strong> as follows:<\/p>\n<p>[java]<br \/>\nclass MessageHandlerFactoryImpl implements MessageHandlerFactory {<\/p>\n<p> \t@Override<br \/>\n \tMessageHandler create(MessageContext ctx) {<br \/>\n        \treturn new MessageHandlerImpl(ctx)<br \/>\n    \t}<br \/>\n}<br \/>\n[\/java]<\/p>\n<p style=\"margin-bottom: 10px\">And you can implement the <strong>MessageHandler<\/strong> as follows:<\/p>\n<p>[java]<br \/>\n@Log4j<br \/>\nclass MessageHandlerImpl implements MessageHandler {<br \/>\n    MessageContext context<\/p>\n<p>    MessageHandlerImpl() {}<\/p>\n<p>    MessageHandlerImpl(MessageContext context) {<br \/>\n        this.context = context<br \/>\n    }<\/p>\n<p>    @Override<br \/>\n    void from(String from) {<br \/>\n        log.info &quot;FROM: ${from}&quot;<br \/>\n    }<\/p>\n<p>    @Override<br \/>\n    void recipient(String recipient) {<br \/>\n        log.info &quot;RECIPIENT: ${recipient}&quot;<br \/>\n    }<\/p>\n<p>    @Override<br \/>\n    void data(InputStream data) {<br \/>\n        log.info &quot;DATA&quot;<br \/>\n    }<\/p>\n<p>    @Override<br \/>\n    void done() {<br \/>\n        log.info &quot;DONE&quot;<br \/>\n    }<br \/>\n}<br \/>\n[\/java]<\/p>\n<p>The <em>from()<\/em>, <em>recipient()<\/em> and <em>data()<\/em> methods will be called during each stage of SMTP. Multiple MessageHandler are created if multiple messages are delivered with a single SMTP session.<\/p>\n<p style=\"margin-bottom: 10px\">3) Run the SmtpServer on your app&#8217;s start up.<\/p>\n<p>[java]<br \/>\n SMTPServer smtpServer  = new SMTPServer(new MessageHandlerFactoryImpl())<\/p>\n<p> smtpServer.hostName=&lt;your hostname&gt;<br \/>\n smtpServer.port =&lt;some port&gt;<br \/>\n smtpServer.start()<br \/>\n[\/java]\n<\/ul>\n<p style=\"margin-bottom: 10px\">After getting your SmtpServer instance running the next thing you need to do is to send email to your app. For this you can use <strong>Telnet<\/strong> program or you can configure a messenger like <strong>Thunderbird<\/strong> or <strong>Kmail<\/strong> to send mail on locally running SMTP server which is <strong>localhost<\/strong>.<\/p>\n<p>The Telnet program can be used to send emails, as shown below (Note: My SMTP server is running on port 25000):<\/p>\n<p><a href=\"\/blog\/wp-ttn-blog\/uploads\/2014\/05\/Telnet1.png\"><img decoding=\"async\" src=\"\/blog\/wp-ttn-blog\/uploads\/2014\/05\/Telnet1.png\" alt=\"Blog image\" width=\"600\" class=\"alignnone size-full\" \/><\/p>\n<p style=\"margin-top: 10px\">\n<p>Voilla! it worked.<\/p>\n<p>That&#8217;s all you need to run local SMTP server in your app!<\/p>\n<p>The next milestone is to read content of mail<\/p>\n<p>Most of the email client send a multipart message. A <strong>MultipartMessage<\/strong> is a simple <strong>Message<\/strong> object where the <em>Content-Type<\/em> is set to <em>multipart<\/em> and the content body carries a reference to a Multipart object.<\/p>\n<p>\n You can easily retrieve content from multipart content-typed message using MimeMessage instance. For this you need to include <a href=\"http:\/\/mvnrepository.com\/artifact\/com.sun.mail\/dsn\/1.4.5\">JavaMail API Dsn<\/a> library. You can extract body part from multipart message with MultipartReport instance. You can do this as follows:\n<\/p>\n<p>[java]<br \/>\nSession session = Session.getDefaultInstance(new Properties())<\/p>\n<p>MimeMessage message = new MimeMessage(session, data)<\/p>\n<p>if (obj instanceof MimeMultipart) {<br \/>\n    MultipartReport multipartReport = new MultipartReport(message.dataHandler.dataSource);<br \/>\n    def parsedText = multipartReport.textBodyPart.inputStream<br \/>\n    log.info &quot;Body content : ${parsedText}&quot;<br \/>\n}<br \/>\n[\/java]<\/p>\n<p>So guys, this is how you can implement your own locally running SMTP server with very less effort!<\/p>\n<blockquote>\n<p>Akash Sethi<br \/>\nSoftware Engineer<br \/>\nIntelliGrape Software Pvt. Ltd.<br \/>\nakash@intelligrape.com<br \/>\nMy LinkedIn<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>In my Grails app, I came across a requirement of setting up an SMTP server for receiving mails and extracting their content. After exploring a lot I found SubEthaSMTP to be the most suitable. SubEthaSMTP lets your application receive an SMTP mail very easily. To setup an SMTP server in your application, You need to [&hellip;]<\/p>\n","protected":false},"author":67,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":120,"footnotes":""},"categories":[7],"tags":[1426,4840,4844,1423,1424,1434,1433],"class_list":["post-13479","post","type-post","status-publish","format-standard","hentry","category-grails","tag-email-processing-application","tag-grails","tag-java","tag-smtp","tag-subetha-smtp","tag-subethasmtp","tag-telnet"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"In my Grails app, I came across a requirement of setting up an SMTP server for receiving mails and extracting their content. After exploring a lot I found SubEthaSMTP to be the most suitable. SubEthaSMTP lets your application receive an SMTP mail very easily. To setup an SMTP server in your application, You need to\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Akash Sethi\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/2thenew.online\/blog\/receive-email-using-subethasmtp-the-local-smtp-server\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TO THE NEW BLOG\" \/>\n\t\t<meta property=\"og:type\" content=\"blog\" \/>\n\t\t<meta property=\"og:title\" content=\"Receive Email using SubEthaSMTP (The local SMTP server). | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"In my Grails app, I came across a requirement of setting up an SMTP server for receiving mails and extracting their content. After exploring a lot I found SubEthaSMTP to be the most suitable. SubEthaSMTP lets your application receive an SMTP mail very easily. To setup an SMTP server in your application, You need to\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/2thenew.online\/blog\/receive-email-using-subethasmtp-the-local-smtp-server\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Receive Email using SubEthaSMTP (The local SMTP server). | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"In my Grails app, I came across a requirement of setting up an SMTP server for receiving mails and extracting their content. After exploring a lot I found SubEthaSMTP to be the most suitable. SubEthaSMTP lets your application receive an SMTP mail very easily. To setup an SMTP server in your application, You need to\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/receive-email-using-subethasmtp-the-local-smtp-server\\\/#article\",\"name\":\"Receive Email using SubEthaSMTP (The local SMTP server). | TO THE NEW Blog\",\"headline\":\"Receive Email using SubEthaSMTP (The local SMTP server).\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/akash-sethi\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"\\\/blog\\\/wp-ttn-blog\\\/uploads\\\/2014\\\/05\\\/Telnet1.png\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/receive-email-using-subethasmtp-the-local-smtp-server\\\/#articleImage\"},\"datePublished\":\"2014-05-14T14:45:51+05:30\",\"dateModified\":\"2016-12-19T14:54:40+05:30\",\"inLanguage\":\"en-US\",\"commentCount\":1,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/receive-email-using-subethasmtp-the-local-smtp-server\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/receive-email-using-subethasmtp-the-local-smtp-server\\\/#webpage\"},\"articleSection\":\"Grails, email processing application, Grails, Java, smtp, subetha smtp, SubEthaSMTP, telnet\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/receive-email-using-subethasmtp-the-local-smtp-server\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/grails\\\/#listItem\",\"name\":\"Grails\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/grails\\\/#listItem\",\"position\":2,\"name\":\"Grails\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/grails\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/receive-email-using-subethasmtp-the-local-smtp-server\\\/#listItem\",\"name\":\"Receive Email using SubEthaSMTP (The local SMTP server).\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/receive-email-using-subethasmtp-the-local-smtp-server\\\/#listItem\",\"position\":3,\"name\":\"Receive Email using SubEthaSMTP (The local SMTP server).\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/grails\\\/#listItem\",\"name\":\"Grails\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\",\"name\":\"TO THE NEW Blog\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/akash-sethi\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/akash-sethi\\\/\",\"name\":\"Akash Sethi\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/receive-email-using-subethasmtp-the-local-smtp-server\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0eedad8967eafcf3fab387889850f0ee39a92a98fc7611629247b26d043453bf?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Akash Sethi\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/receive-email-using-subethasmtp-the-local-smtp-server\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/receive-email-using-subethasmtp-the-local-smtp-server\\\/\",\"name\":\"Receive Email using SubEthaSMTP (The local SMTP server). | TO THE NEW Blog\",\"description\":\"In my Grails app, I came across a requirement of setting up an SMTP server for receiving mails and extracting their content. After exploring a lot I found SubEthaSMTP to be the most suitable. SubEthaSMTP lets your application receive an SMTP mail very easily. To setup an SMTP server in your application, You need to\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/receive-email-using-subethasmtp-the-local-smtp-server\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/akash-sethi\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/akash-sethi\\\/#author\"},\"datePublished\":\"2014-05-14T14:45:51+05:30\",\"dateModified\":\"2016-12-19T14:54:40+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\",\"name\":\"TO THE NEW Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Receive Email using SubEthaSMTP (The local SMTP server). | TO THE NEW Blog","description":"In my Grails app, I came across a requirement of setting up an SMTP server for receiving mails and extracting their content. After exploring a lot I found SubEthaSMTP to be the most suitable. SubEthaSMTP lets your application receive an SMTP mail very easily. To setup an SMTP server in your application, You need to","canonical_url":"https:\/\/2thenew.online\/blog\/receive-email-using-subethasmtp-the-local-smtp-server\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/2thenew.online\/blog\/receive-email-using-subethasmtp-the-local-smtp-server\/#article","name":"Receive Email using SubEthaSMTP (The local SMTP server). | TO THE NEW Blog","headline":"Receive Email using SubEthaSMTP (The local SMTP server).","author":{"@id":"https:\/\/2thenew.online\/blog\/author\/akash-sethi\/#author"},"publisher":{"@id":"https:\/\/2thenew.online\/blog\/#organization"},"image":{"@type":"ImageObject","url":"\/blog\/wp-ttn-blog\/uploads\/2014\/05\/Telnet1.png","@id":"https:\/\/2thenew.online\/blog\/receive-email-using-subethasmtp-the-local-smtp-server\/#articleImage"},"datePublished":"2014-05-14T14:45:51+05:30","dateModified":"2016-12-19T14:54:40+05:30","inLanguage":"en-US","commentCount":1,"mainEntityOfPage":{"@id":"https:\/\/2thenew.online\/blog\/receive-email-using-subethasmtp-the-local-smtp-server\/#webpage"},"isPartOf":{"@id":"https:\/\/2thenew.online\/blog\/receive-email-using-subethasmtp-the-local-smtp-server\/#webpage"},"articleSection":"Grails, email processing application, Grails, Java, smtp, subetha smtp, SubEthaSMTP, telnet"},{"@type":"BreadcrumbList","@id":"https:\/\/2thenew.online\/blog\/receive-email-using-subethasmtp-the-local-smtp-server\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog#listItem","position":1,"name":"Home","item":"https:\/\/2thenew.online\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog\/category\/grails\/#listItem","name":"Grails"}},{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog\/category\/grails\/#listItem","position":2,"name":"Grails","item":"https:\/\/2thenew.online\/blog\/category\/grails\/","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog\/receive-email-using-subethasmtp-the-local-smtp-server\/#listItem","name":"Receive Email using SubEthaSMTP (The local SMTP server)."},"previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog\/receive-email-using-subethasmtp-the-local-smtp-server\/#listItem","position":3,"name":"Receive Email using SubEthaSMTP (The local SMTP server).","previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog\/category\/grails\/#listItem","name":"Grails"}}]},{"@type":"Organization","@id":"https:\/\/2thenew.online\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/2thenew.online\/blog\/"},{"@type":"Person","@id":"https:\/\/2thenew.online\/blog\/author\/akash-sethi\/#author","url":"https:\/\/2thenew.online\/blog\/author\/akash-sethi\/","name":"Akash Sethi","image":{"@type":"ImageObject","@id":"https:\/\/2thenew.online\/blog\/receive-email-using-subethasmtp-the-local-smtp-server\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/0eedad8967eafcf3fab387889850f0ee39a92a98fc7611629247b26d043453bf?s=96&d=mm&r=g","width":96,"height":96,"caption":"Akash Sethi"}},{"@type":"WebPage","@id":"https:\/\/2thenew.online\/blog\/receive-email-using-subethasmtp-the-local-smtp-server\/#webpage","url":"https:\/\/2thenew.online\/blog\/receive-email-using-subethasmtp-the-local-smtp-server\/","name":"Receive Email using SubEthaSMTP (The local SMTP server). | TO THE NEW Blog","description":"In my Grails app, I came across a requirement of setting up an SMTP server for receiving mails and extracting their content. After exploring a lot I found SubEthaSMTP to be the most suitable. SubEthaSMTP lets your application receive an SMTP mail very easily. To setup an SMTP server in your application, You need to","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/2thenew.online\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/2thenew.online\/blog\/receive-email-using-subethasmtp-the-local-smtp-server\/#breadcrumblist"},"author":{"@id":"https:\/\/2thenew.online\/blog\/author\/akash-sethi\/#author"},"creator":{"@id":"https:\/\/2thenew.online\/blog\/author\/akash-sethi\/#author"},"datePublished":"2014-05-14T14:45:51+05:30","dateModified":"2016-12-19T14:54:40+05:30"},{"@type":"WebSite","@id":"https:\/\/2thenew.online\/blog\/#website","url":"https:\/\/2thenew.online\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/2thenew.online\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"blog","og:title":"Receive Email using SubEthaSMTP (The local SMTP server). | TO THE NEW Blog","og:description":"In my Grails app, I came across a requirement of setting up an SMTP server for receiving mails and extracting their content. After exploring a lot I found SubEthaSMTP to be the most suitable. SubEthaSMTP lets your application receive an SMTP mail very easily. To setup an SMTP server in your application, You need to","og:url":"https:\/\/2thenew.online\/blog\/receive-email-using-subethasmtp-the-local-smtp-server\/","og:image":"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"Receive Email using SubEthaSMTP (The local SMTP server). | TO THE NEW Blog","twitter:description":"In my Grails app, I came across a requirement of setting up an SMTP server for receiving mails and extracting their content. After exploring a lot I found SubEthaSMTP to be the most suitable. SubEthaSMTP lets your application receive an SMTP mail very easily. To setup an SMTP server in your application, You need to","twitter:image":"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"13479","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2021-04-29 12:28:48","updated":"2024-02-29 08:37:25","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.online\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.online\/blog\/category\/grails\/\" title=\"Grails\">Grails<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tReceive Email using SubEthaSMTP (The local SMTP server).\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/2thenew.online\/blog"},{"label":"Grails","link":"https:\/\/2thenew.online\/blog\/category\/grails\/"},{"label":"Receive Email using SubEthaSMTP (The local SMTP server).","link":"https:\/\/2thenew.online\/blog\/receive-email-using-subethasmtp-the-local-smtp-server\/"}],"_links":{"self":[{"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/posts\/13479","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/users\/67"}],"replies":[{"embeddable":true,"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/comments?post=13479"}],"version-history":[{"count":0,"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/posts\/13479\/revisions"}],"wp:attachment":[{"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/media?parent=13479"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/categories?post=13479"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/tags?post=13479"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}