How do I set a sender's "from" display name for Google Mail/gmail email notifications?

Hi,

I’m using the Google Mail integration to send emails alarms which have been triggered. It works perfectly but the only issue is that the sender’s display name isn’t really useful. If I’m using [email protected] as the account to send the email, the sender’s display name is “username”.

Within the Gmail API, there’s a function: “displayName” which allows one to be able to set a display name - is it possible to be able to set this so that the from display name is more useful/appropriate?

+1
Have you found a solution?

If using SMTP, you specify this in the from address field itself. This is universal and should work across all providers/MX’s as it is part of the spec (see “Syntax” here Email address - Wikipedia). Example is below:

Test Display Name <[email protected]>