> ## Documentation Index
> Fetch the complete documentation index at: https://mintlify.com/resend/resend-go/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Inbound Email

> Retrieve a received email by ID with full content.

## Method

```go theme={null}
func (s *ReceivingSvcImpl) Get(emailId string) (*ReceivedEmail, error)
func (s *ReceivingSvcImpl) GetWithContext(ctx context.Context, emailId string) (*ReceivedEmail, error)
```

Access via: `client.Emails.Receiving.Get(emailId)`

## Parameters

<ParamField path="emailId" type="string" required>
  The unique identifier of the received email
</ParamField>

## Response

<ResponseField name="Id" type="string">
  The unique identifier of the email
</ResponseField>

<ResponseField name="Object" type="string">
  Always `"email"`
</ResponseField>

<ResponseField name="To" type="[]string">
  Array of recipient email addresses
</ResponseField>

<ResponseField name="From" type="string">
  The sender's email address
</ResponseField>

<ResponseField name="CreatedAt" type="string">
  ISO 8601 timestamp of when the email was received
</ResponseField>

<ResponseField name="Subject" type="string">
  The email subject line
</ResponseField>

<ResponseField name="Html" type="string">
  The HTML content of the email
</ResponseField>

<ResponseField name="Text" type="string">
  The plain text content of the email
</ResponseField>

<ResponseField name="Bcc" type="[]string">
  Array of BCC recipient addresses
</ResponseField>

<ResponseField name="Cc" type="[]string">
  Array of CC recipient addresses
</ResponseField>

<ResponseField name="ReplyTo" type="[]string">
  Array of reply-to addresses
</ResponseField>

<ResponseField name="Headers" type="map[string]string">
  Email headers as key-value pairs
</ResponseField>

<ResponseField name="MessageId" type="string">
  The email message ID
</ResponseField>

<ResponseField name="Attachments" type="[]ReceivedAttachment">
  Array of attachment metadata

  <ResponseField name="Id" type="string">
    The unique identifier of the attachment
  </ResponseField>

  <ResponseField name="Filename" type="string">
    The filename of the attachment
  </ResponseField>

  <ResponseField name="ContentType" type="string">
    The MIME type of the attachment
  </ResponseField>

  <ResponseField name="ContentDisposition" type="string">
    The content disposition header value
  </ResponseField>

  <ResponseField name="ContentId" type="string">
    The content ID for inline attachments
  </ResponseField>
</ResponseField>

<ResponseField name="Raw" type="RawEmail">
  Access to the raw email file

  <ResponseField name="DownloadUrl" type="string">
    Temporary URL to download the raw email
  </ResponseField>

  <ResponseField name="ExpiresAt" type="string">
    When the download URL expires
  </ResponseField>
</ResponseField>

## Example

```go theme={null}
client := resend.NewClient("re_123456789")

email, err := client.Emails.Receiving.Get("email_abc123")
if err != nil {
    panic(err)
}

fmt.Println("Subject:", email.Subject)
fmt.Println("From:", email.From)
fmt.Println("HTML Content:", email.Html)
fmt.Println("Text Content:", email.Text)

for _, attachment := range email.Attachments {
    fmt.Printf("Attachment: %s (%s)\n", attachment.Filename, attachment.ContentType)
}
```
