Skip to content

Send mail failing when sentDate configuration passed #10

@laxmisalunkhe

Description

@laxmisalunkhe

I have just configured SendGrid plugin in my new grails app. Normal sendMail is working fine but scheduled mail was not sent. Please check my code below:

Date date
use( TimeCategory ) {
    date = new Date() + 2.minutes
}

sendMail {
    from "admin@test.com"
    to "laxmi@test.com"
    subject "New blog"
    sentDate date
    body "A new blog has been created on ${date}"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions