joscha / play-easymail Goto Github PK
View Code? Open in Web Editor NEWA simple Java wrapper for the Typesafe mailer plugin for Play! Framework 2.x
License: Other
A simple Java wrapper for the Typesafe mailer plugin for Play! Framework 2.x
License: Other
What is the best way to send to BCC recipients using this plugin?
Can you please bump the version of play-mailer
to 5.0 (it's not M1 anymore) https://github.com/playframework/play-mailer#current-versions
And also why play-easymail
is still a SNAPSHOT
?
Hi
I am trying to create html emails from scala templates. The scala template references stylesheets and images that are not picked up when sending the email. If I just render the template it looks fine.
Gaurav
Hello,
Is it possible with this plugin to change the sender of a single e-mail? The other mails on my project will be sent from the address I specified in my application.conf, but the contact e-mail should be sent from a different e-mail address.
Thanks
So far, one can configure delay
property which causes Easymail to send emails AFTER this delay.
In other words if we have a loop
for (int i = 0; i < 20; i++) {
mailService.sendMail("[email protected]", "subject"+i", "body");
}
after the delay, Easymail will send 20 emails at once.
Unfortunately this can cause Reason 550 5.4.6 mail rate exceeded limit
in some email providers.
It would be great if Easymail supports threshold
property, so when we invoke our loop we will have such result:
sending email 0
[... delay ...]
sending email 1
[... delay ...]
sending email 2
[... delay ...]
and so on
play-easymail 0.7.0 attachment support?
Hi, when I try to send email with your application, the body of the email just appears on my console, but I never receives the email. How can I fix this?
Hi
when i try to send mail
using below settings
port=587
auth=true
socketFactory.port=587
starttls.enable=true
user=${user}
username=${username}
password=${password}
getting exception
org.apache.commons.mail.EmailException: Sending the email to the following serve
r failed : pod51019.outlook.com:587
at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1242)
at org.apache.commons.mail.Email.send(Email.java:1267)
at com.typesafe.plugin.CommonsMailer.send(MailerPlugin.scala:241)
at com.typesafe.plugin.MailerBuilder$class.send(MailerPlugin.scala:194)
at com.typesafe.plugin.CommonsMailer.send(MailerPlugin.scala:215)
at util.Mailer$MailJob.run(Mailer.java:214)
at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:94)
at akka.jsr166y.ForkJoinTask$AdaptedRunnableAction.exec(ForkJoinTask.jav
a:1381)
at akka.jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:259)
at akka.jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:975)
at akka.jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1479)
at akka.jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104)
Caused by: javax.mail.MessagingException: [EOF]
at com.sun.mail.smtp.SMTPTransport.issueCommand(SMTPTransport.java:1481)
at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1
let me know if there is any issue with my configuration.
or code would not support Encryption method: TLS
thank you
Rama.
Update to play-mailer 6.0.1 which updates commons-email to v1.5 which fixes CVE-2017-9801 : https://lists.apache.org/thread.html/7ef903a772a2ff08605df1be819044fb15df2815eb3d63878b3fbbb5@%3Cannounce.apache.org%3E
When I send an email using play-easymail, the email is sent to the email address I provide, but the email profile comes up as play-easymail.
Is there a way to remove this? I try using the custom headers to reset it, but this did not work?
Hello!
I was testing my application with my google account as smtp server... I noticed that when setting the account password blank, I don't receive any warning or error and, of course, the e-mail is not delivered. This is crucial for me since I'm storing the e-mails on a DB to be sent again if they were not sent (I keep an e-mail history).
Is there any possibility to verify if an e-mail was effectively sent? If there is, how?
Thanks for the help!
Hi.
could you please make your play-easymail version 0.8.x available on maven central?
Hi,
Is there a way to send email to multiple addresses at once? See code below:
public static Result sendMail() {
final Form<MailMe> filledForm = FORM.bindFromRequest();
if (filledForm.hasErrors()) {
return badRequest(index.render(filledForm));
} else {
final String email = "[email protected], [email protected]";
final Body body = new Body(views.txt.email.body.render().toString(),
views.html.email.body.render().toString());
Mailer.getDefaultMailer().sendMail("play-easymail | it works!",
body, email);
flash("message", "Mail to '" + email
+ "' has been sent successfully!");
return redirect(routes.Application.index());
}
}
Thanks!
Hi,
i am using play authenticate conf ;
Mailer.getDefaultMailer().sendMail(
"Your subject",
"Your text body",
"[email protected]"
);
the class mailer have not method getDefaultMailer, just sendMail() method...
so i use your sample but with debug mode :
mock=false
# SMTP server
# (mandatory)
# defaults to gmail
host=smtp.gmail.com
# SMTP port
# defaults to 25
port=587
#port=465
# Use TLS
# for GMail, this should be set to true
tls=true
#ssl=no
# isSSL=true
.....
i have this error :
Caused by: com.sun.mail.util.MailConnectException: Couldn't connect to host, port: smtp.gmail.com, 587; timeout 60000
with in debug :
DEBUG SMTP: trying to connect to host "smtp.gmail.com", port 587, isSSL false
i tried tls=no, ssl=true port 465 but same problem
thanks in advance for help
Can I attach files (photos) to the email, which I can embed in the body of the email ?
I am trying to troubleshoot an issue that has been occurring to a user on my site.
I am using play-easymail to send emails via AWS SES.
There isn't anything in the framework that would queue a request for an email and send it multiple times a day over a month? Even after application updates and restarts?
Just using:
private static void generateEmailReceipt(String subject, String content, String email) {
final Body body = new Body(content);
Mailer.getDefaultMailer().sendMail(subject, body,
email);
}
Thanks
I was trying to incorporate 0.9.4
into my project, but sbt says:
[warn] ==== sonatype-releases: tried
[warn] https://oss.sonatype.org/content/repositories/releases/com/feth/play-easymail_2.12/0.9.4/play-easymail_2.12-0.9.4.pom
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: com.feth#play-easymail_2.12;0.9.4: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
Hello,
I can't get your plugin with:
"play-easymail (release)" at "http://joscha.github.io/play-easymail/repo/releases/",
"play-easymail (snapshot)" at "http://joscha.github.io/play-easymail/repo/snapshots/"
Are your repo down ?
You have stated in your commit 2ca7b73 that play-easymail 0.7.0 is available on sonatype.
But I can not find it.
Could you upload it to Sonatype?
Since Scala upgrade in Play 2.1 build is not working anymore on 2_1 branch. I get
[error] /Users/seal/github/play-easymail/code/app/com/feth/play/module/mail/Mailer.java:219: error: no suitable method found for scheduleOnce(akka.util.FiniteDuration,Mailer.MailJob)
[error] .scheduleOnce(delay, new MailJob(email));
[error] ^
[error] method Scheduler.scheduleOnce(scala.concurrent.duration.FiniteDuration,Function0<BoxedUnit>,ExecutionContext) is not applicable
[error] (actual and formal argument lists differ in length)
[error] method Scheduler.scheduleOnce(scala.concurrent.duration.FiniteDuration,ActorRef,Object,ExecutionContext) is not applicable
[error] (actual and formal argument lists differ in length)
[error] method Scheduler.scheduleOnce(scala.concurrent.duration.FiniteDuration,Runnable,ExecutionContext) is not applicable
[error] (actual and formal argument lists differ in length)
[error] 1 error
[error] (compile:doc) javadoc returned nonzero exit code
[error] (compile:compile) javac returned nonzero exit code
[error] Total time: 5 s, completed Oct 30, 2012 6:49:46 PM
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.