Can someone explain how to send mail in development mode from the gwt jetty
The mode does not matter. The mail is sent on the server-side. You can use commons-email to send emails from a servlet of yours. Check the user guide for a simple example. Note that you will need an SMTP server. For test purposes you can use your google account.
It's nothing about GWT because it runs on the server-side (pure java code) and you can use all the api that written in java. Have a look at java mail api
Related
I am going to implement webRTC for voice and video call, for this i would be needing a signalling server first.Can anyone please send me some links or some guidance for the implementation of the signalling server using java.
If you want to build signalling server using java, you can use sip servlet.
Sip Servlet
A SIP servlet is a Java programming language server-side component
that performs SIP signalling. SIP servlets are managed by a SIP
servlet container, which typically are part of a SIP-enabled
application server
See also mobicent implemention on sip servlet mobicent
And also see JainSip for signalling server JSIP
I am not sure about java. But you can try node.js(JavaScript) and socket.io to set up a signalling server.
Go to the signalling section of the following link:
http://www.html5rocks.com/en/tutorials/webrtc/basics/
If you want to try java, try setting up a websocket server to handle data from browsers.
Personally, I prefer to use PeerJs (Javascript) as the signally server. Peerjs is built on node.js and provide a lot friendly API for user to implement signalling.
I have no idea whether you can do it with JAVA. But JavaScript seems a better choose to build a signalling server.
To implement a signalling server, This tutorial should be a very good example about how to do it with Peerjs and Crosswalk.
You can also have a look at RestComm http://restcomm.com/ and https://github.com/Mobicents/RestComm.
It already contains :
a WebRTC client : http://www.telestax.com/livechat-and-video-call-with-restcomm/
a WebRTC Client Side Javascript framework
an Android SDK https://github.com/Mobicents/restcomm-android-sdk/
an iOS SDk https://github.com/Mobicents/restcomm-ios-sdk.
Of course, everything is open source so any contributions are welcome ;) !
I am new to spring.I had a doubt regarding sending mails.How can i send a bulk of mails from spring based web application in which i have a requirement in my project.
I have no idea on this please suggest me something which is helpful
Thanks in advance
you can send bulkemails using spring and it also offers scheduling a mails to multiple reciepts refer this example
refererence
You can also go through some of the real sites which are already exists and using for marketing with bulkmails check this
so that you can get an idea to work on your requirements
I usually offer some code but in this case I would just copy-paste from this tutorial.
Spring has very little in terms of mailing support (which is found in the context-support module), which itself is just a wrapper over the javax.mail package.
I would use a service like Amazon SES, which helps keep your email messages out of spam boxes.
Install an MTA (like Postfix) in Satellite Mode on your local machine. This will relay emails to Amazon SES.
Use JavaMail to send email messages to localhost, and they will go to your MTA queue, and get sent to Amazon.
Make sure you are complying with anti-spam legislation: http://www.business.ftc.gov/documents/bus61-can-spam-act-compliance-guide-business
I want to be able to send/receive mail from my Java Server application. Is there a standard tool chain to use? [The main thing is that I am writing an enterprise web app in Java, and I need a way to (1) send emails that contain authorization codes and (2) receive complaints.]
Thanks!
EDIT: I apologize. This is entirely my fault. I was not clear in the spec.
When I say send/receive emails, I meant: I need my application to be able to run it's own mail server. I don't have an external imap/pop3 account I'm using. My application need to provide the mail server.
The Apache James project might be a good starting point. It is a full-featured SMTP server written in Java. I am certain it is possible to interface other Java applications with James and/or write James extensions.
what you're looking for it's java mail and it's compatible with EE here's the link
Sending and receiving EMails you can do with the help of Java EE standard JavaMail API. If your application is spring enabled, you can use org.springframework.mail package which has some good abstraction utilities. Apart from this you need to have MTA(Mail Trasport Agent) like James as mentioned above.
Definitely a good alternative is Java E-mail Server (JES) at http://javaemailserver.sourceforge.net/. It's a full blown server for sending and receiving mail. "JES is a multi-featured hybrid MTA/MDA server written in the java programming language."
I have a feature in my web app like I have to send mails from the server to many email ids (some kind of notification stuff)
my web application is implemented in struts2. Possibly I have to use javamail api i guess. I am completely new to this javamail and sending mail from server. what basic steps I need to do to setup a mail server in windows, contact the server from my java web app. What api i should I use ?
The web has very limited tutorials on javamail and they are damn complicated too.
Is there any other api other than javamail by which I can send mail from my java struts2 web app.
thanks
I suggest you use Mercury for your mail server. The javamail API is pretty straightforward. Just create a utility class to simplify the javamail API further.
for this use smtp in your jsp page...
for more refrence go to www.java2s.com
I have developed an application that sends out mails and SMS. My question is How to send well formatted mails using Google App Engine for Java, Please suggest me anyone.
Thanks,
Abhijit
You send the e-mails using GAE mail service, of course.
If you're asking about formatting, one way to do it is with a Velocity template. This will give you a nice mail merge feature as well: populate the template with values from a database and send out your messages.
in addition to duffymo's answer you could try freemarker or StringTemplate that are other well supported and well documented Java Templating Libraries.