Sending Messages
Sending Messages in Swift Mailer requires the use of a Transport and the Swift_Mailer class. There are several possible Transport classes that can be used.
-
Quick Reference for Sending a Message
Sending a message is very straightforward. You create a Transport, use it to create the Mailer, then you use the Mailer to send the message. -
Transport Types
A Transport is the component which actually does the sending. You need to provide a Transport object to the Mailer class and there are several possible options. -
Available Methods for Sending Messages
The Mailer class offers two methods for sending Messages – send() and batchSend(). Each behaves in a slightly different way. -
Finding out Rejected Addresses
It's possible to get a list of addresses that were rejected by the Transport by using a by-reference parameter to send() or batchSend().
Previous topic: Message Headers
Next topic: Plugins