Hallo und guten Abend community,
die Default wp_mail() Funktion ist pluggable - das heißt sie kann komplett durch plugins überschrieben werden. Wenn aber nichts anderes - also kein Plugin bereitsteht dann werden die "from" settings der email addresse abgerufen - sie sind hard-coded.
Hier ist ein Schnippel von /wp-includes/pluggable.php:
vgl. https://github.com/WordPress/Word…s/pluggable.php
// From email and name
// If we don't have a name from the input headers
if ( !isset( $from_name ) )
$from_name = 'WordPress';
/* If we don't have an email from the input headers default to wordpress@$sitename
* Some hosts will block outgoing mail from this address if it doesn't exist but
* there's no easy alternative. Defaulting to admin_email might appear to be another
* option but some hosts may refuse to relay mail from an unknown domain. See
* http://trac.wordpress.org/ticket/5007.
*/
if ( !isset( $from_email ) ) {
// Get the site domain and get rid of www.
$sitename = strtolower( $_SERVER['SERVER_NAME'] );
if ( substr( $sitename, 0, 4 ) == 'www.' ) {
$sitename = substr( $sitename, 4 );
}
$from_email = 'wordpress@' . $sitename;
}
// Plugin authors can override the potentially troublesome default
$phpmailer->From = apply_filters( 'wp_mail_from' , $from_email );
$phpmailer->FromName = apply_filters( 'wp_mail_from_name', $from_name );
Alles anzeigen
Der obige Schnppel zeigt folgendes:
- Er zeigt wie der from name und email eingerichtet sind:
- Die default mail aus "WordPress" wird abgeschickt von der Addresse wordpress@sitename.url ... wie auch immer die sitename.url heissen mag.
vgl insbesondere zeile 335 im code pluggable.php https://github.com/WordPress/Word…s/pluggable.php
Worum es geht: Ich hab mit einem Plugin Probleme das auch mails verschickt - (participant-database: https://wordpress.org/plugins/participants-database/) - die Mails von dort - nach dem Signup-Prozess werden nicht veschickt.
Die grundsätzliche Mail-Funktion der Seite ist aber okay.
- Bekomme Mails an den Admin aufgrund von Kommmentaren
- zwei eingesetzte SMTP-Mail-Plugins:
a. Easy WP-SMTP
b. WP-SMTP
Beide oben genannten SMTP-Plugins laufen ganz ohne Probleme.
Jetzt bin ich dabei, herauszubekommen, warum die Mails aus der Participants-DB nicht ankommen.
Wenn jemand von Euch den o.g. Plugin einsetzt u. ggf. noch einen Tipp hat wäre ich dankbar.
VG Lin