9951 explained code solutions for 126 technologies


php-swiftmailerHow to set the reply to address in Swiftmailer?


Swiftmailer allows you to set the reply to address using the setReplyTo() method.

$message->setReplyTo('[email protected]');

The setReplyTo() method takes a single argument, which is the email address to set as the reply to address.

Code explanation

  • setReplyTo(): The method used to set the reply to address.
  • [email protected]: The email address to set as the reply to address.

Helpful links

Edit this code on GitHub