Method
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
The unique identifier of the received email
Response
The unique identifier of the email
Array of recipient email addresses
The sender’s email address
ISO 8601 timestamp of when the email was received
The HTML content of the email
The plain text content of the email
Array of BCC recipient addresses
Array of CC recipient addresses
Array of reply-to addresses
Email headers as key-value pairs
Array of attachment metadataThe unique identifier of the attachment
The filename of the attachment
The MIME type of the attachment
The content disposition header value
The content ID for inline attachments
Access to the raw email fileTemporary URL to download the raw email
When the download URL expires
Example
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)
}