WordPress.org

Ready to get started?Download WordPress

Forums

P2 By Email
Invalid from address on https site (2 posts)

  1. rjmackay
    Member
    Posted 11 months ago #

    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/

  2. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 11 months ago #

    Great catch! Want to submit a pull request with a fix?

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.