Support » Plugin: P2 By Email » 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 http:// 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( 'http://', '', home_url() ), '/' );
    	}

    http://wordpress.org/plugins/p2-by-email/

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.