Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josefglatz/44abd21984b16cf035888030493f17eb to your computer and use it in GitHub Desktop.
Save josefglatz/44abd21984b16cf035888030493f17eb to your computer and use it in GitHub Desktop.
TYPO3 MAIL settings for Gmail / G-Suite TLS connection
<?php
declare(strict_types=1);
// Override configuration of LocalConfiguration
$customChanges = [
'MAIL' => [
'defaultMailFromAddress' => 'your.user@gmail.com',
'defaultMailFromName' => 'My Name',
'transport' => 'smtp',
'transport_smtp_encrypt' => 'tls',
'transport_smtp_password' => 'myPassWordBro',
'transport_smtp_server' => 'smtp.gmail.com:587',
'transport_smtp_username' => 'your.user@gmail.com',
],
];
$GLOBALS['TYPO3_CONF_VARS'] = array_replace_recursive($GLOBALS['TYPO3_CONF_VARS'], $customChanges);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment