Hi, this is not exactly an issue but an improvement.
There should be a flag where if someone only needs the DKIM signature instead of complete data (header + body).
r := strings.NewReader(mailString)
options := &dkim.SignOptions{
Domain: "example.org",
Selector: "brisbane",
Signer: privateKey,
}
var b bytes.Buffer
if err := dkim.Sign(&b, r, options); err != nil {
log.Fatal(err)
}
Hi, this is not exactly an issue but an improvement. There should be a flag where if someone only needs the DKIM signature instead of complete data (header + body).
This provides complete data.
Here we can add another field like
dkimSign : true
which only return the signature.