## Send a raw MIME email message. `email_sending.send_raw(EmailSendingSendRawParams**kwargs) -> EmailSendingSendRawResponse` **post** `/accounts/{account_id}/email/sending/send_raw` Send a raw MIME email message. ### Parameters - `account_id: str` Identifier of the account. - `from_: str` Sender email address. - `mime_message: str` The full MIME-encoded email message. Should include standard RFC 5322 headers such as From, To, Subject, and Content-Type. The from and recipients fields in the request body control SMTP envelope routing; the From and To headers in the MIME message control what the recipient's email client displays. - `recipients: SequenceNotStr[str]` List of recipient email addresses. ### Returns - `class EmailSendingSendRawResponse: …` - `delivered: List[str]` Email addresses to which the message was delivered immediately. - `permanent_bounces: List[str]` Email addresses that permanently bounced. - `queued: List[str]` Email addresses for which delivery was queued for later. ### Example ```python import os from cloudflare import Cloudflare client = Cloudflare( api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted ) response = client.email_sending.send_raw( account_id="account_id", from_="sender@example.com", mime_message="From: sender@example.com\r\nTo: recipient@example.com\r\nSubject: Hello\r\nContent-Type: text/plain\r\n\r\nHello, World!", recipients=["recipient@example.com"], ) print(response.delivered) ``` #### Response ```json { "errors": [ { "code": 0, "message": "message" } ], "messages": [ { "code": 0, "message": "message" } ], "result": { "delivered": [ "recipient@example.com" ], "permanent_bounces": [ "dev@stainless.com" ], "queued": [ "dev@stainless.com" ] }, "success": true, "result_info": { "count": 0, "per_page": 0, "total_count": 0, "cursor": "cursor", "page": 0 } } ```