How can I configure Gitea to use SendGrid API #2146

Closed
opened 2025-11-02 04:25:18 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @chanhlt on GitHub (Aug 6, 2018).

I have a problem when deploying Gitea to Google Compute Engine.
Gitea cannot send notification email because Google block port 25, 587, 465.
However, I have a SendGrid API key and I am planning to use it (as Google recommend).
But I don't know how to configure.

Can anyone teach me about this?

  • Gitea version (or commit ref):
  • Git version: 1.5.0-rc2
  • Operating system: Debian 9
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

...

Screenshots

Originally created by @chanhlt on GitHub (Aug 6, 2018). <!-- 1. Please speak English, this is the language all of us can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/NsatcWJ) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> I have a problem when deploying Gitea to Google Compute Engine. Gitea cannot send notification email because Google block port 25, 587, 465. However, I have a SendGrid API key and I am planning to use it (as Google recommend). But I don't know how to configure. Can anyone teach me about this? - Gitea version (or commit ref): - Git version: 1.5.0-rc2 - Operating system: Debian 9 - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant - Log gist: ## Description ... ## Screenshots <!-- **If this issue involves the Web Interface, please include a screenshot** -->
GiteaMirror added the type/question label 2025-11-02 04:25:18 -06:00
Author
Owner

@techknowlogick commented on GitHub (Aug 6, 2018):

You can also use sendgrid with port 2525: https://sendgrid.com/docs/API_Reference/SMTP_API/getting_started_smtp.html

@techknowlogick commented on GitHub (Aug 6, 2018): You can also use sendgrid with port 2525: https://sendgrid.com/docs/API_Reference/SMTP_API/getting_started_smtp.html
Author
Owner

@chanhlt commented on GitHub (Aug 6, 2018):

@techknowlogick : Thanks a lot. I works perfect!

@chanhlt commented on GitHub (Aug 6, 2018): @techknowlogick : Thanks a lot. I works perfect!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2146