throw new IllegalStateException("Attempting to send a component email with a null component! From: "
+ title + " title: " + title);
} else {
WOContext context = component.context();
// Emails should generate complete urls
context.generateCompleteURLs();
message = component.generateResponse().contentString();
}
return composeEmail(from, to, cc, bcc, title, message, ec);
}