Right now there is this instruction in the documentation
	
I believe that this instruction should be corrected to include a reference to the email entity being sent, like this:
	
							
						
					PHP Code:
	
$this->emailSender
    ->withSmtpParams($smtpParams) // optional
    ->withAttachments([$attachment]) // optional, to send with attachments
    ->send(); 
PHP Code:
	
$this->emailSender
    ->withSmtpParams($smtpParams) // optional
    ->withAttachments([$attachment]) // optional, to send with attachments
    ->send($email); 

			
Comment