{"docsConfig":{"theme":"almond","$schema":"https://mintlify.com/docs.json","name":"Liara OpenAPI Docs","colors":{"primary":"#009689","light":"#00BBA7","dark":"#009689"},"logo":{"light":"https://mintcdn.com/liara/2lAl_CkG1cEAkr-Y/logo.png?fit=max\u0026auto=format\u0026n=2lAl_CkG1cEAkr-Y\u0026q=85\u0026s=90f85cd2b2db4fc0e76ca4cf6fb468b5","dark":"https://mintcdn.com/liara/2lAl_CkG1cEAkr-Y/logo.png?fit=max\u0026auto=format\u0026n=2lAl_CkG1cEAkr-Y\u0026q=85\u0026s=90f85cd2b2db4fc0e76ca4cf6fb468b5"},"favicon":{"light":"https://mintcdn.com/liara/2lAl_CkG1cEAkr-Y/logo.png?fit=max\u0026auto=format\u0026n=2lAl_CkG1cEAkr-Y\u0026q=85\u0026s=90f85cd2b2db4fc0e76ca4cf6fb468b5","dark":"https://mintcdn.com/liara/2lAl_CkG1cEAkr-Y/logo.png?fit=max\u0026auto=format\u0026n=2lAl_CkG1cEAkr-Y\u0026q=85\u0026s=90f85cd2b2db4fc0e76ca4cf6fb468b5"},"navbar":{"links":[{"href":"mailto:info@liara.ir","label":"Support"}],"primary":{"type":"button","label":"Console","href":"https://console.liara.ir"}},"footer":{"socials":{"website":"https://liara.ir","github":"https://github.com/liara-cloud","linkedin":"https://linkedin.com/company/liara-cloud","x":"https://x.com/liara_cloud"}},"icons":{"library":"fontawesome"},"contextual":{"options":["copy","chatgpt","perplexity"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Documentation","icon":"book-open-cover","href":"https://docs.liara.ir"},{"anchor":"Blog","icon":"newspaper","href":"https://liara.ir/blog"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"liara","hasAudioNarration":false,"actualSubdomain":"liara","customDomains":["developers.liara.ir"],"gitSource":{"type":"github","owner":"liara-cloud","repo":"openapi","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae871d5a8708698b47b2a03","clientVersion":"0.0.4142","searchFilterCounts":[{"language":"default","tag":"API Endpoints","count":135},{"language":"default","tag":"Platform Core","count":85},{"language":"default","tag":"PaaS","count":78},{"language":"default","tag":"Mail","count":41},{"language":"default","tag":"Apps \u0026 Deployments","count":38},{"language":"default","tag":"AI","count":33},{"language":"default","tag":"Object Storage","count":27},{"language":"default","tag":"DBaaS","count":26},{"language":"default","tag":"Authentication \u0026 Account","count":26},{"language":"default","tag":"Domains \u0026 Disks","count":23}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[],"page":{"pagePath":"mail/messages/send-a-mail","slug":"/mail/messages/send-a-mail","pageMetadata":{"title":"send a mail","description":null,"deprecated":null,"version":null,"openapi":"/spec/mail.yaml post /api/v1/mails/{mailServerID}/messages","href":"/mail/messages/send-a-mail","autogeneratedByOpenApi":true},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"send a mail","description":null,"deprecated":null,"version":null,"openapi":"/spec/mail.yaml post /api/v1/mails/{mailServerID}/messages","href":"/mail/messages/send-a-mail","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["messages"],"summary":"send a mail","operationId":"sendMail","parameters":["775ac901-6b2d-4599-8c3b-60e0d3262cef"],"requestBody":"b3fadce3-703f-4cbd-803e-809f3758b5db","responses":{"201":"aa3a6aeb-84dc-4b2c-b6fc-f0490ec7e9fb","400":"37386fbe-3842-45a8-9a33-33d8afb14d56","403":"ba9ccc88-7b40-4d2f-92fd-c83d9f34e951","404":"d4829e5e-e8ae-4834-8f7d-ea1784ad73c1","406":"205cd4df-b28e-4f2c-8e5c-2b42cae1e846","429":"e78d9444-c57c-4b94-8a5f-f34f828000ee","500":"6787c7e1-dfd4-4534-9f36-7d4b242cce85"},"x-codegen-request-body-name":"body","method":"post","type":"path","servers":["162e4ac4-7428-4a78-b2fa-30c25c81fe03"],"security":["def5c07b-8649-4395-ac33-6e14b0c26dc7","fbb6bc87-8698-497c-a9d1-c6061c4e6e1a"],"path":"/api/v1/mails/{mailServerID}/messages","baseUrlOptions":["https://mail-service.liara.ir"],"title":"send a mail","description":"","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"775ac901-6b2d-4599-8c3b-60e0d3262cef":{"name":"mailServerID","in":"path","required":true,"schema":{"pattern":"^[0-9a-fA-F]{24}$","type":"string","isRequired":true,"uniqueKey":"","typeLabel":"string"}}},"requestBody":{"content":{"application/json":{"schema":{"required":["from","subject","to"],"type":"object","properties":{"subject":{"type":"string","isRequired":true,"uniqueKey":"subject","typeLabel":"string"},"to":{"type":"string","description":"Converted to lowercase.","isRequired":true,"uniqueKey":"to","typeLabel":"string"},"from":{"type":"string","description":"Converted to lowercase.","isRequired":true,"uniqueKey":"from","typeLabel":"string"},"html":{"type":"string","uniqueKey":"html","typeLabel":"string"},"text":{"type":"string","uniqueKey":"text","typeLabel":"string"},"replyTo":{"type":"string","uniqueKey":"replyTo","typeLabel":"string"},"attachments":{"maxItems":10,"type":"array","items":{"required":["content_type","data","name"],"type":"object","properties":{"name":{"type":"string","isRequired":true,"uniqueKey":"attachments.items.[INDEX].name","typeLabel":"string"},"content_type":{"type":"string","isRequired":true,"uniqueKey":"attachments.items.[INDEX].content_type","typeLabel":"string"},"data":{"type":"string","isRequired":true,"uniqueKey":"attachments.items.[INDEX].data","typeLabel":"string"}},"uniqueKey":"attachments.items.[INDEX]","typeLabel":"object"},"uniqueKey":"attachments","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"subject":"\u003cstring>","to":"\u003cstring>","from":"\u003cstring>","html":"\u003cstring>","text":"\u003cstring>","replyTo":"\u003cstring>","attachments":[{"name":"\u003cstring>","content_type":"\u003cstring>","data":"\u003cstring>"}]}}},"exampleType":"generated"}},"required":false,"exampleType":"generated"},"responses":{"aa3a6aeb-84dc-4b2c-b6fc-f0490ec7e9fb":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","uniqueKey":"status","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"37386fbe-3842-45a8-9a33-33d8afb14d56":{"description":"Bad Request","content":{},"exampleType":"generated"},"ba9ccc88-7b40-4d2f-92fd-c83d9f34e951":{"description":"No valid dns records exists for this mail server","content":{},"exampleType":"generated"},"d4829e5e-e8ae-4834-8f7d-ea1784ad73c1":{"description":"Mail Server not found","content":{},"exampleType":"generated"},"205cd4df-b28e-4f2c-8e5c-2b42cae1e846":{"description":"The source and destination addresses must not be the same","content":{},"exampleType":"generated"},"e78d9444-c57c-4b94-8a5f-f34f828000ee":{"description":"Too mnay requests","content":{},"exampleType":"generated"},"6787c7e1-dfd4-4534-9f36-7d4b242cce85":{"description":"Unexpected error","content":{},"exampleType":"generated"}},"security":{"def5c07b-8649-4395-ac33-6e14b0c26dc7":{"jwt":{"type":"apiKey","name":"Authorization","in":"header","scopes":[],"schemeName":"jwt"}},"fbb6bc87-8698-497c-a9d1-c6061c4e6e1a":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"162e4ac4-7428-4a78-b2fa-30c25c81fe03":{"url":"https://mail-service.liara.ir"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","name":"Authorization","in":"header","scopes":[],"schemeName":"jwt"},"schema":{"title":"Authorization","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"jwt","name":"Authorization"}],"title":"jwt"},{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"JWT","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"spec/mail.yaml"},"subdomain":"liara","siteName":"Liara OpenAPI Docs","title":"send a mail - Liara OpenAPI Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-02T11:20:08.257Z","originalFileLocation":"mail/messages/send-a-mail.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"Liara OpenAPI Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/liara/c4FsEB7C_M7o5Gm9/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/liara/c4FsEB7C_M7o5Gm9/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/liara/c4FsEB7C_M7o5Gm9/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/liara/c4FsEB7C_M7o5Gm9/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/liara/c4FsEB7C_M7o5Gm9/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/liara/c4FsEB7C_M7o5Gm9/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/liara/c4FsEB7C_M7o5Gm9/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/liara/c4FsEB7C_M7o5Gm9/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/liara/c4FsEB7C_M7o5Gm9/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"send a mail - Liara OpenAPI Docs\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Liara OpenAPI Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://developers.liara.ir/mail/messages/send-a-mail\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://liara.mintlify.site/_mintlify/api/og/v2?division=messages\u0026amp;title=send+a+mail\u0026amp;theme=26a1cd71f819cad587f49ff4\u0026amp;signature=473f96cd075d05040f8dc9c5130b17dc1a1f410a086c2795b391c8231b44bff4\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"send a mail - Liara OpenAPI Docs\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://liara.mintlify.site/_mintlify/api/og/v2?division=messages\u0026amp;title=send+a+mail\u0026amp;theme=26a1cd71f819cad587f49ff4\u0026amp;signature=473f96cd075d05040f8dc9c5130b17dc1a1f410a086c2795b391c8231b44bff4\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/liara/c4FsEB7C_M7o5Gm9/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Liara OpenAPI Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#009689\">\u003clink data-mint-head rel=\"canonical\" href=\"https://developers.liara.ir/mail/messages/send-a-mail\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/mail/messages/send-a-mail.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://developers.liara.ir/#organization\",\"name\":\"Liara OpenAPI Docs\",\"url\":\"https://developers.liara.ir\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/liara/2lAl_CkG1cEAkr-Y/logo.png?fit=max\u0026auto=format\u0026n=2lAl_CkG1cEAkr-Y\u0026q=85\u0026s=90f85cd2b2db4fc0e76ca4cf6fb468b5\"}},{\"@type\":\"WebSite\",\"@id\":\"https://developers.liara.ir#website\",\"name\":\"Liara OpenAPI Docs\",\"url\":\"https://developers.liara.ir\",\"publisher\":{\"@id\":\"https://developers.liara.ir/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://developers.liara.ir/mail/messages/send-a-mail#webpage\",\"url\":\"https://developers.liara.ir/mail/messages/send-a-mail\",\"name\":\"send a mail\",\"dateModified\":\"2026-11-02T11:20:08.257Z\",\"isPartOf\":{\"@id\":\"https://developers.liara.ir#website\"},\"breadcrumb\":{\"@id\":\"https://developers.liara.ir/mail/messages/send-a-mail#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://developers.liara.ir/mail/messages/send-a-mail#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API Endpoints\",\"item\":\"https://developers.liara.ir/mail/mails/get-all-mail-servers\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"messages\",\"item\":\"https://developers.liara.ir/mail/messages/get-all-mails\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"send a mail\",\"item\":\"https://developers.liara.ir/mail/messages/send-a-mail\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://developers.liara.ir/mail/messages/send-a-mail#apireference\",\"headline\":\"send a mail\",\"name\":\"send a mail\",\"url\":\"https://developers.liara.ir/mail/messages/send-a-mail\",\"mainEntityOfPage\":{\"@id\":\"https://developers.liara.ir/mail/messages/send-a-mail#webpage\"},\"dateModified\":\"2026-11-02T11:20:08.257Z\",\"publisher\":{\"@id\":\"https://developers.liara.ir/#organization\"},\"isPartOf\":{\"@id\":\"https://developers.liara.ir#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Liara OpenAPI Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Liara OpenAPI Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/mail/messages/send-a-mail.md","siteName":"Liara OpenAPI Docs","nav":{"global":{"anchors":[{"anchor":"Documentation","icon":"book-open-cover","href":"https://docs.liara.ir"},{"anchor":"Blog","icon":"newspaper","href":"https://liara.ir/blog"}]},"products":[{"product":"Platform Core","icon":"layer-group","pages":[{"title":"Platform Core","href":"/pages/platform-core"}]},{"product":"PaaS","icon":"cloud","pages":[{"title":"PaaS","href":"/pages/paas"}]},{"product":"DBaaS","icon":"database","pages":[{"title":"DBaaS","href":"/pages/dbaas"}]},{"product":"Object Storage","icon":"bucket","pages":[{"title":"Object Storage","href":"/pages/object-storage"}]},{"product":"DNS","icon":"globe","pages":[{"title":"DNS","href":"/pages/dns"}]},{"product":"Mail","icon":"envelope","groups":[{"group":"Introduction","icon":"rocket","pages":[{"title":"Mail API","href":"/pages/mail"}]},{"group":"API Endpoints","icon":"file-code","pages":[{"group":"mails","pages":[{"title":"get all mail servers","deprecated":null,"version":null,"openapi":"/spec/mail.yaml get /api/v1/mails","href":"/mail/mails/get-all-mail-servers"},{"title":"create mail server","deprecated":null,"version":null,"openapi":"/spec/mail.yaml post /api/v1/mails","href":"/mail/mails/create-mail-server"},{"title":"get single mail server","deprecated":null,"version":null,"openapi":"/spec/mail.yaml get /api/v1/mails/{mailServerID}","href":"/mail/mails/get-single-mail-server"},{"title":"delete mail server","deprecated":null,"version":null,"openapi":"/spec/mail.yaml delete /api/v1/mails/{mailServerID}","href":"/mail/mails/delete-mail-server"},{"title":"edit mail server","deprecated":null,"version":null,"openapi":"/spec/mail.yaml patch /api/v1/mails/{mailServerID}","href":"/mail/mails/edit-mail-server"},{"title":"count number of sent mails every day","deprecated":null,"version":null,"openapi":"/spec/mail.yaml get /api/v1/mails/{mailServerID}/counts","href":"/mail/mails/count-number-of-sent-mails-every-day"},{"title":"mail server check dns status","deprecated":null,"version":null,"openapi":"/spec/mail.yaml get /api/v1/mails/{mailServerID}/dns-check","href":"/mail/mails/mail-server-check-dns-status"},{"title":"check if domain name is available","deprecated":null,"version":null,"openapi":"/spec/mail.yaml get /api/v1/mails/{domain}/check-availability","href":"/mail/mails/check-if-domain-name-is-available"},{"title":"unfreeze mail server - If you had reserved a plan, it will be your new plan.","deprecated":null,"version":null,"openapi":"/spec/mail.yaml patch /api/v1/mails/{mailServerID}/unfreeze","href":"/mail/mails/unfreeze-mail-server--if-you-had-reserved-a-plan-it-will-be-your-new-plan"},{"title":"gain more info on recent usage","deprecated":null,"version":null,"openapi":"/spec/mail.yaml get /api/v1/mails/{mailServerID}/metrics","href":"/mail/mails/gain-more-info-on-recent-usage"}]},{"group":"smtp","pages":[{"title":"get credential to connect to mail server with SMTP","deprecated":null,"version":null,"openapi":"/spec/mail.yaml get /api/v1/mails/{mailServerID}/smtp-credentials","href":"/mail/smtp/get-credential-to-connect-to-mail-server-with-smtp"},{"title":"generate credentials to connet mail server with SMTP","deprecated":null,"version":null,"openapi":"/spec/mail.yaml post /api/v1/mails/{mailServerID}/smtp-credentials","href":"/mail/smtp/generate-credentials-to-connet-mail-server-with-smtp"},{"title":"revoke credentials to connect mail server with SMTP","deprecated":null,"version":null,"openapi":"/spec/mail.yaml patch /api/v1/mails/{mailServerID}/smtp-credentials","href":"/mail/smtp/revoke-credentials-to-connect-mail-server-with-smtp"},{"title":"delete smtp credential","deprecated":null,"version":null,"openapi":"/spec/mail.yaml delete /api/v1/mails/{mailServerID}/smtp-credentials/{username}","href":"/mail/smtp/delete-smtp-credential"}]},{"group":"accounts","pages":[{"title":"get all mail accounts","deprecated":null,"version":null,"openapi":"/spec/mail.yaml get /api/v1/mails/{mailServerID}/accounts","href":"/mail/accounts/get-all-mail-accounts"},{"title":"add mail account","deprecated":null,"version":null,"openapi":"/spec/mail.yaml post /api/v1/mails/{mailServerID}/accounts","href":"/mail/accounts/add-mail-account"},{"title":"check if mail account is available","deprecated":null,"version":null,"openapi":"/spec/mail.yaml get /api/v1/mails/{mailServerID}/accounts/{accountName}/check-availability","href":"/mail/accounts/check-if-mail-account-is-available"},{"title":"delete mail account","deprecated":null,"version":null,"openapi":"/spec/mail.yaml delete /api/v1/mails/{mailServerID}/accounts/{accountID}","href":"/mail/accounts/delete-mail-account"}]},{"group":"inboundrules","pages":[{"title":"get all inbound rules.","deprecated":null,"version":null,"openapi":"/spec/mail.yaml get /api/v1/mails/{mailServerID}/inboundrules","href":"/mail/inboundrules/get-all-inbound-rules"},{"title":"add inbound rule.","deprecated":null,"version":null,"openapi":"/spec/mail.yaml post /api/v1/mails/{mailServerID}/inboundrules","href":"/mail/inboundrules/add-inbound-rule"},{"title":"delete inbound rule.","deprecated":null,"version":null,"openapi":"/spec/mail.yaml delete /api/v1/mail/{mailServerID}/inboundrules/{inboundruleID}","href":"/mail/inboundrules/delete-inbound-rule"}]},{"group":"messages","pages":[{"title":"get all mails","description":null,"deprecated":null,"version":null,"openapi":"/spec/mail.yaml get /api/v1/mails/{mailServerID}/messages","href":"/mail/messages/get-all-mails"},{"title":"send a mail","deprecated":null,"version":null,"openapi":"/spec/mail.yaml post /api/v1/mails/{mailServerID}/messages","href":"/mail/messages/send-a-mail"},{"title":"get single mail","description":null,"deprecated":null,"version":null,"openapi":"/spec/mail.yaml get /api/v1/mails/{mailServerID}/messages/{messageID}","href":"/mail/messages/get-single-mail"},{"title":"get single mail html","deprecated":null,"version":null,"openapi":"/spec/mail.yaml get /api/v1/mails/{mailServerID}/messages/{messageID}/render","href":"/mail/messages/get-single-mail-html"},{"title":"generate temporary access to email html","deprecated":null,"version":null,"openapi":"/spec/mail.yaml post /api/v1/mails/{mailServerID}/messages/{messageID}/temporary-access","href":"/mail/messages/generate-temporary-access-to-email-html"},{"title":"delete a message permenantly","deprecated":null,"version":null,"openapi":"/spec/mail.yaml delete /api/v1/mails/{mailServerID}/messages/{messageID}/","href":"/mail/messages/delete-a-message-permenantly"},{"title":"trash and untrash a message","deprecated":null,"version":null,"openapi":"/spec/mail.yaml patch /api/v1/mails/{mailServerID}/messages/{messageID}/","href":"/mail/messages/trash-and-untrash-a-message"}]},{"group":"forward","pages":[{"title":"get all extra address to forwarding mails","deprecated":null,"version":null,"openapi":"/spec/mail.yaml get /api/v1/mails/{mailServerID}/accounts/{accountID}/forwards","href":"/mail/forward/get-all-extra-address-to-forwarding-mails"},{"title":"add address endpoint to forwarding mails","deprecated":null,"version":null,"openapi":"/spec/mail.yaml post /api/v1/mails/{mailServerID}/accounts/{accountID}/forwards","href":"/mail/forward/add-address-endpoint-to-forwarding-mails"},{"title":"delete extra endpoint address","deprecated":null,"version":null,"openapi":"/spec/mail.yaml delete /api/v1/mails/{mailServerID}/accounts/{accountID}/forwards/{addressID}","href":"/mail/forward/delete-extra-endpoint-address"}]},{"group":"attachments","pages":[{"title":"get all attachments for message","deprecated":null,"version":null,"openapi":"/spec/mail.yaml get /api/v1/mails/{mailServerID}/messages/{messageID}/attachments","href":"/mail/attachments/get-all-attachments-for-message"},{"title":"download attachment","deprecated":null,"version":null,"openapi":"/spec/mail.yaml get /api/v1/mails/{mailServerID}/messages/{messageID}/attachments/{attachmentID}","href":"/mail/attachments/download-attachment"}]},{"group":"event","pages":[{"title":"get all events for message","deprecated":null,"version":null,"openapi":"/spec/mail.yaml get /api/v1/mails/{mailServerID}/messages/{messageID}/events","href":"/mail/event/get-all-events-for-message"}]},{"group":"tags","pages":[{"title":"get all tags","deprecated":null,"version":null,"openapi":"/spec/mail.yaml get /api/v1/mails/{mailServerID}/tags","href":"/mail/tags/get-all-tags"},{"title":"create a new tag","deprecated":null,"version":null,"openapi":"/spec/mail.yaml post /api/v1/mails/{mailServerID}/tags","href":"/mail/tags/create-a-new-tag"},{"title":"get tags stats","deprecated":null,"version":null,"openapi":"/spec/mail.yaml get /api/v1/mails/{mailServerID}/tags/stats","href":"/mail/tags/get-tags-stats"}]},{"group":"plan","pages":[{"title":"get cuurent mail server plan history","deprecated":null,"version":null,"openapi":"/spec/mail.yaml get /api/v1/mails/{mailServerID}/plan","href":"/mail/plan/get-cuurent-mail-server-plan-history"},{"title":"change mail server plan","deprecated":null,"version":null,"openapi":"/spec/mail.yaml post /api/v1/mails/{mailServerID}/plan","href":"/mail/plan/change-mail-server-plan"},{"title":"remove a reserved plan","deprecated":null,"version":null,"openapi":"/spec/mail.yaml delete /api/v1/mails/{mailServerID}/plan","href":"/mail/plan/remove-a-reserved-plan"}]}]}]},{"product":"File Browser","icon":"folder","pages":[{"title":"File Browser","href":"/pages/file-browser"}]},{"product":"IaaS","icon":"server","pages":[{"title":"IaaS","href":"/pages/iaas"}]},{"product":"AI","icon":"brain","pages":[{"title":"AI","href":"/pages/ai"}]},{"product":"Billing","icon":"credit-card","pages":[{"title":"Billing","href":"/billing/billing/get-current-user-billing-information"}]},{"product":"Account","icon":"user","pages":[{"title":"Account","href":"/account/user/get-current-user-and-console-information"}]}]},"basePath":"","title":"send a mail - Liara OpenAPI Docs","buildId":"dpl_G2Qd45vZZ7MkBiGF9yYx8ZsbbKXX","deploymentId":"dpl_G2Qd45vZZ7MkBiGF9yYx8ZsbbKXX","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-NXj-Rqjv.js","utils-m0thOP-_.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-D13EKcfm.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema--XTdfsEb.js","snippetPresets-D3s4lmAH.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","Page-DSpdRuhM.js","ApiExamples-ChURybxL.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-DL8CiXq2.js","shallow-DI2-YB2E.js","getApiPlaygroundDisplay-DxbW7b_y.js","CodeSnippet-CiNYS0pP.js","CodeSnippets-BT87bThu.js","getPastedJson-F_g_IrFQ.js","icon-CCIG5BAs.js","MethodPill-DY3E0jwx.js","DuplicateIcon-BN88xnEg.js","createIcon-VCCc5HO5.js","DynamicMarkdown-CaSwclgK.js","SectionHeading-DXV8nWhc.js","axios-vUo_bRtp.js","Markdown-CV32Re6G.js","clsx-5ydLOnhV.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-pFDdfjRe.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BUGO5bPJ.js"]}