How to create mailer service in Java - java

I'm working on webApp which one's feature will be to send invitation links to users by emails. I read about JavaMail but when I was testing this solution I noticed that it was working very slow. I was sending emails by my private gmail account and each email before send was authenticated and making this all magic staff which takes a lot of time.
So my questin is - how to do it properly? How to send thic invitation links faster? Maybe I need to buy some external smpt service or something like this? I'm totally newbie in this things so please just show me the way.
Thanks

Related

How to send a chat message to microsoft teams user from an external system upon event?

I need help with Microsoft teams integration. I have an system from which I want to send chat message to a particular user in MS teams upon an event in my system. How do I go about implementing this. The teams graph api documentation is not looking clear to me. Like it has body but no head and tail. I'm confused on where to start for this. I understand I need to use Graph API's create/send chat api to send messages but it says I need to configure a delegate user for this? How do I send messages on behalf of a external system? Can I can use Teams Java sdk based application? Or I need to create a bot? But I think it's for one-2-one conversation is it? I only want to send a one way message from external system to user. Someone with experience in this pls help me on a good approach for this.
All I want is to send chat message from external system to a user in teams.
You cannot use Graph API in this scenario if you want it on behalf of External system. The API is only available when you are having delegated permission.
Other option would be to create a Notification only bot. In this case please keep in mind that the bot needs to be installed in Teams of user you want to send notification. You can use this graph API to install bot in user's Teams- Install app for User.
Once it is installed you need to have user's Conversation.Id and ServiceUrl (maybe store it in database for all users). When you are done with everything you can send Proactive messages.

Android app - retrieving messages from Gmail

I'm a beginner learning android app development.
I have a requirement for a user to be able to Read messages (just the body content - text only) from a Gmail account (Read-only mail extraction?) and save the email content within the app.
I don't need to retrieve messages when the user is not actively using the app.
The app and SQLite database I am building sits on the phones internal local storage. I do not have a backend server.
I have looked at the Gmail API tutorial here: https://developers.google.com/gmail/api/guides/
As I understand, I need to use the Gmail API and ensure that a user of my app can authenticate as a Gmail user.
Is anyone able to advise:
1) if this is feasible to do without a back end server?
2) any tutorials as to how to approach this, or would you recommend just working through the material I listed above?
3) (I understand this is highly subjective) how substantial a task this is to undertake for a learner (This is an educational project, so I am limited by time - if it takes me more than 3-4 days I will run out of time!) An idea as to how long it might take someone who is experienced would help me to grasp the scale of the task.
Google uses Oauth2 to authenticate and track applications connected with a user's account. You will need to get a security key for app from google. Because you do not have server, you will want to get a client only key and not the service key. You can get the client key by going to the Google API Console. For help about how to let the user sign-in to their account you can look at this Android tutorials here. After you get the google sign-in working you can continue on to getting the Gmail messages.
It may seem like a complicated process, but you should be able to have in working in a short amount of time if you go through the tutorials on Google's developer's site. I got a similar app working in only about an hour. To add a nice user interface will take longer, but thats up to you.

Openfire plugin servlet

I'm trying to write an OpenFire plugin to support Apple Push Notifications. My plan is that I want the client (iOS app) to send its token to my plugin servlet once the user logs in.
So far all I have seen people doing is add servlets for the Admin console, but my servlet is not for the admin console, it's supposed to be for my actual chat client. I just want the client to send me the token so that I can store it mapped to the logged in user, so keep in mind that I need to be able to get the currently logged in username. Does anyone know how to go about that? I'm new to OpenFire so please be patient. Thanks.
After doing tons of research, it so happens that Servlets is not what I was supposed to use at all. Instead, for this kind of scenario I should be using IQ Packets, which are part of the XMPP standard. Everything revolves around IQHandler: http://www.igniterealtime.org/builds/openfire/docs/3.8.2/documentation/javadoc/org/jivesoftware/openfire/handler/IQHandler.html

Send Facebook Message using Spring Social

Is it possible to send Facebook Messages (NOT on their wall, but a "Message") to friends using Spring Social?
If yes, which API do I use? If there is no such support in Spring Social, what's the best way to do so from a Java application?
The best way out that I could think of is to send an email at the ID : {facebook-id}#facebook.com, as it ultimately sends a Facebook message to the user.
For what I know, Facebook doesn't allow to send messages (and also asking friendship) with its API. So I think that you can't send messages to Facebook in a clean way. What you can do is make a bot that navigate the page on the server side and click buttons without user interaction. But I think that it's not so legal...
I would take a look at this site
http://www.springsource.org/
This website has all the information you need to get started with SpringSource. Here's a link to their forums
http://forum.springsource.org/index.php

creating an email account on mail server by mail api

I am creating a web application in which i need to create a form by which user can create an email id on mail server. This is like any email service provider do, like gmail(for creating an email account on their site).
I am new to java mail api. Can anyone provide any hint for this.
Any help will be appreciated.
Thanks...
Actually what i want is a sign up form like what gmail or others provides to create an email id account on their servers.
for developing purpose i m using *hmailserve*r.
manually i can create email ids on this server but i want this in programmatic way.
I don't think JavaMail will help here. First, it depends on the mail server you use. Every mail server has different ways to manage user accounts. For example with Postfix you can manage user accounts in a MySQL database (like in that tutorial). Then you just would have to create database entries. Other mail servers may manage the accounts in a textfile.
AFAIK you can't do it using java mail api alone, you'll need and API for the specific mail server you are using.
Java Mail API will help you out in this. Try these links:
http://www.mkyong.com/java/javamail-api-sending-email-via-gmail-smtp-example/
http://javamail.kenai.com/nonav/javadocs/index.html

Categories

Resources