$GLOBALS[‘TYPO3_CONF_VARS’][‘MAIL’]

$GLOBALS[‘TYPO3_CONF_VARS’][‘MAIL’][‘format’]

format
Type:

dropdown

Default:

‘both’

AllowedValues:
html

Send emails only in HTML format

txt

Send emails only in plain text format

both

Send emails in HTML and plain text format

The Mailer API allows to send out templated emails, which can be configured on a system-level to send out HTML-based emails or plain text emails, or emails with both variants.

$GLOBALS[‘TYPO3_CONF_VARS’][‘MAIL’][‘layoutRootPaths’]

layoutRootPaths
Type:

array

Default:
[
   0 => 'EXT:core/Resources/Private/Layouts/',
   10 => 'EXT:backend/Resources/Private/Layouts/'
]

List of paths to look for layouts for templated emails. Should be specified as .txt and .html files.

$GLOBALS[‘TYPO3_CONF_VARS’][‘MAIL’][‘partialRootPaths’]

partialRootPaths
Type:

array

Default:
[
   0 => 'EXT:core/Resources/Private/Partials/',
   10 => 'EXT:backend/Resources/Private/Partials/'
]

List of paths to look for partials for templated emails. Should be specified as .txt and .html files.

$GLOBALS[‘TYPO3_CONF_VARS’][‘MAIL’][‘templateRootPaths’]

templateRootPaths
Type:

array

Default:
[
   0 => 'EXT:core/Resources/Private/Templates/Email/',
   10 => 'EXT:backend/Resources/Private/Templates/Email/'
]

List of paths to look for template files for templated emails. Should be specified as .txt and .html files.

$GLOBALS[‘TYPO3_CONF_VARS’][‘MAIL’][‘validators’]

validators
Type:array
Default:[\Egulias\EmailValidator\Validation\RFCValidation::class]

List of validators used to validate an email address.

Available validators are:

  • \Egulias\EmailValidator\Validation\DNSCheckValidation
  • \Egulias\EmailValidator\Validation\SpoofCheckValidation
  • \Egulias\EmailValidator\Validation\NoRFCWarningsValidation

or by implementing a custom validator.

$GLOBALS[‘TYPO3_CONF_VARS’][‘MAIL’][‘transport’]

transport
Type:text
Default:‘sendmail’
smtp
Sends messages over the (standardized) Simple Message Transfer Protocol. It can deal with encryption and authentication. Most flexible option, requires a mail server and configurations in transport_smtp_* settings below. Works the same on Windows, Unix and MacOS.
sendmail
Sends messages by communicating with a locally installed MTA - such as sendmail. See setting transport_sendmail_command bellow.
dsn
Sends messages with the Symfony mailer, see Symfony mailer documentation. Configure this mailer with the [MAIL][dsn] setting.
mbox
This doesnt send any mail out, but instead will write every outgoing mail to a file adhering to the RFC 4155 mbox format, which is a simple text file where the mails are concatenated. Useful for debugging the mail sending process and on development machines which cannot send mails to the outside. Configure the file to write to in the transport_mbox_file setting below
classname
Custom class which implements Swift_Transport. The constructor receives all settings from the MAIL section to make it possible to add custom settings.

$GLOBALS[‘TYPO3_CONF_VARS’][‘MAIL’][‘transport_smtp_server’]

transport_smtp_server
Type:text
Default:‘localhost:25’

only with transport=smtp serverport of mailserver to connect to. port defaults to “25”.

$GLOBALS[‘TYPO3_CONF_VARS’][‘MAIL’][‘transport_smtp_encrypt’]

transport_smtp_encrypt
Type:bool
Default:false

only with transport=smtp Connects to the server using SSL/TLS (disables STARTTLS which is used by default if supported by the server). Must not be enabled when connecting to port 587, as servers will use STARTTLS (inner encryption) via SMTP instead of SMTPS. It will automatically be enabled if port is 465.

$GLOBALS[‘TYPO3_CONF_VARS’][‘MAIL’][‘transport_smtp_username’]

transport_smtp_username
Type:text
Default:‘’

only with transport=smtp If your SMTP server requires authentication, enter your username here.

$GLOBALS[‘TYPO3_CONF_VARS’][‘MAIL’][‘transport_smtp_password’]

transport_smtp_password
Type:password
Default:‘’

only with transport=smtp If your SMTP server requires authentication, enter your password here.

$GLOBALS[‘TYPO3_CONF_VARS’][‘MAIL’][‘transport_sendmail_command’]

transport_sendmail_command
Type:text
Default:‘’

only with transport=sendmail The command to call to send a mail locally.

$GLOBALS[‘TYPO3_CONF_VARS’][‘MAIL’][‘transport_mbox_file’]

transport_mbox_file
Type:text
Default:‘’

only with transport=mbox The file where to write the mails into. This file will be conforming the mbox format described in RFC 4155. It is a simple text file with a concatenation of all mails. Path must be absolute.

$GLOBALS[‘TYPO3_CONF_VARS’][‘MAIL’][‘transport_spool_type’]

transport_spool_type
Type:text
Default:‘’
file
Messages get stored to the file system till they get sent through the command swiftmailerspoolsend.
memory
Messages get send at the end of the running process.
classname
Custom class which implements the Swift_Spool interface.

$GLOBALS[‘TYPO3_CONF_VARS’][‘MAIL’][‘transport_spool_filepath’]

transport_spool_filepath
Type:text
Default:‘’

only with transport_spool_type=file Path where messages get temporarily stored. Ensure that this is stored outside of your webroot.

$GLOBALS[‘TYPO3_CONF_VARS’][‘MAIL’][‘dsn’]

dsn
Type:text
Default:‘’

only with transport=dsn The DSN configuration of the Symfony mailer (for example smtp://userpass@smtp.example.com:25). Symfony provides different mail transports like SMTP, sendmail or many 3rd party email providers like AWS SES, Gmail, MailChimp, Mailgun and more. You can find all supported providers in the Symfony mailer documentation.

Set [MAIL][dsn] to the configuration value described in the Symfony mailer documentation (see above).

Examples:

  • $GLOBALS['TYPO3_CONF_VARS']['MAIL']['dsn'] = "smtp://user:pass@smtp.example.com:25"
  • $GLOBALS['TYPO3_CONF_VARS']['MAIL']['dsn'] = "sendmail://default"

$GLOBALS[‘TYPO3_CONF_VARS’][‘MAIL’][‘defaultMailFromAddress’]

defaultMailFromAddress
Type:text
Default:‘’

This default email address is used when no other “from” address is set for a TYPO3-generated email. You can specify an email address only (for example 'info@example.org)'.

$GLOBALS[‘TYPO3_CONF_VARS’][‘MAIL’][‘defaultMailFromName’]

defaultMailFromName
Type:text
Default:‘’

This default name is used when no other “from” name is set for a TYPO3-generated email.

$GLOBALS[‘TYPO3_CONF_VARS’][‘MAIL’][‘defaultMailReplyToAddress’]

defaultMailReplyToAddress
Type:text
Default:‘’

This default email address is used when no other “reply-to” address is set for a TYPO3-generated email. You can specify an email address only (for example 'info@example.org').

$GLOBALS[‘TYPO3_CONF_VARS’][‘MAIL’][‘defaultMailReplyToName’]

defaultMailReplyToName
Type:text
Default:‘’

This default name is used when no other “reply-to” name is set for a TYPO3-generated email.