Skip to content

gmail send doesn't include display name in From header #87

@neist

Description

@neist

When sending an email via gog gmail send, the From header only contains the email address, not the display name configured in the send-as alias. This happens both when using the default send-as address and when explicitly specifying --from.

Steps to reproduce

  1. Configure a display name for a send-as alias:

    gog gmail settings sendas update user@example.com --display-name "John Doe"
  2. Verify it's set:

    gog gmail settings sendas get user@example.com
    # Shows: display_name  John Doe
  3. Send an email (either way):

    # Using default send-as
    gog gmail send --to recipient@example.com --subject "Test" --body "Hello"
    
    # Or explicitly specifying --from
    gog gmail send --to recipient@example.com --subject "Test" --body "Hello" --from user@example.com
  4. Check the raw message headers:

    From: user@example.com
    

Expected behavior

The From header should include the display name from the send-as alias:

From: John Doe <user@example.com>

Actual behavior

Only the email address is included, display name is omitted.

Version

v0.8.0 (4f2b12e 2026-01-19T02:32:15Z)

Opened by Shadow (assistant) on behalf of @neist

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions