Title: Wrong sender name when using Gmail API
Last modified: November 12, 2025

---

# Wrong sender name when using Gmail API

 *  Resolved [lysianemtp](https://wordpress.org/support/users/lysianemtp/)
 * (@lysianemtp)
 * [6 months, 2 weeks ago](https://wordpress.org/support/topic/wrong-sender-name-when-using-gmail-api/)
 * Hello,
 * I’m having an issue with the sender name when sending emails through **Post SMTP
   using the Gmail API**.
   All emails are being delivered successfully, but Gmail
   always shows the sender as **“Lysiane”** instead of my desired name **“My Travel
   Planner”**.
 * Here’s the full context and what I’ve already checked: ✅ **Current setup**
    - **Website:** [https://www.mytravelplanner.io](https://www.mytravelplanner.io)
    - **Mailer type:** Gmail API
    - **Post SMTP is configured correctly** (emails send successfully)
    - **Sender Name in Post SMTP → Message tab:** `My Travel Planner`
    - **“Prevent plugins and themes from changing this”** is checked
    - **Directorist plugin (which triggers automated emails)** also set to “My Travel
      Planner” as sender
    - **Gmail account used:** `lysiane@mytravelplanner.io`
 * 🔍 **What happens**
    - All outgoing emails arrive correctly.
    - But the sender name always appears as **“Lysiane”** (the personal name of 
      the Gmail account owner) instead of **“My Travel Planner.”**
    - Previously, when I was using my host’s SMTP server (`helicoptere.o2switch.
      net`), the sender name appeared correctly as **My Travel Planner**.
    - This issue only started after switching to Gmail API authentication.
 * 🧩 **What I’ve tried**
    1. Confirmed “From Name” = _My Travel Planner_ in all plugins (WordPress General
       Settings, Post SMTP, and Directorist).
    2. Checked Gmail settings → “Send mail as” already set to _My Travel Planner_.
    3. Deleted OAuth access and reconnected Gmail API.
    4. Reinstalled Post SMTP.
 * Emails are still sent fine, but Gmail keeps replacing the display name with “
   Lysiane.” ❓ **What I need help with**
 * Is there any way to **force Post SMTP / Gmail API** to use the **custom “From
   Name”** instead of the Gmail account’s personal name?
   Or can this be overridden
   through Post SMTP configuration or a filter?
 * Thanks a lot for your help!
   — Lysiane([https://www.mytravelplanner.io](https://www.mytravelplanner.io))

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [M Aqib Khan](https://wordpress.org/support/users/aqibkhan9/)
 * (@aqibkhan9)
 * [6 months, 1 week ago](https://wordpress.org/support/topic/wrong-sender-name-when-using-gmail-api/#post-18723148)
 * Hello [@lysianemtp](https://wordpress.org/support/users/lysianemtp/),
 * We hope this message finds you well.
 * Thank you for reaching out to our Support team. We’re truly sorry to hear that
   you’ve encountered this issue.
 * We attempted to reproduce the issue on our end but were unable to replicate it.
   Please ensure that the Prevent plugin & theme is enabled for both From Name and
   From Email.
 * If the issue persists, we recommend performing a conflict test and sharing the
   name of any plugin or theme that may be causing the conflict. This will allow
   us to assist you more effectively.
 * Warm regards,
   Support Team – WP Experts
 *  Plugin Support [M Aqib Khan](https://wordpress.org/support/users/aqibkhan9/)
 * (@aqibkhan9)
 * [6 months ago](https://wordpress.org/support/topic/wrong-sender-name-when-using-gmail-api/#post-18729936)
 * Hello @lysianemtp ,
 * We hope you are doing well.
 * We are marking this thread as resolved due to inactivity. If you encounter any
   further issues, please feel free to open a new thread.
 * Have a great day!
 * Thanks and regards,
   Support Team – WP Experts
 *  Thread Starter [lysianemtp](https://wordpress.org/support/users/lysianemtp/)
 * (@lysianemtp)
 * [6 months ago](https://wordpress.org/support/topic/wrong-sender-name-when-using-gmail-api/#post-18731568)
 * HI,
 * I am sorry I was on vacation.
 * I already made a conflict test…

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Wrong sender name when using Gmail API’ is closed to new replies.

 * ![](https://ps.w.org/post-smtp/assets/icon-128x128.gif?rev=3209655)
 * [Post SMTP – Complete Email Deliverability and SMTP Solution with Email Logs, Alerts, Backup SMTP & Mobile App](https://wordpress.org/plugins/post-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/post-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-smtp/reviews/)

## Tags

 * [from name](https://wordpress.org/support/topic-tag/from-name/)
 * [gmail api](https://wordpress.org/support/topic-tag/gmail-api/)
 * [OAuth](https://wordpress.org/support/topic-tag/oauth/)
 * [sender name](https://wordpress.org/support/topic-tag/sender-name/)
 * [Wordpress Email](https://wordpress.org/support/topic-tag/wordpress-email/)

 * 3 replies
 * 2 participants
 * Last reply from: [lysianemtp](https://wordpress.org/support/users/lysianemtp/)
 * Last activity: [6 months ago](https://wordpress.org/support/topic/wrong-sender-name-when-using-gmail-api/#post-18731568)
 * Status: resolved