8000 Reply-To field not supported in PostmanSmtp2GoEngine · Issue #121 · wpexpertsio/Post-SMTP · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Reply-To field not supported in PostmanSmtp2GoEngine #121
Open
@vandevusse

Description

@vandevusse

Reply-To in version 3.1.4 is not supported by PostmanSmtp2GoEngine

However, the following snippet appears to work for me in my fork. Hope this is helpful.

`
// add the reply-to
$replyTo = $message->getReplyTo();

			 // $replyTo is null or a PostmanEmailAddress object
			 if ( isset( $replyTo ) ) {
				$replyToEmail = $replyTo->getEmail();
				$replyToName = $replyTo->getName();
				$replyToValue = !empty($replyToName) ? $replyToName . ' <' . $replyToEmail . '>' : $replyToEmail;
				
				$content['custom_headers'][] = array(
					'header' => 'Reply-To',
					'value'  => $replyToValue,
				);
			 }

`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0