...
Code Block | ||
---|---|---|
| ||
$from = "info@mail.example";
$to = "myaddress@mail.example";
$cc = "cc@mail.example";
$bcc = "bcc@mail.example";
$reply "replyto@mail.example";
$message = Swift_Message::newInstance();
$message->setFrom($from);
$message->setTo($to);
$message->setCc($cc);
$message->setBcc($bcc);
$message->setReplyTo($replyTo);
|
Eventually send the mail with the above created message by calling the mailers send() method.
...