Invalid from address on https site
-
On an https site the emails get set from an invalid address like:
noreply@https://mydomain.com
This function only replaces https:// but should also replace https./** * Get a fake email address for this domain * * @param string $mailbox A fake mailbox * @return string $email_address A fake email address at this domain */ protected function get_domain_email_address( $mailbox ) { return $mailbox . '@' . rtrim( str_replace( 'https://', '', home_url() ), '/' ); }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Invalid from address on https site’ is closed to new replies.