Skip to content

E-mail sending

By default, notification e-mails go out from Defthand’s sender address; you do not need to set anything up. If you want e-mails to come from your organization’s own address (for example notifications@example.com), you connect your own e-mail provider. This page covers the Settings › Email sending tab. The tab is in Turkish only for now; Turkish labels are in parentheses.

People allowed to view notification settings can open the tab; changing it needs the manage permission.

  1. Email sending: provider, sender details, provider settings, test buttons.
  2. Retention (“Saklama”): how long the content of sent e-mails is kept.
  3. Sending to addresses in answers (“Cevaptaki adreslere gönderim”): which domains may receive e-mails at addresses typed by the person filling a form.

The provider’s status shows at the top: Active (“Etkin”) or Problem (“Sorunlu”).

Under Provider (“Sağlayıcı”) there are four options:

Option When
Platform default (“Platform varsayılanı”) Defthand’s own sender address is used. Nothing to set up.
SMTP Your own mail server or an SMTP service.
Microsoft 365 An Exchange Online mailbox (Microsoft Graph).
SendGrid With a SendGrid API key.

Common fields (except for Platform default):

  • Sender name (“Gönderen adı”): the name recipients see. For example Acme Logistics.
  • Sender address (From) (“Gönderen adresi (From)”): for example notifications@example.com.
  • Reply address (Reply-To) (“Yanıt adresi (Reply-To)”): where replies go. Optional.

The secret field (Password, “Parola”, for SMTP; client secret, “İstemci gizli anahtarı (client secret)”, for Microsoft 365; API key, “API anahtarı”, for SendGrid) is write-only: once saved it is never shown again. When one is stored, •••• and its last characters show in its place; to enter a new one click Change (“Değiştir”), to cancel click Cancel (“Vazgeç”). If you leave the field empty and save, the stored value is kept. If you change provider, the old provider’s secret is deleted and you must enter a new one.

  1. Provider: SMTP.
  2. SMTP server (“SMTP sunucusu”): for example smtp.example.com.
  3. Port and Security (“Güvenlik”): STARTTLS (587), SSL/TLS (465) or Unencrypted, internal network only (“Şifresiz (yalnız iç ağ)”). No user name or password is sent over an unencrypted connection.
  4. User name (“Kullanıcı adı”) and Password. If you leave the user name empty, no sign-in is done (for a server that trusts your IP).
  5. Sender name, Sender address (From), optionally Reply address (Reply-To).
  6. Save (“Kaydet”).
  7. Test the connection (“Bağlantıyı test et”): connects to the server and signs in; sends no e-mail.
  8. Send test e-mail (“Test e-postası gönder”): sends a bilingual test e-mail to your own address.

The How to connect Microsoft 365? (“Microsoft 365 nasıl bağlanır?”) box on the screen sums up the steps:

  1. In the Microsoft Entra admin center, create an app with App registrations › New registration.
  2. Under API permissions › Microsoft Graph › Application permissions, add Mail.Send and grant admin consent.
  3. Under Certificates & secrets, create a client secret; note its value and expiry date.
  4. In Exchange Online, limit the app to the sender mailbox with RBAC for Applications. Without this limit the app can send on behalf of every mailbox in your organization.

In Defthand:

  1. Provider: Microsoft 365.
  2. Entra tenant ID (“Entra kiracı kimliği”): a GUID or contoso.onmicrosoft.com.
  3. Application (client) ID (“Uygulama (client) kimliği”): the app’s GUID.
  4. Sender mailbox (“Gönderen posta kutusu”): the mailbox mail is sent from (for example notifications@example.com).
  5. Optionally tick Keep a copy in Sent Items (“Gönderilmiş Öğeler’de bir kopya sakla”).
  6. Client secret and Secret expiry date (“Gizli anahtarın bitiş tarihi”). The screen warns 30 days before the expiry date.
  7. Sender name, Sender address (From), Save, then Test the connection (the permission and the secret are checked).
  1. Provider: SendGrid.
  2. Region (“Bölge”): Global or EU (“AB (api.eu.sendgrid.com)”).
  3. API key (with at least permission to send mail).
  4. Sender name, Sender address (From) (verified in SendGrid), Save.
  5. Test the connection.

SendGrid can tell Defthand that an e-mail was delivered or bounced. The delivery log then shows Delivered and Bounced, and bounced and complaining addresses are blocked automatically.

  1. Once the settings are saved, a Webhook address (“Webhook adresi”) shows on the screen; copy it with Copy (“Kopyala”). Only people who manage notification settings can see it.
  2. In SendGrid, under Settings › Mail Settings › Event Webhook, enter this address; select the “Delivered”, “Bounced”, “Dropped” and “Spam Reports” events and turn on Signature Verification.
  3. Paste the verification key SendGrid shows into Verification key (public key) (“Doğrulama anahtarı (public key)”) in Defthand and save. The key is not secret; if left empty, delivery events are not accepted.
  • The test result shows on screen as connection succeeded or failed, with the reason. Below, Last test (“Son test”) shows its date and result.
  • Test buttons do not work while there are unsaved changes (“Test etmeden önce kaydedin.” — save before testing).
  • If the provider gives a sign-in error (wrong password, expired secret), the status becomes Problem and the people who manage notification settings get an in-app warning. Meanwhile e-mails are not sent from Defthand’s address; when you fix and test the provider, or at the first successful send, the status returns to Active. You can resend the e-mails that could not go out from the Delivery log.

When you set Provider to Platform default, the save button becomes Back to platform default (“Platform varsayılanına dön”). Clicking it deletes your own provider’s settings and secret; e-mails go out from Defthand’s address again.

Retention period (days) (“Saklama süresi (gün)”): the subject and content of sent notifications are deleted after this period; the delivery records (status, time, recipient) stay. 1–3650 days; default 90. A message whose content was deleted cannot be resent.

Form rules and workflow notifications can also go to an e-mail address the person filling a form typed into a question (for example a visitor form). Such addresses receive e-mail only if their domain is in Allowed domains (“İzin verilen alan adları”); if the list is empty, every domain is allowed.

  • One domain per line (for example example.com); subdomains are included. At most 50.
  • Fixed addresses an administrator wrote into a rule are not affected by this list.

Example: Microsoft 365 with notifications@acme.com

Section titled “Example: Microsoft 365 with notifications@acme.com”
  1. In Entra, register a “Defthand Notifications” app, add and consent to the Mail.Send application permission, and create a secret (expiry: 1 June 2027).
  2. In Exchange Online, limit the app to the notifications@acme.com mailbox.
  3. In Defthand: Provider Microsoft 365; Entra tenant ID acme.onmicrosoft.com; Application (client) ID the GUID from Entra; Sender mailbox notifications@acme.com; the secret and Secret expiry date 01.06.2027.
  4. Sender name Acme Logistics, Sender address (From) notifications@acme.com, Reply address (Reply-To) support@acme.com.
  5. Save › Test the connection › Send test e-mail.
  6. Find the [Test] e-mail in your inbox. From now on all notification e-mails come from this address.