Child pages
  • cMailer

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: setBody im Codeblock hinzugefügt

...

Code Block
languagephp
 $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);

// Give it a body
 $message->setBody('Here is the message itself');

Eventually send the mail with the above created message by calling the mailers send() method.

...