Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion [Play Framework 2.0][Java] Help for Email Stuff
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Senthil Kumar R.G.  
View profile  
 More options Jul 30 2012, 5:28 am
From: "Senthil Kumar R.G." <r.g.sent...@agriya.in>
Date: Mon, 30 Jul 2012 14:58:41 +0530
Local: Mon, Jul 30 2012 5:28 am
Subject: Re: [play-framework] [Play Framework 2.0][Java] Help for Email Stuff

u check the gmail settings in google for sending mail

On Mon, Jul 30, 2012 at 2:10 PM, Sameer Verasiya <sameer.si...@gmail.com>wrote:

> my controller

>   public static Result index() {

>           MailerAPI mail =
> play.Play.application().plugin(MailerPlugin.class).email();
>         mail.setSubject("mailer");
>         mail.addRecipient("sameer.si...@gmail.com");
>         mail.addFrom("sameer.si...@gmail.com");

>         //sends html
>         mail.sendHtml("<html>html</html>" );
>         //sends text/text
>         //mail.send( "text" );
>         //sends both text and html
>         //mail.send( "text", "<html>html</html>");
>         return ok(index.render("Your new application is ready."));

>   }

> On Mon, Jul 30, 2012 at 1:39 PM, Sameer Verasiya <sameer.si...@gmail.com>wrote:

>> hey

>> i have removed tht package from the app folder else copied the same code
>> as u sent things r goin fine but i m haven an execution exception which is

>> [EmailException: Sending the email to the following server failed :
>> localhost:25]
>> In
>> /home/ssverasiya/Documents/rbehelperWork/mailWork/app/controllers/Applicati on.java
>> at line 19.

>> 15    mail.setSubject("mailer");

>> 16    mail.addRecipient("sameer.si...@gmail.com");

>> 17    mail.addFrom("sameer.si...@gmail.com");

>> 18    //sends html

>> 19    mail.sendHtml("<html>html</html>" );

>> 20    //sends text/text

>> 21    //mail.send( "text" );

>> 22    //sends both text and html

>> 23    //mail.send( "text", "<html>html</html>");

>> the following properties are there in my application.conf file

>> smtp.host="smtp.gmail.com"
>> smtp.port="25"
>> smtp.ssl="yes"

>> On Mon, Jul 30, 2012 at 1:26 PM, Senthil Kumar R.G. <
>> r.g.sent...@agriya.in> wrote:
>> > Can u tell me why u add com folder in mailWork\app ? plz remove it and
>> check

>> > On Mon, Jul 30, 2012 at 1:55 PM, Senthil Kumar R.G. <
>> r.g.sent...@agriya.in>
>> > wrote:

>> >> Hi
>> >> It worked for me i mean i tested ur code and it works the mistake u
>> made
>> >> is go to ur application.java file and change with this code

>> >> Note u have to add configuration in application.conf file also

>> >> package controllers;

>> >> import play.*;
>> >> import play.mvc.*;
>> >> import com.typesafe.plugin.*;

>> >> import views.html.*;

>> >> public class Application extends Controller {

>> >>   public static Result index() {
>> >>     MailerAPI mail =
>> >> play.Play.application().plugin(MailerPlugin.class).email();
>> >>     mail.setSubject("mailer");
>> >>     mail.addRecipient("r.g.sent...@agriya.in");
>> >>     mail.addFrom("Peter Hausel <nore...@email.com>");
>> >>     //sends html
>> >>     mail.sendHtml("<html>html</html>" );
>> >>     //sends text/text
>> >>     //mail.send( "text" );
>> >>     //sends both text and html
>> >>     //mail.send( "text", "<html>html</html>");
>> >>     return ok(index.render("Your new application is ready."));

>> >>   }

>> >> }

>> >> On Mon, Jul 30, 2012 at 1:21 PM, Sameer Verasiya <
>> sameer.si...@gmail.com>
>> >> wrote:

>> >>> yes i m using play 2.0.. I m using linux as an operating system.. can
>> >>> you just tht project file i sent u earlier .. n else i have also
>> >>> figuerd out the build.properties file .. the project u sent had
>> >>> build.properties in which the sbt version is bt.version=0.11.3 and i
>> >>> have sbt.version=0.11.2

>> >>> is that an issue?? and else it also not allowing me to eclipsify your
>> >>> project plus am not able to import your project in eclipse as well

>> >>> On Mon, Jul 30, 2012 at 12:40 PM, Senthil Kumar R.G.
>> >>> <r.g.sent...@agriya.in> wrote:
>> >>> > Which play version ur using. is that play 2.0 because i am using
>> play
>> >>> > 2.0

>> >>> > On Mon, Jul 30, 2012 at 1:09 PM, Senthil Kumar R.G.
>> >>> > <r.g.sent...@agriya.in>
>> >>> > wrote:

>> >>> >> This error is because conflict of play version mismatch in my
>> machine
>> >>> >> and
>> >>> >> urs.
>> >>> >> Ok u do one thing, just create a new project inside the play folder
>> >>> >> and
>> >>> >> add the extra files that i have gave i.e in conf/play.plugins
>> folder
>> >>> >> and
>> >>> >> build.scala ,application.scala i have added code to send email just
>> >>> >> see it.

>> >>> >> On Mon, Jul 30, 2012 at 1:00 PM, Sameer Verasiya
>> >>> >> <sameer.si...@gmail.com>
>> >>> >> wrote:

>> >>> >>> Hey Senthil..!!

>> >>> >>> Thanks for the project file.. actually when i ran this project
>> into
>> >>> >>> the play console by using play comman .. it is not resolving the
>> >>> >>> dependencies.. here is the issue

>> >>> >>> Getting org.scala-tools.sbt sbt_2.9.1 0.11.3 ...

>> >>> >>> :: problems summary ::
>> >>> >>> :::: WARNINGS
>> >>> >>>                 module not found:
>> >>> >>> org.scala-tools.sbt#sbt_2.9.1;0.11.3

>> >>> >>>         ==== local: tried

>> /home/ssverasiya/Documents/Softwares/play-2.0/framework/../repository/local /org.scala-tools.sbt/sbt_2.9.1/0.11.3/ivys/ivy.xml

>> >>> >>>         ==== Maven2 Local: tried

>> file:///home/ssverasiya/.m2/repository/org/scala-tools/sbt/sbt_2.9.1/0.11.3 /sbt_2.9.1-0.11.3.pom

>> >>> >>>         ==== typesafe-ivy-releases: tried

>> http://repo.typesafe.com/typesafe/ivy-releases/org.scala-tools.sbt/sb...

>> >>> >>>         ==== Maven Central: tried

>> http://repo1.maven.org/maven2/org/scala-tools/sbt/sbt_2.9.1/0.11.3/sb...

>> >>> >>>         ==== Scala-Tools Maven2 Repository: tried

>> http://scala-tools.org/repo-releases/org/scala-tools/sbt/sbt_2.9.1/0....

>> >>> >>>         ==== Scala-Tools Maven2 Snapshots Repository: tried

>> http://scala-tools.org/repo-snapshots/org/scala-tools/sbt/sbt_2.9.1/0...

>> >>> >>>                 ::::::::::::::::::::::::::::::::::::::::::::::

>> >>> >>>                 ::          UNRESOLVED DEPENDENCIES         ::

>> >>> >>>                 ::::::::::::::::::::::::::::::::::::::::::::::

>> >>> >>>                 :: org.scala-tools.sbt#sbt_2.9.1;0.11.3: not found

>> >>> >>>                 ::::::::::::::::::::::::::::::::::::::::::::::

>> >>> >>> :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
>> >>> >>> unresolved dependency: org.scala-tools.sbt#sbt_2.9.1;0.11.3: not
>> >>> >>> found
>> >>> >>> Error during sbt execution: Error retrieving required libraries
>> >>> >>>   (see

>> /home/ssverasiya/Documents/Softwares/play-2.0/framework/sbt/boot/update.log
>> >>> >>> for complete log)
>> >>> >>> Error: Could not retrieve sbt 0.11.3
>> >>> >>> ssverasiya@ssverasiya:~/Downloads/javaemp$ play run
>> >>> >>> Getting org.scala-tools.sbt sbt_2.9.1 0.11.3 ...

>> >>> >>> :: problems summary ::
>> >>> >>> :::: WARNINGS
>> >>> >>>                 module not found:
>> >>> >>> org.scala-tools.sbt#sbt_2.9.1;0.11.3

>> >>> >>>         ==== local: tried

>> /home/ssverasiya/Documents/Softwares/play-2.0/framework/../repository/local /org.scala-tools.sbt/sbt_2.9.1/0.11.3/ivys/ivy.xml

>> >>> >>>         ==== Maven2 Local: tried

>> file:///home/ssverasiya/.m2/repository/org/scala-tools/sbt/sbt_2.9.1/0.11.3 /sbt_2.9.1-0.11.3.pom

>> >>> >>>         ==== typesafe-ivy-releases: tried

>> http://repo.typesafe.com/typesafe/ivy-releases/org.scala-tools.sbt/sb...

>> >>> >>>         ==== Maven Central: tried

>> http://repo1.maven.org/maven2/org/scala-tools/sbt/sbt_2.9.1/0.11.3/sb...

>> >>> >>>         ==== Scala-Tools Maven2 Repository: tried

>> http://scala-tools.org/repo-releases/org/scala-tools/sbt/sbt_2.9.1/0....

>> >>> >>>         ==== Scala-Tools Maven2 Snapshots Repository: tried

>> http://scala-tools.org/repo-snapshots/org/scala-tools/sbt/sbt_2.9.1/0...

>> >>> >>>                 ::::::::::::::::::::::::::::::::::::::::::::::

>> >>> >>>                 ::          UNRESOLVED DEPENDENCIES         ::

>> >>> >>>                 ::::::::::::::::::::::::::::::::::::::::::::::

>> >>> >>>                 :: org.scala-tools.sbt#sbt_2.9.1;0.11.3: not found

>> >>> >>>                 ::::::::::::::::::::::::::::::::::::::::::::::

>> >>> >>> :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
>> >>> >>> unresolved dependency: org.scala-tools.sbt#sbt_2.9.1;0.11.3: not
>> >>> >>> found
>> >>> >>> Error during sbt execution: Error retrieving required libraries
>> >>> >>>   (see

>> /home/ssverasiya/Documents/Softwares/play-2.0/framework/sbt/boot/update.log
>> >>> >>> for complete log)
>> >>> >>> Error: Could not retrieve sbt 0.11.3

>> >>> >>> Is that cuz m using play 2.0?????

>> >>> >>> On Mon, Jul 30, 2012 at 12:20 PM, Senthil Kumar R.G.
>> >>> >>> <r.g.sent...@agriya.in> wrote:
>> >>> >>> > Hi

>> >>> >>> > Please check this sample java code which is working from my end

>> >>> >>> > On Mon, Jul 30, 2012 at 12:31 PM, Sameer Verasiya
>> >>> >>> > <sameer.si...@gmail.com>
>> >>> >>> > wrote:

>> >>> >>> >> Would you please do the addition in the project which i have
>> sent
>> >>> >>> >> as
>> >>> >>> >> its not pretty clear to me where m i wrong as i have done
>> >>> >>> >> everything

>> >>> >>> >> On Mon, Jul 30, 2012 at 11:49 AM, Sameer Verasiya
>> >>> >>> >> <sameer.si...@gmail.com> wrote:
>> >>> >>> >> > This isn't working actually as I did put configured
>> Build.Scala
>> >>> >>> >> > ,
>> >>> >>> >> > added play.plugins in my conf folder else copied
>> >>> >>> >> > MailerPlugin.scala
>> >>> >>> >> > file and MailerApiJavaInterop.java and pasted in my new
>> package
>> >>> >>> >> > named
>> >>> >>> >> > com.typesafe.plugin

>> >>> >>> >> > I am getting errors using methods like addRecipient, addFrom
>> and
>> >>> >>> >> > sendHtml .. Please can anyone help?

>> >>> >>> >> > You may find the attachment of my project.. please help :)

>> >>> >>> >> > On Mon, Jul 30, 2012 at 11:28 AM, Sameer Verasiya
>> >>> >>> >> > <sameer.si...@gmail.com> wrote:
>> >>> >>> >> >> do I have to put MailerPlugin.scala and java file in my
>> >>> >>> >> >> project??

>> >>> >>> >> >> as this

>> https://github.com/typesafehub/play-plugins/tree/master/mailer
>> >>> >>> >> >> imports

>> >>> >>> >> >> import com.typesafe.plugin.*;

>> >>> >>> >> >> ??

>> >>> >>> >> >> On Mon, Jul 30, 2012 at 9:44 AM, Senthil Kumar R.G.
>> >>> >>> >> >> <r.g.sent...@agriya.in> wrote:
>> >>> >>> >> >>> Hi Sameer

>> >>> >>> >> >>> Please use this link for sending and receiving mails in
>> play
>> >>> >>> >> >>> framework
>> >>> >>> >> >>> 2.0
>> >>> >>> >> >>> You need a specialized plugin to be added in the
>> application
>> >>> >>> >> >>> Follow the step.

>> https://github.com/typesafehub/play-plugins/tree/master/mailer

>> >>> >>> >> >>> On Mon, Jul 30, 2012 at 9:58 AM, sameer verasiya
>> >>> >>> >> >>> <sameer.si...@gmail.com>
>> >>> >>> >> >>> wrote:

>> >>> >>> >> >>>> Hey Players..!!

>> >>> >>> >> >>>> I just want to know how we may setup sending and Receiving
>> >>> >>> >> >>>> E-mails in
>> >>> >>> >> >>>> Play
>> >>> >>> >> >>>> Framework 2.0 from the scratch.. I am a noob and don't
>> how it
>> >>> >>> >> >>>> could
>> >>> >>> >> >>>> be
>> >>> >>> >> >>>> done.. Any help would be very much appreciated.. Thanks :)

>> >>> >>> >> >>>> --
>> >>> >>> >> >>>> You received this message because you are subscribed to
>> the
>> >>> >>> >> >>>> Google
>> >>> >>> >> >>>> Groups
>> >>> >>> >> >>>> "play-framework" group.
>> >>> >>> >> >>>> To view this discussion on the web visit

>> https://groups.google.com/d/msg/play-framework/-/5fUsBC9rZZcJ.
>> >>> >>> >> >>>> To post to this group, send email to
>> >>> >>> >> >>>> play-framework@googlegroups.com.
>> >>> >>> >> >>>> To unsubscribe from this group, send email to
>> >>> >>> >> >>>> play-framework+unsubscribe@googlegroups.com.
>> >>> >>> >> >>>> For more options, visit this group at
>> >>> >>> >> >>>> http://groups.google.com/group/play-framework?hl=en.

>> >>> >>> >> >>> --
>> >>> >>> >> >>> You received this message because you are subscribed to the
>> >>> >>> >> >>> Google
>> >>> >>> >> >>> Groups
>> >>> >>> >> >>> "play-framework" group.
>> >>> >>> >> >>> To post to this group, send email to
>> >>> >>> >> >>> play-framework@googlegroups.com.
>> >>> >>> >> >>> To unsubscribe from this group, send email to
>> >>> >>> >> >>> play-framework+unsubscribe@googlegroups.com.
>> >>> >>> >> >>> For more options, visit this group at
>> >>> >>> >> >>> http://groups.google.com/group/play-framework?hl=en.

>> >>> >>> >> --
>> >>> >>> >> You received this message because you are subscribed to the
>> Google
>> >>> >>> >> Groups
>> >>> >>> >> "play-framework" group.
>> >>> >>> >> To post to this group, send email to
>> >>> >>> >> play-framework@googlegroups.com.
>> >>> >>> >> To unsubscribe from this group, send email to
>> >>> >>> >> play-framework+unsubscribe@googlegroups.com.
>> >>> >>> >> For more options, visit this group at
>> >>> >>> >> http://groups.google.com/group/play-framework?hl=en.

>> >>> >>> > --
>> >>> >>> > You received this message because you are subscribed to the
>> Google
>> >>> >>> > Groups
>> >>> >>> > "play-framework" group.
>> >>> >>> > To post to this group, send email to
>> >>> >>> > play-framework@googlegroups.com.
>> >>> >>> > To unsubscribe from this group, send email to
>> >>> >>> > play-framework+unsubscribe@googlegroups.com.
>> >>> >>> > For more options, visit this group at
>> >>> >>> > http://groups.google.com/group/play-framework?hl=en.

>> >>> >>> --
>> >>> >>> You received this message because you are subscribed to the Google
>> >>> >>> Groups
>> >>> >>> "play-framework" group.
>> >>> >>> To post to this group, send email to
>> play-framework@googlegroups.com.
>> >>> >>> To unsubscribe from this group, send email to
>> >>> >>> play-framework+unsubscribe@googlegroups.com.
>> >>> >>> For more options, visit this group at
>> >>> >>> http://groups.google.com/group/play-framework?hl=en.

>> >>> > --
>> >>> > You received this message because you are subscribed to the Google
>> >>> > Groups
>> >>> > "play-framework" group.
>> >>> > To post to this group, send email to
>> play-framework@googlegroups.com.
>> >>> > To unsubscribe from this group, send email to
>> >>> > play-framework+unsubscribe@googlegroups.com.
>> >>> > For more options, visit this group at
>> >>> > http://groups.google.com/group/play-framework?hl=en.

>> >>> --
>> >>> You received this message because you are subscribed to the Google
>> Groups
>> >>> "play-framework" group.
>> >>> To post to this group, send email to play-framework@googlegroups.com.
>> >>> To unsubscribe from this group, send email to
>> >>> play-framework+unsubscribe@googlegroups.com.
>> >>> For more options, visit this group at
>> >>> http://groups.google.com/group/play-framework?hl=en.

>> > --
>> > You received this message because you are subscribed to the Google
>> Groups
>> > "play-framework" group.
>> > To post to this group, send email to play-framework@googlegroups.com.
>> > To unsubscribe from this group, send email to
>> > play-framework+unsubscribe@googlegroups.com.
>> > For more options, visit this group at
>> > http://groups.google.com/group/play-framework?hl=en.

>  --
> You received this message because you are subscribed to the Google Groups
> "play-framework" group.
> To post to this group, send email to play-framework@googlegroups.com.
> To unsubscribe from this group, send email to
> play-framework+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/play-framework?hl=en.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.