Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8428057
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T04:56:58+00:00 2026-06-10T04:56:58+00:00

I am trying to use the Mailer Plugin in my play! 2 Java Application.

  • 0

I am trying to use the Mailer Plugin in my play! 2 Java Application.
I followed the Instructions given in the Readme File but the Module doesn’t show up in my Application’s Dependencies.
So when I try to compile it play! gives me an error:

object plugin is not a member of package com.typesafe

I tried to reload the project and double-checked the files in /project. Nothing worked so far.

Is there a way to force play! to check the application’s dependencies?

Update:

Ok, new Error Message. I deleted /project/project/, /project/target/ and /target/. Next time I started play! it took quite some time to get all the Modules. It did not download the Mailer-Plugin.
But now I get:

play.api.PlayException: Cannot load plugin [Plugin [com.typesafe.plugin.CommonsMailerPlugin] cannot been instantiated.]

followed by:

Caused by: java.lang.ClassNotFoundException: com.typesafe.plugin.CommonsMailerPlugin

Any Ideas?

Update 2:
Okay, i fixed this by downloading the play-plugins-mailer_2.9.1-2.0.4.jar directly from typesafe and putting it into /lib. This is definitely not the right way, but at least it works for now.
The .jar I needed for my play! 2.0.3 project: http://repo.typesafe.com/typesafe/releases/com/typesafe/play-plugins-mailer_2.9.1/2.0.4/

Update 3:
Content of relevant Files:
Build.scala:

import sbt._
import Keys._
import PlayProject._

object ApplicationBuild extends Build {

    val appName         = "thesis"
    val appVersion      = "0.9"

    val appDependencies = Seq(
        "com.typesafe" %% "play-plugins-mailer" % "2.0.4"
    )

    val main = PlayProject(appName, appVersion, mainLang = JAVA).settings(
        lessEntryPoints <<= baseDirectory(_ / "app" / "assets" / "stylesheets" ** "bootstrap.less"),
        templatesImport += "helper._",
        templatesImport += "views.html.Helpers._"
    )

}

build.properties:

sbt.version=0.11.3

plugins.sbt:

// Comment to get more information during initialization
logLevel := Level.Info

// The Typesafe repository
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"

// Use the Play sbt plugin for Play projects
addSbtPlugin("play" % "sbt-plugin" % "2.0.3")

conf/play.plugins:

1500:com.typesafe.plugin.CommonsMailerPlugin
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T04:57:00+00:00Added an answer on June 10, 2026 at 4:57 am

    Okay, in order to get play! to manage my dependencies I had to create a new project copy over the old files (excluding already compiled code), edit the Build.scala and reload/compile the project inside the play! console.
    Now it works! Mailer Plugin gets downloaded, compiled and play dependencies lists it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use the Mailer plugin with my Play project and I've ran
I am trying to use the Database mailer extension for my Radiant CMS application.
I'm trying to use a mailer in my WordPress theme, but I don't seem
I've been trying out the PHPMailer sample script as given in its README file.
I'm getting an error while trying to use the action_mailer_tls plugin to communicate with
I am trying use gem tire to search in my application. I have tables
I'm trying use mod_rewrite to rewrite URLs from the following: http://www.site.com/one-two-file.php to http://www.site.com/one/two/file.php The
I am trying use a Java Uploader in a ROR app (for its ease
I was trying use svn to find a checkin using svn log, but it
Im trying to use PHP mail on my local computer, but its just not

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.