Skip to content
This repository has been archived by the owner on Feb 9, 2019. It is now read-only.

cannot find symbol #85

Open
jezozwierzak opened this issue Aug 23, 2013 · 1 comment
Open

cannot find symbol #85

jezozwierzak opened this issue Aug 23, 2013 · 1 comment

Comments

@jezozwierzak
Copy link

I did everything like in mailer README.
I added "com.typesafe" %% "play-plugins-mailer" % "2.1-RC2" to my dependencies.
I added 1500:com.typesafe.plugin.CommonsMailerPlugin to my conf/play.plugins
I also added configuration in conf/application.conf file:

smtp.host=smtp.gmail.com
smtp.port=587
smtp.ssl=true
smtp.tls=true
smtp.username="[email protected]"
smtp.password="xxxxxxx"

I'm still getting error showed below. I tried to change 2.1-RC2 to 2.1.0 but it didn't work. How can I proper configure mailer?

error: cannot find symbol
[error]         mail.setRecipient("Peter Hausel Junior <[email protected]>","[email protected]");
[error]             ^
[error]   symbol:   method setRecipient(String,String)
[error]   location: variable mail of type MailerAPI
[error] 1 error
[error] (compile:compile) javac returned nonzero exit code
[error] application - 

! @6fc9m5829 - Internal server error, for (GET) [/] ->

sbt.PlayExceptions$CompilationException: Compilation error[error: cannot find symbol]
at sbt.PlayReloader$$anon$2$$anonfun$reload$2$$anonfun$apply$15$$anonfun$apply$16.apply(PlayReloader.scala:349) ~[na:na]
at sbt.PlayReloader$$anon$2$$anonfun$reload$2$$anonfun$apply$15$$anonfun$apply$16.apply(PlayReloader.scala:349) ~[na:na]
at scala.Option.map(Option.scala:133) ~[scala-library.jar:na]
at sbt.PlayReloader$$anon$2$$anonfun$reload$2$$anonfun$apply$15.apply(PlayReloader.scala:349) ~[na:na]
at sbt.PlayReloader$$anon$2$$anonfun$reload$2$$anonfun$apply$15.apply(PlayReloader.scala:346) ~[na:na]
at scala.Option.map(Option.scala:133) ~[scala-library.jar:na]
@jezozwierzak
Copy link
Author

I found out that when I changed methods:

mail.setRecipient
mail.setFrom

to

mail.addRecipient
mail.addFrom

all worked.

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