I've got Email Service working correctly (http://buildwithcraft.com/docs/apis/emailservice) but what's the best way to include attachments when using this service?
Here's what I've got so far:
$email = new EmailModel();
$email->subject = "Thanks!";
$email->htmlBody = "<h1>Congratulations!</h1";
$email->htmlBody .= "<p>Hello World</p>";
$email->fromEmail = "[email protected]";
I see there is $email->addAttachment but I'm not sure what variables to include to make it pass through the service.
Anyone have any examples?