Skip to content

Bug: aws-ses-v2-local allows empty ToAddress, but AWS SES does notΒ #44

@DAcodedBEAT

Description

@DAcodedBEAT

When using the AWS SESv2 Go SDK to send an email with an empty ToAddress, AWS SES returns the following error:

error: operation error SESv2: SendEmail, https response error StatusCode: 400, RequestID: <request-id>, BadRequestException: Invalid email address .

However, aws-ses-v2-local does not raise any errors in the same case, which creates a discrepancy between local testing and actual AWS behavior.

Expected Behavior:

aws-ses-v2-local should reject empty ToAddress values and return a validation error similar to what AWS SES would return.

Steps to Reproduce:

  • Use the SESv2 SDK to send an email with an empty ToAddress.

  • Observe the error from AWS.

  • Perform the same action against aws-ses-v2-local and note that no error is returned.

TODO:
Check whether this issue applies only to ToAddress, or if AWS SES also rejects requests with no destination addresses set at all (i.e., ToAddresses, CcAddresses, and BccAddresses all empty or omitted).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions