Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

Error with return type from the dkimSignMessage example #32

Open
phelgren opened this issue Aug 27, 2021 · 0 comments
Open

Error with return type from the dkimSignMessage example #32

phelgren opened this issue Aug 27, 2021 · 0 comments

Comments

@phelgren
Copy link

I am in the process of converting my code from the https://www.agitos.de/dkim-for-javamail/ version to your implementation. I basically copied and pasted the sample code for signing the message and I get the error:

Type mismatch: cannot convert from DkimMessage to MimeMessage

I am not exactly sure what the issue is. My import references import jakarta.mail.internet.MimeMessage; I am using Jakarta Mail version 2.0.1 and the 2.0.1 version of the DkimSigner. My gradle build file references:

// https://mvnrepository.com/artifact/net.markenwerk/utils-mail-dkim
implementation 'net.markenwerk:utils-mail-dkim:2.0.1'

// https://mvnrepository.com/artifact/com.sun.mail/jakarta.mail
implementation group: 'com.sun.mail', name: 'jakarta.mail', version: '2.0.1'

Not sure why I get the error. I cleaned up all the old package references for the agitos packages as well as the javax.mail. I am using java-1.8.0-openjdk-1.8.0.252-2. Any recommendations?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant