• When someone tries to reset their password on our website they get the following error:

    Fatal error: Uncaught exception ‘InvalidArgumentException’ with message ‘From address “” is invalid’ in /public_html/wp-content/plugins/postmark-email-for-wordpress/Postmark/Postmark.php:234 Stack trace: #0 /public_html/wp-content/plugins/postmark-email-for-wordpress/postmark.php(173): Mail_Postmark->from(NULL) #1 /public_html/wp-login.php(250): wp_mail(’emailaddress@ya…’, ‘[Site Name] P…’, ‘Someone request…’) #2 \/public_html/wp-login.php(420): retrieve_password() #3 {main} thrown in public_html/wp-content/plugins/postmark-email-for-wordpress/Postmark/Postmark.php on line 234

    Any ideas how to fix this issue? with Postmark.php

    https://www.ads-software.com/extend/plugins/postmark-email-for-wordpress/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Adam Pickering

    (@adampickering)

    That line on 234 is

    throw new InvalidArgumentException("From address \"{$address}\" is invalid");

    I checked wp-config.php and we have a valid email address entered.

    Ya . I too am getting this error. I’m on a multisite if that makes any difference. Would love if someone could look into this.

    kevin

    This a total hack, and I’m sorry not to post a proper solution, but with lack of time, I was able to get it to work by editing the file: /postmark-email-for-wordpress/Postmark/Postmark.php

    Starting at line 213, replace $address with your email where it says “[email protected]” below:

    public function &from($address, $name = null)
    	{
    		if (!$this->_validateAddress('[email protected]')) {
    			throw new InvalidArgumentException("From address \"{$address}\" is invalid");
    		}
    
    		$this->_from = array('address' => '[email protected]', 'name' => $name);
    		return $this;
    	}

    and then comment out lines 286-288 (or put a proper reply-to email as above if you’d prefer)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal error with password reset and Postmark plugin’ is closed to new replies.