WordPress: Difference between revisions
imported>Onny mNo edit summary |
imported>Onny Add note on mail delivery |
||
| Line 113: | Line 113: | ||
''; | ''; | ||
</syntaxHighlight> | </syntaxHighlight> | ||
=== Mail delivery === | |||
Mail clients like [[Msmpt]] can be used to configure mail delivery for Wordpress. This can be useful for sending registration mails or notifications for new comments etc. | |||
By default Wordpress will use the sender mail <code>wordpress@example.org</code> where 'example.org'' is the primary domain name configured for the Wordpress instance. By installing and using the plugin [https://wordpress.org/plugins/static-mail-sender-configurator/ static-mail-sender-configurator] it is possible to declaratively configure and change the sender address, for example to <code>noreply@example.org</code>. | |||
<syntaxHighlight lang="nix"> | |||
services.wordpress.sites."example.org" = { | |||
plugins = [ pkgs.wordpressPackages.plugins.static-mail-sender-configurator ]; | |||
extraConfig = '' | |||
define ('WP_MAIL_FROM', 'noreply@example.org'); | |||
''; | |||
}; | |||
</syntaxHighlight> | |||
== Tips and tricks == | == Tips and tricks == | ||
=== | === Force https-URLs behind reverse proxy === | ||
In case you're running Wordpress behind a reverse proxy which offers a SSL/https connection to the outside, you can force Wordpress to use the https protocol | In case you're running Wordpress behind a reverse proxy which offers a SSL/https connection to the outside, you can force Wordpress to use the https protocol | ||