Goldmine integration can be approached several ways with the most simple being the built-in web import facility.
By marking up an email in a particular way, a goldmine user upon opening said email will execute the web import (which is essentially some simple instructions and some data to be used for inserting or updating fields).
Before I go on, yes, you're right, doesn't this sound a nice thing for hackers to exploit... I'll give you some tips on this in another post, one thing at a time!
Anyway, if you find yourself in a similar position to me, where you just need to make this work, read on:
The Goldmine manual tells us by simply adding
Content-Type: application/x-gm-impdata to our email headers, Goldmine will initiate a webimport on reading (i.e., a user opening the email).
This instruction is 100% correct, however, it is imperative that the unknown mime type's addition to the email headers is placed at the right point, not doing so will result in the email importing successfully but later reading of said email will render the lovely
unknown mime type: application/x-gm-impdata.
Tip
Make sure when you add your goldmine content type you do so as the last line of the html boundary header, when written in PHP, resulting in something similar to:
$result .= $this->TextLine("--" . $boundary);
$result .= sprintf("Content-Type: %s; charset = \"%s\"", $contentType, $charSet);
$result .= $this->LE;
$result .= $this->HeaderLine("Content-Transfer-Encoding", $encoding);
//gm-mime-type
if($contentType == "text/html"){
$result .= $this->HeaderLine("Content-Disposition", "inline");
$result .= $this->HeaderLine("Content-Type", "application/x-gm-impdata");
}
//gm-mime-type-end
$result .= $this->LE;
This will mean you provide Goldmine with a suitably written HTML block which contains your web import instruction and leaves you with the plain text part to write whatever you'd like users to read once the email is filed to history.
Hope it helps, @dpitt