Hey Scott!
A few complications here, but not dealbreakers:
- Multiple recipients on the same email (i.e., CCing) isn't possible through Marketo.
- Native attachments in Marketo aren't possible.
The way you'd be able to edit Marketo emails is through editing program tokens (that example link) or lead tokens (any SFDC custom fields). These tokens show up in the actual body of the email (not the head), so adding additional encoding in the head or headers won't work (aka what you'd need to encode actual attachments).
The normal workaround for attachments is to upload the files and then just provide a link within the email to the attachment. I'd say that's a generally-acceptable workaround, so long as your URLs uploaded aren't possible to be backward-engineered—so people can't go from arrowpointe.com/etumos-invoice.pdf to arrowpointe.com/google-invoice.pdf.
Workaround to Do ThisInstead of program tokens, this kind of specificity might work better with SFDC custom fields that have the email content within them. This is because you're looking at content specific to individuals, not specific to programs. You can have a Marketo email which contains {{lead.Dev - Temporary: Email Content}} as the body, and keep HTML (including the link to the attachment) within that field. SFDC can update that custom field as applicable, and then run a
Request Campaign API call to fire off the email through Marketo based on whatever workflow rules you design.
If you're using tokens like this, with HTML inside them, be prepared for the Text-Only version of the email to be rather ugly—Marketo doesn't strip
Text Tokens of their HTML when sending them as Text-Only, so people on bad internet connections get a bunch of plain-text HTML code in their email.
(Also, for whichever SFDC custom field you use for this approach, I'd throw a filter on the API-requestable smart campaign to say "Dev - Temporary: Email Content" is not empty as a safety.)
Another option would be to have a Custom Object with this content, and use that Custom Object content in the email (e.g., through Velocity scripting). Warning, though: the only way to get SFDC Custom Objects accessible within Marketo is to have Marketo's Professional Services custom-code it up for you. I haven't done it before, but I would be surprised if you could get this done for less than $1k.
Cheers,
Edward Unthank | Founder, Etumos