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

Error with return type from the dkimSignMessage example #32

@phelgren

Description

@phelgren

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions