Skip to content

Commit

Permalink
lang updates
Browse files Browse the repository at this point in the history
  • Loading branch information
liedekef committed May 17, 2024
1 parent 7882bec commit fcaffb3
Show file tree
Hide file tree
Showing 19 changed files with 11,825 additions and 11,804 deletions.
61 changes: 32 additions & 29 deletions eme-mailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -480,39 +480,42 @@ function eme_queue_mail( $subject, $body, $fromemail, $fromname, $receiveremail,
$send_immediately = 1;
}

if ( empty( $fromemail ) ) {
$fromemail = $replytoemail;
$fromname = $replytoname;
}
// if forced or fromemail is still empty
if ( get_option( 'eme_mail_force_from' ) || empty( $fromemail ) ) {
$default_sender_address = get_option( 'eme_mail_sender_address' );
if ( eme_is_email( $default_sender_address ) ) {
$fromemail = $default_sender_address;
if ( $fromemail != $default_sender_address ) {
$fromname = get_option( 'eme_mail_sender_name' );
// not needed if part of a mailing: then this is already done
if (!$mailing_id) {
if ( empty( $fromemail ) ) {
$fromemail = $replytoemail;
$fromname = $replytoname;
}
// if forced or fromemail is still empty
if ( get_option( 'eme_mail_force_from' ) || empty( $fromemail ) ) {
$default_sender_address = get_option( 'eme_mail_sender_address' );
if ( eme_is_email( $default_sender_address ) ) {
$fromemail = $default_sender_address;
if ( $fromemail != $default_sender_address ) {
$fromname = get_option( 'eme_mail_sender_name' );
}
} else {
$contact = eme_get_contact();
$fromemail = $contact->user_email;
$fromname = $contact->display_name;
}
} else {
$contact = eme_get_contact();
$fromemail = $contact->user_email;
$fromname = $contact->display_name;
// Still empty from, then we go further up
if ( empty( $fromemail ) ) {
$fromemail = get_option( 'admin_email' );
}
if ( empty( $fromname ) ) {
$fromname = get_option( 'blogname' );
}
$replytoemail = $fromemail;
$replytoname = $fromname;
}
// Still empty from, then we go further up
if ( empty( $fromemail ) ) {
$fromemail = get_option( 'admin_email' );
// now the from should never be empty, so just check reply to again
if ( empty( $replytoemail ) ) {
$replytoemail = $fromemail;
}
if ( empty( $fromname ) ) {
$fromname = get_option( 'blogname' );
if ( empty( $replytoname ) ) {
$replytoname = $fromname;
}
$replytoemail = $fromemail;
$replytoname = $fromname;
}
// now the from should never be empty, so just check reply to again
if ( empty( $replytoemail ) ) {
$replytoemail = $fromemail;
}
if ( empty( $replytoname ) ) {
$replytoname = $fromname;
}

$now = current_time( 'mysql', false );
Expand Down
2 changes: 2 additions & 0 deletions langs/events-made-easy-de_DE.l10n.php

Large diffs are not rendered by default.

Loading

0 comments on commit fcaffb3

Please sign in to comment.