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
More of Php Swiftmailer
- How to configure Swiftmailer for SMTP without authentication?
- How to use SMTP with Swiftmailer?
- How to send emails in UTF8 using Swiftmailer?
- How to set timeout with Swiftmailer?
- How to use TLS 1.2 with Swiftmailer?
- How to log emails sent with Swiftmailer?
- How to use Swiftmailer with Symfony?
- How to use Swiftmailer to send RFC 2822 compliant emails?
- How to set the port for Swiftmailer?
- How to configure Swiftmailer logger?
See more codes...