## Send a raw MIME email message. `client.EmailSending.SendRaw(ctx, params) (*EmailSendingSendRawResponse, error)` **post** `/accounts/{account_id}/email/sending/send_raw` Send a raw MIME email message. ### Parameters - `params EmailSendingSendRawParams` - `AccountID param.Field[string]` Path param: Identifier of the account. - `From param.Field[string]` Body param: Sender email address. - `MimeMessage param.Field[string]` Body param: 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 param.Field[[]string]` Body param: List of recipient email addresses. ### Returns - `type EmailSendingSendRawResponse struct{…}` - `Delivered []string` Email addresses to which the message was delivered immediately. - `PermanentBounces []string` Email addresses that permanently bounced. - `Queued []string` Email addresses for which delivery was queued for later. ### Example ```go package main import ( "context" "fmt" "github.com/cloudflare/cloudflare-go" "github.com/cloudflare/cloudflare-go/email_sending" "github.com/cloudflare/cloudflare-go/option" ) func main() { client := cloudflare.NewClient( option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"), ) response, err := client.EmailSending.SendRaw(context.TODO(), email_sending.EmailSendingSendRawParams{ AccountID: cloudflare.F("account_id"), From: cloudflare.F("sender@example.com"), MimeMessage: cloudflare.F("From: sender@example.com\r\nTo: recipient@example.com\r\nSubject: Hello\r\nContent-Type: text/plain\r\n\r\nHello, World!"), Recipients: cloudflare.F([]string{"recipient@example.com"}), }) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", 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 } } ```