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.
Parts of the screen
Section titled “Parts of the screen”- Email sending: provider, sender details, provider settings, test buttons.
- Retention (“Saklama”): how long the content of sent e-mails is kept.
- 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”).
Choosing a provider
Section titled “Choosing a provider”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.
Connecting with SMTP
Section titled “Connecting with SMTP”- Provider: SMTP.
- SMTP server (“SMTP sunucusu”): for example
smtp.example.com. - 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.
- 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).
- Sender name, Sender address (From), optionally Reply address (Reply-To).
- Save (“Kaydet”).
- Test the connection (“Bağlantıyı test et”): connects to the server and signs in; sends no e-mail.
- Send test e-mail (“Test e-postası gönder”): sends a bilingual test e-mail to your own address.
Connecting with Microsoft 365
Section titled “Connecting with Microsoft 365”The How to connect Microsoft 365? (“Microsoft 365 nasıl bağlanır?”) box on the screen sums up the steps:
- In the Microsoft Entra admin center, create an app with App registrations › New registration.
- Under API permissions › Microsoft Graph › Application permissions, add Mail.Send and grant admin consent.
- Under Certificates & secrets, create a client secret; note its value and expiry date.
- 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:
- Provider: Microsoft 365.
- Entra tenant ID (“Entra kiracı kimliği”): a GUID or
contoso.onmicrosoft.com. - Application (client) ID (“Uygulama (client) kimliği”): the app’s GUID.
- Sender mailbox (“Gönderen posta kutusu”): the mailbox mail is sent from (for example
notifications@example.com). - Optionally tick Keep a copy in Sent Items (“Gönderilmiş Öğeler’de bir kopya sakla”).
- Client secret and Secret expiry date (“Gizli anahtarın bitiş tarihi”). The screen warns 30 days before the expiry date.
- Sender name, Sender address (From), Save, then Test the connection (the permission and the secret are checked).
Connecting with SendGrid
Section titled “Connecting with SendGrid”- Provider: SendGrid.
- Region (“Bölge”): Global or EU (“AB (api.eu.sendgrid.com)”).
- API key (with at least permission to send mail).
- Sender name, Sender address (From) (verified in SendGrid), Save.
- Test the connection.
Delivery events (Event Webhook)
Section titled “Delivery events (Event Webhook)”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.
- 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.
- 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.
- 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.
Test results and status
Section titled “Test results and status”- 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.
Going back to the platform default
Section titled “Going back to the platform default”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
Section titled “Retention”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.
Sending to addresses in answers
Section titled “Sending to addresses in answers”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”- In Entra, register a “Defthand Notifications” app, add and consent to the Mail.Send application permission, and create a secret (expiry: 1 June 2027).
- In Exchange Online, limit the app to the
notifications@acme.commailbox. - In Defthand: Provider Microsoft 365; Entra tenant ID
acme.onmicrosoft.com; Application (client) ID the GUID from Entra; Sender mailboxnotifications@acme.com; the secret and Secret expiry date01.06.2027. - Sender name
Acme Logistics, Sender address (From)notifications@acme.com, Reply address (Reply-To)support@acme.com. - Save › Test the connection › Send test e-mail.
- Find the
[Test]e-mail in your inbox. From now on all notification e-mails come from this address.