platform/api/symfony/Component/Mailer/Transport/SendmailTransport.yaml

98 lines
3.3 KiB
YAML
Raw Normal View History

2024-09-02 17:44:11 +00:00
name: SendmailTransport
class_comment: '# * SendmailTransport for sending mail through a Sendmail/Postfix
(etc..) binary.
# *
# * Transport can be instantiated through SendmailTransportFactory or NativeTransportFactory:
# *
# * - SendmailTransportFactory to use most common sendmail path and recommended
options
# * - NativeTransportFactory when configuration is set via php.ini
# *
# * @author Fabien Potencier <fabien@symfony.com>
# * @author Chris Corbyn'
dependencies:
- name: EventDispatcherInterface
type: class
source: Psr\EventDispatcher\EventDispatcherInterface
- name: LoggerInterface
type: class
source: Psr\Log\LoggerInterface
- name: Envelope
type: class
source: Symfony\Component\Mailer\Envelope
- name: SentMessage
type: class
source: Symfony\Component\Mailer\SentMessage
- name: SmtpTransport
type: class
source: Symfony\Component\Mailer\Transport\Smtp\SmtpTransport
- name: AbstractStream
type: class
source: Symfony\Component\Mailer\Transport\Smtp\Stream\AbstractStream
- name: ProcessStream
type: class
source: Symfony\Component\Mailer\Transport\Smtp\Stream\ProcessStream
- name: RawMessage
type: class
source: Symfony\Component\Mime\RawMessage
properties: []
methods:
- name: __construct
visibility: public
parameters:
- name: command
default: 'null'
- name: dispatcher
default: 'null'
- name: logger
default: 'null'
comment: "# * SendmailTransport for sending mail through a Sendmail/Postfix (etc..)\
\ binary.\n# *\n# * Transport can be instantiated through SendmailTransportFactory\
\ or NativeTransportFactory:\n# *\n# * - SendmailTransportFactory to use most\
\ common sendmail path and recommended options\n# * - NativeTransportFactory when\
\ configuration is set via php.ini\n# *\n# * @author Fabien Potencier <fabien@symfony.com>\n\
# * @author Chris Corbyn\n# */\n# class SendmailTransport extends AbstractTransport\n\
# {\n# private string $command = '/usr/sbin/sendmail -bs';\n# private ProcessStream\
\ $stream;\n# private ?SmtpTransport $transport = null;\n# \n# /**\n# * Constructor.\n\
# *\n# * Supported modes are -bs and -t, with any additional flags desired.\n\
# *\n# * The recommended mode is \"-bs\" since it is interactive and failure notifications\
\ are hence possible.\n# * Note that the -t mode does not support error reporting\
\ and does not support Bcc properly (the Bcc headers are not removed).\n# *\n\
# * If using -t mode, you are strongly advised to include -oi or -i in the flags\
\ (like /usr/sbin/sendmail -oi -t)\n# *\n# * -f<sender> flag will be appended\
\ automatically if one is not present."
- name: send
visibility: public
parameters:
- name: message
- name: envelope
default: 'null'
comment: null
- name: __toString
visibility: public
parameters: []
comment: null
- name: doSend
visibility: protected
parameters:
- name: message
comment: null
traits:
- Psr\EventDispatcher\EventDispatcherInterface
- Psr\Log\LoggerInterface
- Symfony\Component\Mailer\Envelope
- Symfony\Component\Mailer\SentMessage
- Symfony\Component\Mailer\Transport\Smtp\SmtpTransport
- Symfony\Component\Mailer\Transport\Smtp\Stream\AbstractStream
- Symfony\Component\Mailer\Transport\Smtp\Stream\ProcessStream
- Symfony\Component\Mime\RawMessage
interfaces: []