{"id":39224,"date":"2026-10-23T16:40:15","date_gmt":"2026-10-23T19:40:15","guid":{"rendered":"https:\/\/www.locaweb.com.br\/ajuda\/?post_type=ht_kb&#038;p=39224"},"modified":"2026-10-23T16:40:15","modified_gmt":"2026-10-23T19:40:15","slug":"como-enviar-e-mails-com-anexo-pela-api-do-smtp-locaweb","status":"publish","type":"ht_kb","link":"https:\/\/www.locaweb.com.br\/ajuda\/wiki\/como-enviar-e-mails-com-anexo-pela-api-do-smtp-locaweb\/","title":{"rendered":"Como enviar e-mails com anexo pela API do SMTP Locaweb"},"content":{"rendered":"    \t\t<div class=\"hts-messages hts-messages--alert  hts-messages--withtitle hts-messages--withicon \"   >\r\n    \t\t\t<span class=\"hts-messages__title\">Informa\u00e7\u00e3o!<\/span>    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\t<span style=\"font-weight: 400;\">Para enviar anexos pela API do SMTP Locaweb, a mensagem \u00e9 montada no formato MIME multipart\/mixed e enviada dentro do campo body. O header Content-Type da requisi\u00e7\u00e3o informa esse formato e o separador (boundary) entre as partes.<\/span>    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n<h2><b>Como funciona<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">A mensagem tem duas partes ou mais:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Texto do e-mail: o conte\u00fado que o destinat\u00e1rio l\u00ea.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Anexo: o arquivo convertido em Base64, com nome e tipo.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">A API interpreta a estrutura e entrega o e-mail com o arquivo anexado.<\/span><\/p>\n<h2><b>Formato da requisi\u00e7\u00e3o<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">Endpoint: POST https:\/\/api.smtplw.com.br\/v1\/messages<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Headers:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Content-Type: application\/json<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">x-auth-token: SEU_TOKEN<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">\u00a0Exemplo pr\u00e1tico de envio com anexo &#8220;relatorio.pdf&#8221; demonstrando visualmente o corpo e o anexo do e-mail. (Envio.png)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-39227 aligncenter\" src=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/10\/Envio-1-300x194.png\" alt=\"Exemplo pr\u00e1tico de envio com anexo &quot;relatorio.pdf&quot; demonstrando visualmente o corpo e o anexo do e-mail. (Envio.png)\" width=\"448\" height=\"290\" srcset=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/10\/Envio-1-300x194.png 300w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/10\/Envio-1-768x496.png 768w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/10\/Envio-1-50x32.png 50w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/10\/Envio-1-60x39.png 60w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/10\/Envio-1-100x65.png 100w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/10\/Envio-1.png 892w\" sizes=\"auto, (max-width: 448px) 100vw, 448px\" \/><br \/>\n<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-39226 aligncenter\" src=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/10\/Captura-de-tela-2026-10-23-163017-300x214.png\" alt=\"Imagem da estrutura da requisi\u00e7\u00e3o com anexo, header, 2 partes e fechamento mostrando o uso do boundary separando o corpo do e-mail e o anexo. (Boundary_Requisicao)\nO valor de boundary declarado no header marca o in\u00edcio de cada parte do body, e a mensagem termina com o mesmo valor seguido de --.\n\" width=\"491\" height=\"350\" srcset=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/10\/Captura-de-tela-2026-10-23-163017-300x214.png 300w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/10\/Captura-de-tela-2026-10-23-163017-768x549.png 768w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/10\/Captura-de-tela-2026-10-23-163017-50x36.png 50w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/10\/Captura-de-tela-2026-10-23-163017-60x43.png 60w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/10\/Captura-de-tela-2026-10-23-163017-100x71.png 100w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2026\/10\/Captura-de-tela-2026-10-23-163017.png 802w\" sizes=\"auto, (max-width: 491px) 100vw, 491px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">\u00a0(Boundary_Requisicao)<\/span><\/p>\n<p><span style=\"font-weight: 400;\">O valor de boundary declarado no header marca o in\u00edcio de cada parte do body, e a mensagem termina com o mesmo valor seguido de &#8211;.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Modelo do JSON:<\/span><\/p>\n<pre><span style=\"font-weight: 400;\">{<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">\"subject\": \"Assunto do e-mail\",<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">\"from\": \"remetente@seudominio.com.br\",<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">\"to\": \"destinatario@dominio.com.br\",<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">\"headers\": {<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">\u00a0 \u00a0 \"Content-Type\": \"multipart\/mixed; boundary=\\\"LW_BOUNDARY_123\\\"\"<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">},<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">\"body\": \"--LW_BOUNDARY_123\\r\\nContent-Type: text\/plain; charset=utf-8\\r\\n\\r\\nTexto do e-mail aqui.\\r\\n\\r\\n--LW_BOUNDARY_123\\r\\nContent-Type: application\/pdf; name=\\\"arquivo.pdf\\\"\\r\\nContent-Transfer-Encoding: base64\\r\\nContent-Disposition: attachment; filename=\\\"arquivo.pdf\\\"\\r\\n\\r\\nBASE64_DO_ARQUIVO\\r\\n--LW_BOUNDARY_123--\\r\\n\"<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">}<\/span><span style=\"font-weight: 400;\">\r\n\r\n<\/span>\r\n\r\n<b>    \t\t<div class=\"hts-messages hts-messages--alert  hts-messages--withtitle hts-messages--withicon \"   >\r\n    \t\t\t<span class=\"hts-messages__title\">Importante!<\/span>    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\t<\/b><\/pre>\n<p><span style=\"font-weight: 400;\"> Regras do body:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">O boundary informado no header deve ser o mesmo usado no body. Cada parte come\u00e7a com &#8211;LW_BOUNDARY_123 e a mensagem termina com &#8211;LW_BOUNDARY_123&#8211;.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">As linhas s\u00e3o separadas por \\r\\n, com uma linha em branco entre os cabe\u00e7alhos de cada parte e o conte\u00fado.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">O arquivo vai em Base64, quebrado em linhas de 76 caracteres.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">A parte do anexo leva o Content-Type do arquivo, Content-Transfer-Encoding: base64 e Content-Disposition: attachment; filename=&#8221;&#8230;&#8221;<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">O from deve ser um remetente cadastrado e confirmado no painel do SMTP Locaweb.<\/span><\/li>\n<\/ul>\n<p><b>    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t<\/b><\/p>\n<h2><b>Exemplo pronto<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">O script abaixo l\u00ea o arquivo, converte para Base64, identifica o tipo e monta o JSON automaticamente. Ele roda em Linux com curl e python3.<\/span><\/p>\n<pre><span style=\"font-weight: 400;\">TOKEN=\"SEU_TOKEN\"<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">URL=\"https:\/\/api.smtplw.com.br\/v1\/messages\"<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">FROM=\"remetente@seudominio.com.br\"<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">TO=\"destinatario@dominio.com.br\"<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">ASSUNTO=\"Relat\u00f3rio do m\u00eas\"<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">TEXTO=\"Ol\u00e1! Segue em anexo o relat\u00f3rio.\"<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">ARQUIVO=\"\/caminho\/do\/arquivo\/relatorio.pdf\"<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">python3 \"<\/span><span style=\"font-weight: 400;\">FROM\"\"<\/span><span style=\"font-weight: 400;\">TO\" \"<\/span><span style=\"font-weight: 400;\">ASSUNTO\"\"<\/span><span style=\"font-weight: 400;\">TEXTO\" \"$ARQUIVO\" &gt; envio.json &lt;&lt;'PY'<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">import json, sys, base64, os, mimetypes<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">frm, to, assunto, texto, arquivo = sys.argv[1:6]<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">nome = os.path.basename(arquivo)<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">tipo = mimetypes.guess_type(arquivo)[0] or \"application\/octet-stream\"<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">b64 = base64.b64encode(open(arquivo, \"rb\").read()).decode()<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">linhas = \"\\r\\n\".join(b64[i:i+76] for i in range(0, len(b64), 76))<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">B = \"LW_BOUNDARY_123\"<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">body = (<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">\u00a0 \u00a0 f\"--{B}\\r\\nContent-Type: text\/plain; charset=utf-8\\r\\n\\r\\n{texto}\\r\\n\\r\\n\"<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">\u00a0 \u00a0 f\"--{B}\\r\\nContent-Type: {tipo}; name=\\\"{nome}\\\"\\r\\n\"<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">\u00a0 \u00a0 \"Content-Transfer-Encoding: base64\\r\\n\"<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">\u00a0 \u00a0 f\"Content-Disposition: attachment; filename=\\\"{nome}\\\"\\r\\n\\r\\n\"<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">\u00a0 \u00a0 f\"{linhas}\\r\\n--{B}--\\r\\n\"<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">)<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">print(json.dumps({<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">\u00a0 \u00a0 \"subject\": assunto, \"from\": frm, \"to\": to,<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">\u00a0 \u00a0 \"headers\": {\"Content-Type\": f'multipart\/mixed; boundary=\"{B}\"'},<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">\u00a0 \u00a0 \"body\": body<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">}))<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">PY<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">curl -s -i -X POST \"$URL\" \\<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">-H \"Content-Type: application\/json\" \\<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">-H \"x-auth-token: $TOKEN\" \\<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">-d @envio.json | grep -iE \"^HTTP|^location\"<\/span><span style=\"font-weight: 400;\">\r\n\r\n<\/span><\/pre>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">\u00a0    \t\t<div class=\"hts-messages hts-messages--info  hts-messages--withtitle hts-messages--withicon \"   >\r\n    \t\t\t<span class=\"hts-messages__title\">Dica!<\/span>    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\t<\/span><span style=\"font-weight: 400;\">Preencha TOKEN, FROM, TO, ASSUNTO, TEXTO e ARQUIVO. O nome do anexo \u00e9 o pr\u00f3prio nome do arquivo. O retorno esperado \u00e9 HTTP\/1.1 201 Created e um location com o ID da mensagem.<\/span><span style=\"font-weight: 400;\">    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t<\/span><\/p>\n<h2><b>V\u00e1r<\/b><b style=\"color: #17181a; font-size: 28px;\">ios anexos<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">Para enviar mais de um arquivo, repita a parte do anexo antes do fechamento LW_BOUNDARY_123&#8211;. Estrutura do body com dois anexos:<\/span><\/p>\n<pre><span style=\"font-weight: 400;\">--LW_BOUNDARY_123<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">Content-Type: text\/plain; charset=utf-8<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">Texto do e-mail<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">--LW_BOUNDARY_123<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">Content-Type: application\/pdf; name=\"relatorio.pdf\"<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">Content-Transfer-Encoding: base64<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">Content-Disposition: attachment; filename=\"relatorio.pdf\"<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">(Base64 do PDF)<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">--LW_BOUNDARY_123<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">Content-Type: image\/png; name=\"grafico.png\"<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">Content-Transfer-Encoding: base64<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">Content-Disposition: attachment; filename=\"grafico.png\"<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">(Base64 da imagem)<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">\r\n<\/span><span style=\"font-weight: 400;\">--LW_BOUNDARY_123--<\/span><span style=\"font-weight: 400;\">\r\n\r\n<\/span><\/pre>\n<p><span style=\"font-weight: 400;\">No JSON, essas quebras de linha s\u00e3o escritas como \\r\\n.<\/span><\/p>\n<h2><b>Limites e tipos de arquivo<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">O campo body aceita at\u00e9 1 MB, j\u00e1 com os anexos em Base64. Como o Base64 aumenta o arquivo em cerca de 33%, cabem por volta de 700 KB de anexos por mensagem.<\/span><\/p>\n<table>\n<thead>\n<tr>\n<th><b>Item<\/b><\/th>\n<th><b>Limite<\/b><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0<\/span><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><span style=\"font-weight: 400;\">Tamanho do body (texto + anexos em Base64)<\/span><\/td>\n<td><span style=\"font-weight: 400;\">1 MB<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Destinat\u00e1rios por mensagem<\/span><\/td>\n<td><span style=\"font-weight: 400;\">1.000<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Envios por minuto<\/span><\/td>\n<td><span style=\"font-weight: 400;\">1.000<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Cabe\u00e7alhos por mensagem<\/span><\/td>\n<td><span style=\"font-weight: 400;\">50<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<table>\n<thead>\n<tr>\n<th><b>Extens\u00e3o<\/b><\/th>\n<th><b>Content-Type<\/b><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0<\/span><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><span style=\"font-weight: 400;\">.pdf<\/span><\/td>\n<td><span style=\"font-weight: 400;\">application\/pdf<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">.png<\/span><\/td>\n<td><span style=\"font-weight: 400;\">image\/png<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">.jpg<\/span><\/td>\n<td><span style=\"font-weight: 400;\">image\/jpeg<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">.zip<\/span><\/td>\n<td><span style=\"font-weight: 400;\">application\/zip<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">.docx<\/span><\/td>\n<td><span style=\"font-weight: 400;\">application\/vnd.openxmlformats-officedocument.wordprocessingml.document<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">.xlsx<\/span><\/td>\n<td><span style=\"font-weight: 400;\">application\/vnd.openxmlformats-officedocument.spreadsheetml.sheet<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"font-weight: 400;\">O script de exemplo identifica o tipo automaticamente.<\/span><\/p>\n<h2><b>Consultar o status do envio<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">O ID da mensagem vem no header location da resposta. Para acompanhar o envio:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">curl -s https:\/\/api.smtplw.com.br\/v1\/messages\/ID_DA_MENSAGEM -H &#8220;x-auth-token: SEU_TOKEN&#8221;<\/span><\/p>\n<table>\n<thead>\n<tr>\n<th><b>Status<\/b><\/th>\n<th><b>Significado<\/b><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0<\/span><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><span style=\"font-weight: 400;\">Enfileirado<\/span><\/td>\n<td><span style=\"font-weight: 400;\">A mensagem est\u00e1 na fila para envio<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Enviado<\/span><\/td>\n<td><span style=\"font-weight: 400;\">A mensagem foi enviada\u00a0<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Erro<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Falha no envio; o detalhe aparece no campo response\u00a0<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">\u00a0    \t\t<div class=\"hts-messages hts-messages--info  hts-messages--withtitle hts-messages--withicon \"   >\r\n    \t\t\t<span class=\"hts-messages__title\">Conhe\u00e7a!<\/span>    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\tPara arquivos maiores que os limites da API (acima de 700 KB), use o envio via SMTP (servidor smtplw.com.br, porta 587) ou inclua um link para download no corpo do e-mail.    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Como funciona A mensagem tem duas partes ou mais: Texto do e-mail: o conte\u00fado que o destinat\u00e1rio l\u00ea. Anexo: o arquivo convertido em Base64, com nome e tipo. A API interpreta a estrutura e entrega o e-mail com o arquivo anexado. Formato da requisi\u00e7\u00e3o Endpoint: POST https:\/\/api.smtplw.com.br\/v1\/messages Headers: Content-Type: application\/json&#8230;<\/p>\n","protected":false},"author":55,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[115],"ht-kb-tag":[],"class_list":["post-39224","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-smtp-locaweb"],"_links":{"self":[{"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb\/39224","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/users\/55"}],"replies":[{"embeddable":true,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/comments?post=39224"}],"version-history":[{"count":1,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb\/39224\/revisions"}],"predecessor-version":[{"id":39228,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb\/39224\/revisions\/39228"}],"wp:attachment":[{"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/media?parent=39224"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb-category?post=39224"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb-tag?post=39224"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}