> ## 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 Email

> Retrieve an email by ID using the Resend Go SDK

## Get

Retrieves an email with the given email ID.

```go theme={null}
func (s *EmailsSvcImpl) Get(emailId string) (*Email, error)
```

### Parameters

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

### Returns

<ResponseField name="response" type="*Email">
  <Expandable title="Email fields">
    <ResponseField name="Id" type="string">
      The unique identifier of the email.
    </ResponseField>

    <ResponseField name="Object" type="string">
      The object type ("email").
    </ResponseField>

    <ResponseField name="To" type="[]string">
      Recipient email addresses.
    </ResponseField>

    <ResponseField name="From" type="string">
      Sender email address.
    </ResponseField>

    <ResponseField name="CreatedAt" type="string">
      Timestamp when the email was created.
    </ResponseField>

    <ResponseField name="Subject" type="string">
      Email subject line.
    </ResponseField>

    <ResponseField name="Html" type="string">
      HTML version of the message.
    </ResponseField>

    <ResponseField name="Text" type="string">
      Plain text version of the message.
    </ResponseField>

    <ResponseField name="Bcc" type="[]string">
      Blind carbon copy recipients.
    </ResponseField>

    <ResponseField name="Cc" type="[]string">
      Carbon copy recipients.
    </ResponseField>

    <ResponseField name="ReplyTo" type="[]string">
      Reply-to email addresses.
    </ResponseField>

    <ResponseField name="LastEvent" type="string">
      The last event status of the email (e.g., "delivered", "bounced").
    </ResponseField>
  </Expandable>
</ResponseField>

### Example

```go theme={null}
package main

import (
	"fmt"
	"github.com/resend/resend-go/v3"
)

func main() {
	client := resend.NewClient("re_123456789")

	email, err := client.Emails.Get("4ef9a417-02e9-4d39-ad75-9611e0fcc33c")
	if err != nil {
		panic(err)
	}

	fmt.Printf("Email ID: %s\n", email.Id)
	fmt.Printf("From: %s\n", email.From)
	fmt.Printf("To: %v\n", email.To)
	fmt.Printf("Subject: %s\n", email.Subject)
	fmt.Printf("Created At: %s\n", email.CreatedAt)
	fmt.Printf("Last Event: %s\n", email.LastEvent)
}
```

***

## GetWithContext

Retrieves an email with the given email ID and context.

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

### Parameters

<ParamField path="ctx" type="context.Context" required>
  Context for the request.
</ParamField>

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

### Returns

<ResponseField name="response" type="*Email">
  See [Get](#get) for response field details.
</ResponseField>

### Example

```go theme={null}
package main

import (
	"context"
	"fmt"
	"github.com/resend/resend-go/v3"
)

func main() {
	ctx := context.Background()
	client := resend.NewClient("re_123456789")

	email, err := client.Emails.GetWithContext(ctx, "4ef9a417-02e9-4d39-ad75-9611e0fcc33c")
	if err != nil {
		panic(err)
	}

	fmt.Printf("Email ID: %s\n", email.Id)
	fmt.Printf("Subject: %s\n", email.Subject)
}
```
