> ## Documentation Index
> Fetch the complete documentation index at: https://documentation.mysmtp.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Integrer mySMTP med webapps og e-handelsplatforme

> Forbind mySMTP til WordPress, Magento, Laravel og andre webapps. Brug port 587 med STARTTLS og dit SMTP-brugernavn og -adgangskode til godkendt levering.

Du skal bruge dine mySMTP SMTP-legitimationsoplysninger og adgang til din platforms adminpanel eller serverfiler.

## SMTP-indstillinger

Brug disse værdier, medmindre din platform kræver noget specifikt. Brugere med dedikeret IP skal bruge værtsnavnet fra deres opsætningsmail.

| Indstilling | Værdi |
| - | - |
| Server | `relayxx.mysmtp.com` (fra din opsætningsmail) |
| Server (delt IP, kun DK) | `mail.mysmtp.com` |
| Port | `587` |
| Kryptering | `STARTTLS` (TLS) |
| Godkendelse | Normal adgangskode / Login |
| Brugernavn | Dit mySMTP SMTP-brugernavn |
| Adgangskode | Dit mySMTP-adgangskode |

> [!NOTE]
>
> Nogle platforme angiver port 465 som "SSL". mySMTP understøtter kun TLS 1.2 og 1.3 og anbefaler port 587 med STARTTLS. Hvis din vært blokkerer 587, kan du prøve port 2525.

> [!NOTE]
>
> Delte IP-planer er kun tilgængelige for kunder i Danmark.

> [!TIP]
>
> Valider dine DNS-poster, før du sender, med [mySMTP Deliverability Toolbox](https://toolbox.smtp.ai/).

## Platformvejledninger

**WordPress**

Brug WP Mail SMTP-pluginet for den mest pålidelige opsætning.

**1. Installer pluginet**

Gå til **Plugins → Tilføj nyt**, søg efter **WP Mail SMTP**, og installer det.

**2. Vælg mailafsender**

Gå til **WP Mail SMTP → Indstillinger**. Under **Mailafsender** skal du vælge **Anden SMTP**.

**3. Indtast mySMTP-legitimationsoplysninger**

* SMTP-vært: `relayxx.mysmtp.com` (fra din opsætningsmail)
* Kryptering: TLS
* Port: `587`
* Brugernavn og adgangskode: dine mySMTP-legitimationsoplysninger

**4. Gem og test**

Gem ændringerne, og klik på **Send test** for at bekræfte levering.

**Magento**

**1. Åbn mailindstillinger**

I Magento Admin skal du gå til **Stores → Configuration → Advanced → System**.

**2. Angiv SMTP-værten**

Udvid **Mail Sending Settings**, og indtast:

* Host: `relayxx.mysmtp.com` (fra din opsætningsmail)
* Port: `587`
* Godkendelse: **Login**
* Brugernavn og adgangskode: dine mySMTP-legitimationsoplysninger

**3. Gem og test**

Gem indstillingerne, og send en testmail fra butikken.

**WooCommerce**

WooCommerce bruger WordPress-mailafsenderen. Følg fanen **WordPress** ovenfor med WP Mail SMTP, og verificer derefter, at WooCommerce-mails bruger den korrekte afsenderadresse i **WooCommerce → Indstillinger → E-mails**.

**PrestaShop**

**1. Åbn e-mailindstillinger**

Gå til **Avancerede parametre → E-mail**.

**2. Brug din egen SMTP**

Vælg **Angiv mine egne SMTP-parametre**.

**3. Indtast legitimationsoplysninger**

Udfyld værten (`relayxx.mysmtp.com` fra din opsætningsmail), port 587, brugernavn, adgangskode og TLS-kryptering, og gem derefter.

**Drupal**

**1. Installer modulet**

Installer modulet **SMTP Authentication Support**.

**2. Konfigurer SMTP**

Gå til **Configuration → SMTP Authentication**, og indtast din mySMTP-vært (`relayxx.mysmtp.com` fra din opsætningsmail), port 587, brugernavn, adgangskode og TLS.

**3. Gem og send en test**

Gem, og brug modulets testfunktion til at verificere levering.

**Joomla**

**1. Åbn Global Configuration**

Gå til **System → Global Configuration → Server**.

**2. Sæt mailafsender til SMTP**

Sæt **Mailafsender** til **SMTP**, og udfyld:

* Host: `relayxx.mysmtp.com` (fra din opsætningsmail)
* Port: `587`
* Sikkerhed: STARTTLS
* Godkendelse: Ja
* Brugernavn og adgangskode: dine mySMTP-legitimationsoplysninger

**3. Gem**

Gem konfigurationen, og send en testbesked.

**OpenCart**

**1. Åbn mailindstillinger**

Gå til **Indstillinger → Mail**.

**2. Vælg SMTP**

Sæt **Mail Engine** til **SMTP**, og indtast din mySMTP-vært (`relayxx.mysmtp.com` fra din opsætningsmail), port 587, brugernavn, adgangskode og TLS.

**Laravel**

Opdater din `.env`-fil:

```bash theme={null}
MAIL_MAILER=smtp
MAIL_HOST=relayxx.mysmtp.com
MAIL_PORT=587
MAIL_USERNAME=your_username
MAIL_PASSWORD=your_password
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS=you@yourdomain.com
MAIL_FROM_NAME="Your App"
```

Ryd derefter config-cachen:

```bash theme={null}
php artisan config:clear
```

**Symfony**

Opdater din `.env`-fil:

```bash theme={null}
MAILER_DSN="smtp://your_username:your_password@relayxx.mysmtp.com:587"
```

Test forbindelsen:

```bash theme={null}
php bin/console mailer:test you@yourdomain.com
```

**Django**

Opdater `settings.py`:

```python theme={null}
EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"
EMAIL_HOST = "relayxx.mysmtp.com"
EMAIL_PORT = 587
EMAIL_USE_TLS = True
EMAIL_HOST_USER = "your_username"
EMAIL_HOST_PASSWORD = "your_password"
DEFAULT_FROM_EMAIL = "you@yourdomain.com"
```

Genstart applikationen.

**ASP.NET Core**

Tilføj indstillinger til `appsettings.json`:

```json theme={null}
{
  "SmtpSettings": {
    "Server": "relayxx.mysmtp.com",
    "Port": 587,
    "Username": "your_username",
    "Password": "your_password",
    "UseStartTls": true
  }
}
```

Injicer indstillingerne i din mailservice, og send via `System.Net.Mail.SmtpClient` eller `MailKit`.

**Ghost**

Opdater `config.production.json`:

```json theme={null}
"mail": {
  "transport": "SMTP",
  "options": {
    "host": "relayxx.mysmtp.com",
    "port": 587,
    "auth": {
      "user": "your_username",
      "pass": "your_password"
    }
  }
}
```

Genstart Ghost.

## Dedikerede platformguider

Se de fulde vejledninger for disse platforme:

> **[Instantly](https://documentation.mysmtp.com/da/email-configuration/web-applications/instantly.md)**
>
> Forbind mySMTP til Instantly til cold email-kampagner.

> **[Mumara](https://documentation.mysmtp.com/da/email-configuration/web-applications/mumara.md)**
>
> Konfigurer Mumara til at sende via mySMTP.

> **[Interspire](https://documentation.mysmtp.com/da/email-configuration/web-applications/interspire.md)**
>
> Opsæt Interspire Email Marketer med mySMTP.

> **[MailWizz](https://documentation.mysmtp.com/da/email-configuration/web-applications/mailwizz.md)**
>
> Tilføj mySMTP som en delivery server i MailWizz.

> **[Hosted MailWizz](https://documentation.mysmtp.com/da/email-configuration/web-applications/hosted-mailwizz.md)**
>
> Lad mySMTP hoste og konfigurere MailWizz for dig.

> **[Atomic Mail Sender](https://documentation.mysmtp.com/da/email-configuration/web-applications/atomic-mail-sender.md)**
>
> Konfigurer Atomic Mail Sender med mySMTP.

> **[EasySendy](https://documentation.mysmtp.com/da/email-configuration/web-applications/easysendy.md)**
>
> Opsæt EasySendy Pro til at relay gennem mySMTP.

> **[SendBlaster](https://documentation.mysmtp.com/da/email-configuration/web-applications/sendblaster.md)**
>
> Konfigurer SendBlaster til masseafsendelse via mySMTP.

## Hurtige løsninger

> **Port blokeret**
>
> Hvis 587 er blokeret af din vært eller internetudbyder, kan du prøve port 2525.

> **Godkendelse mislykkedes**
>
> Bekræft, at dit brugernavn og din adgangskode stemmer overens med din mySMTP-konto, og at TLS/STARTTLS er valgt.

> **Relay nægtet**
>
> Sørg for, at afsenderdomænet er godkendt for din mySMTP-konto. Se [DNS-indstillinger, hurtig forklaring](https://documentation.mysmtp.com/da/getting-started/dns-settings-quick-explainer.md).

> **E-mails ender i spam**
>
> Verificer SPF, DKIM og DMARC for dit domæne. Se [SPF, DKIM, DMARC og BIMI forklaret](https://documentation.mysmtp.com/da/deliverability/spf-dkim-dmarc-and-bimi-explained.md), og test med [mySMTP Deliverability Toolbox](https://toolbox.smtp.ai/).

For platformspecifikke fejl, se den dedikerede guide ovenfor eller [Almindelige SMTP-fejl](https://documentation.mysmtp.com/da/troubleshooting/common-smtp-errors.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.