Properly use envelopeFrom in SmtpEmailTransport
authorTim Düsterhus <duesterhus@woltlab.com>
Tue, 26 Sep 2017 23:58:14 +0000 (01:58 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Tue, 26 Sep 2017 23:58:14 +0000 (01:58 +0200)
see 2d3ca5bfc266ec1121463d9fd7a99d482597d1a5

wcfsetup/install/files/lib/system/email/transport/SmtpEmailTransport.class.php

index e19c2964b98821a2122387879fd1e516451fb0f2..bf4c9510bbb01b49b03462e5d8f7c3398a6f516e 100644 (file)
@@ -358,7 +358,7 @@ class SmtpEmailTransport implements IEmailTransport {
                
                $this->write('RSET');
                $this->read([250]);
-               $this->write('MAIL FROM:<'.$email->getSender()->getAddress().'>');
+               $this->write('MAIL FROM:<'.$envelopeFrom->getAddress().'>');
                $this->read([250]);
                $this->write('RCPT TO:<'.$envelopeTo->getAddress().'>');
                $this->read([250, 251]);