Nachrichten mit Diensten von Drittanbietern senden
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
App Engine-Anwendungen können über Drittanbieter E-Mails und SMS senden sowie Telefonanrufe ausführen und empfangen. Mit E-Mails lassen sich beispielsweise geschäftliche Transaktionen oder das Erstellen von Nutzerkonten bestätigen oder Marketingmitteilungen senden.
Auf dieser Seite sind einige Beispiele von Unternehmen aufgeführt, die Kommunikationsdienste und Clientbibliotheken für App Engine-Anwendungen bereitstellen.
Mailgun
Mailgun bietet sowohl RESTful APIs als auch Clientbibliotheken zum Senden von E-Mails sowie ein kostenloses Kontingent für alle Nutzer. Preise für zusätzliche Nachrichten und Mengenrabatte finden Sie im Preisrechner auf der Registrierungsseite.
Mailjet ist ein globaler E-Mail-Dienst, der ein kostenloses Kontingent für App Engine-Nutzer bereitstellt.
Zur Nutzung dieses Angebots klicken Sie auf diesen Link zum Erstellen eines Mailjet-Kontos.
Sie können SendGrid zur Unterstützung Ihres E-Mail-Verkehrs in App Engine nutzen. SendGrid kann die Zustellbarkeit verbessern und bietet Einblick in das tatsächliche Geschehen rund um die von Ihrer Anwendung gesendeten E-Mails. Über die SendGrid-Oberfläche oder die entsprechende API haben Sie die Möglichkeit, Statistiken zu Aktionen wie Öffnen, Klicken, Abbestellen sowie zu Spam-Berichten und mehr einzusehen.
App Engine-Kunden steht ein kostenloses Kontingent zur Verfügung. Dafür müssen Sie sich über die Google Cloud Console für den SendGrid Email API-Tarif anmelden. Beachten Sie, dass Google eine Vergütung für Kunden erhält, die sich für ein kostenpflichtiges Konto anmelden.
Mit Twilio können Sie Sprache, VoIP und Messaging in Anwendungen einbinden. Die Twilio-Plattform besteht aus der Twilio Markup Language (TwiML), einer RESTful API sowie VoIP-SDKs für Webbrowser, Android und iOS.
Clientbibliotheken und API-Schlüssel von Drittanbietern zur Anwendung hinzufügen
Wenn Sie in Ihrer Entwicklungs- und Bereitstellungsumgebung von App Engine Clientbibliotheken zur Verfügung stellen möchten, geben Sie die Bibliothek als Abhängigkeit an.
Informationen zum Festlegen von Abhängigkeiten für die Node.js-Laufzeit finden Sie hier.
Die meisten Drittanbieterdienste verwenden zum Authentifizieren Ihrer Anwendung API-Schlüssel. Diese Schlüssel generieren Sie auf der Website des Drittanbieters. So verwenden Sie die API-Schlüssel von Drittanbietern in Ihrer App:
In Nicht-Produktionsumgebungen können Sie den Schlüssel selbst in einer Umgebungsvariablen speichern. Beachten Sie, dass alle Nutzer mit Zugriff auf Ihre app.yaml-Datei auch Zugriff auf Ihren Schlüssel haben.
So speichern Sie den Schlüssel oder den verschlüsselten Schlüsselwert in einer Umgebungsvariablen:
Fügen Sie den Schlüssel oder den verschlüsselten Schlüsselwert dem Abschnitt für Umgebungsvariablen in der Datei app.yaml Ihrer Anwendung hinzu.
Beispiele:
env_variables:
EMAIL_API_KEY: key-from-third-party OR encrypted-key
Wenn Sie die .NET-Laufzeit verwenden, fügen Sie den Schlüssel den Konfigurationsvariablen in der Datei appsettings.json Ihrer Anwendung hinzu. Wenn Sie die Node.js-Laufzeit verwenden, fügen Sie den Schlüssel den Konfigurationsvariablen im Abschnitt für Umgebungsvariablen Ihrer Anwendung in der Datei app.flexible.yaml Ihrer Anwendung hinzu.
Rufen Sie im Code der Anwendung den Schlüssel oder den verschlüsselten Schlüssel aus den Umgebungsvariablen ab.
Wenn Sie beispielsweise die Python-Laufzeit verwenden, gehen Sie so vor:
EMAIL_API_KEY = os.environ['EMAIL_API_KEY']
Übergeben Sie den Schlüssel, wie von der API des Drittanbieters gefordert. Entschlüsseln Sie den Schlüssel, falls Sie ihn zuvor verschlüsselt haben.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-09-04 (UTC)."],[[["\u003cp\u003eApp Engine allows the use of third-party services for email, SMS, and phone communication, with providers such as Mailgun, Mailjet, SendGrid, and Twilio.\u003c/p\u003e\n"],["\u003cp\u003eMailgun, Mailjet, and SendGrid are third-party email services that offer free quotas and provide RESTful APIs and client libraries to App Engine users.\u003c/p\u003e\n"],["\u003cp\u003eTwilio provides SMS, voice, and VoIP services via TwiML, RESTful API, and SDKs, allowing developers to integrate these features into their App Engine applications.\u003c/p\u003e\n"],["\u003cp\u003eClient libraries from these third-party services can be added to an App Engine app as dependencies.\u003c/p\u003e\n"],["\u003cp\u003eAPI keys from these third-party services should be stored securely using methods such as the Secret Manager or Cloud Key Management Service, or in the app.yaml file's environment variables for non-production environments.\u003c/p\u003e\n"]]],[],null,["# Sending messages with third-party services\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nApp Engine apps can use third-party companies to send email, SMS messages,\nor make and receive phone calls. For example, you might send email to confirm\nbusiness transactions, confirm the creation of user accounts, or send marketing\ncommunications.\n\nThis page lists some examples of companies that provide communication services\nand client libraries for App Engine apps.\n| **Note:** The services offered by these third-party companies are not covered by the [App Engine Service Level Agreement](/appengine/sla).\n\nMailgun\n-------\n\n[Mailgun](https://www.mailgun.com/) provides\nboth RESTful APIs and client libraries for sending email, along with a free\nquota for all users. See the monthly pricing calculator on\n[the sign up page](http://www.mailgun.com/google)\nfor pricing on additional messages and volume discounts.\n\nLearn more about Mailgun:\n\n- [Mailgun developer documentation](https://documentation.mailgun.com)\n- [Mailgun client libraries](https://documentation.mailgun.com/en/latest/libraries.html#libraries)\n\nMailjet\n-------\n\n[Mailjet](https://www.mailjet.com/google/?p=google)\nis a global email service that offers a free quota for App Engine users.\nTo take advantage of this offer, click the following link to\n[Create a Mailjet account](https://www.mailjet.com/google/?p=google).\n\nLearn more about Mailjet:\n\n- [Mailjet developer documentation](https://dev.mailjet.com/email/guides/getting-started/)\n- [Mailjet client libraries](https://dev.mailjet.com/email/guides/libraries/)\n\nSendGrid\n--------\n\nYou can use [SendGrid](https://sendgrid.com/)\nto power your emails on App Engine. SendGrid can improve your\ndeliverability and provide transparency into what actually happens to those\nemails your app sends. You can see statistics on opens, clicks, unsubscribes,\nspam reports and more with the SendGrid interface or its API.\n\nApp Engine customers can take advantage of a free quota by signing up\nfor the [SendGrid Email API plan](https://console.cloud.google.com/launcher/details/sendgrid-app/sendgrid-email) through the Google Cloud console. Note that\nGoogle is compensated for customers who sign up for a paid account.\n\nLearn more about SendGrid:\n\n- [SendGrid developer documentation](https://sendgrid.com/docs/for-developers/)\n- [SendGrid client libraries](https://sendgrid.com/docs/Integrate/libraries.html)\n\nSMS and Voice Services via Twilio\n---------------------------------\n\nYou can use Twilio to embed voice, VoIP, and messaging into applications. The\nTwilio platform consists of the [Twilio Markup Language (TwiML)](http://www.twilio.com/docs/api/twiml),\na [RESTful API](http://www.twilio.com/docs/api/rest),\nand VoIP SDKs for web browsers, Android, and iOS.\n\nLearn more about Twilio:\n\n- [Twilio developer documentation](https://www.twilio.com/docs/)\n- [Twilio client libraries](http://www.twilio.com/docs/libraries)\n\nAdding client libraries and third-party API keys to your app\n------------------------------------------------------------\n\nTo make client libraries available in your App Engine development\nand deployment environments, specify the library as a dependency.\nFor example, to specify dependencies for the Node.js runtime,\nsee [here](/appengine/docs/flexible/nodejs/specifying-dependencies).\n\nMost third party services use API keys to authenticate your app. You generate\nthe keys on the third-party's site. To use the third-party API keys in your app:\n\n1. Store the API keys in the [Secret Manager](/secret-manager/docs/overview) and\n [fetch the key securely](/secret-manager/docs/create-secret-quickstart) at\n instance start time.\n\n2. Encrypt the key with [Cloud Key Management Service](/kms/docs/key-management-service), store\n the encrypted key in an environment variable, and\n [decrypt it programmatically](/kms/docs/encrypt-decrypt) at instance start time.\n\n3. For non-production environments, you can store the key itself in an\n environment variable. Note that anyone with access to your `app.yaml` file\n can also access your key.\n\nTo learn about the advantages of each\napproach, see [Choosing a secret management\nsolution](/kms/docs/secret-management#choosing_a_secret_management_solution)\n\nTo store the key, or encrypted key value in an environment variable:\n\n1. Add the key or encrypted key value to the environment variables section in\n your app's `app.yaml` file.\n\n For example: \n\n env_variables:\n EMAIL_API_KEY: key-from-third-party OR encrypted-key\n\n If you are using the .NET runtime, add the key to the configuration variables in your app's `appsettings.json` file. If you\n are using the Node.js runtime, add the key to the configuration variables in your app's environment variables section in your app's `app.flexible.yaml` file.\n\n2. In your app's code, retrieve the key or encrypted key from your environment\n variables.\n\n For example, if you are using the Python runtime: \n\n EMAIL_API_KEY = os.environ['EMAIL_API_KEY']\n\n3. Pass the key as required by the third party's API. Ensure you\n [decrypt the key](/kms/docs/encrypt-decrypt) if you encrypted it previously."]]