I want to send mail from java application using javamail through Office 365, which I am able to do.
Now my requirement is that I need to send mail using some template which is already created in Office 365 account.
Moreover I need to add some customized data on the mail template(like mail merge), which I am not able to do.
Can we send mail through javamail using some already created mail template? If so please help me how to do it?
Thanks.
Related
I want to create a restlet service in Java that sends e-mail to the user, I know how to send e-mail using amazonaws service, amazon provides aws-java-sdk.jar to configure all the settings. But now I want to send e-mail using webmin's Sendmail Mail Server.
So my question is: Is there any jar provided by webmin to configure and send e-mail? if NO then,
How can I configure the webmin's Sendmail Mail Server to send e-mail using Java restlet service?
Any help is welcome, it would be great if someone provide any link OR tutorial for this.
I am using mailtrap.io to test email notification functionality in my application using Java Mail API. It is working perfectly fine.
I need to check if an email notification is being delivered to multiple recipients. Not sure how do test it using mailtrap. Do i need to signup in mailtrap to create another account? Do i need to use that account's credentials also?
You can use forwarding emails, which will work as whitelist inside inbox settings. If Mailtrap will found this emails inside mail header, it will forward this email.
I have developed an app with a login. To help users I would like to send a mail reminding their credentials.. 2 solutions but 2 problems:
1) If I send the mail from the mobile phone (using my gmail account and mail.jar library) Google always reports a possible violation of my account or a suspect access, blocking it. I read several forum page about remove this feature but some people say that Gmail is built to be used by a single person
2) If I send a mail from a php page (using the function mail($mailto,$subject,$message,$header) several mail server put automatically this email into the trash folder.
Any suggestion? How to solve this issue?
Thank you in advance
You could send mail in java (mail.jar or mailServices of Spring Framework). I suggest you to use a mail provider service to send mail. It's better because there many things to care with when you send email ( email does not exist, delay of receiving the email, the current status of email sent, received or read...)
I have a use case where i need to read the content of the mail in outlook inbox and convert it into xml and send it to diffrent system.Is there any library which can help me in parsing the content.
Outlook is the client for the email server.(May be exchange server).
You actually need to connect to the server to read the email.
If you know the server, you can find a API for it.
Checkout this URL if you are trying to access the exchange server:
http://archive.msdn.microsoft.com/ewsjavaapi
I have been using Java mail API to send mails generated through the Java program. What I want to do now is to send a mail through Thunderbird mail client so that the mail get saved to the sent items folder of the user and the user can resend a mail if it has failed.
I also would like to know if it's possible to get a delivery report in the Java mail API.
Edit
I found out that our mail server is POP3 and it doesn't store mail. So is it a good idea to send another mail to the sender as well and define a rule that categorize those messages?
even if you send it with the java mail api (well gmail at least), you will still be able to see in the sent folder using thunderbird. as a matter of fact, 5 minutes ago, I saw this using a website that I build. I am sending emails using Java API, and when I check the send folder I can see them.
The InBox / Outbox in Thunderbird are normally mapped ti your IMAP-Account. The IMAP-Account is set on a mail server. All your mails and folders are stored on that mail server. the client (Thunderbird) only shows the contant from the server. By remote calls (IMAP-protocol) you can create/delete/edit/move folders and mails on the server. Sending a mail is not part of IMAP. Here you use the SMTP-Protocol. When you configure a mailaccount in Thunderbird you must configure IMAP & SMTP. When you send a mail Thunderbird does the following steps:
- Send Mail by SMTP-Protocol
- Create Mail in Outbox by IMAP-Protocol
SMTP & IMAP are totally different. But if you want to send a mail and see this mail in your outbox you must use both. You can program the same workflow with the java mail api.
If I get your question right, you are looking for a way to trigger mail sending via Mozilla Thunderbird from a Java program (an external program / software running on the same local machine).
You can achieve that via different methods:
calling the Thunderbird binary with command-line arguments
via SimpleMAPI, which Thunderbird supports
via XPCOM, also built into Thunderbird
What you won't be able to achieve easily is getting feedback from Thunderbird about the outcome of triggering / prompting the user to send a mail. But you could achieve that by using more difficult ways of integrating Thunderbird with your external software:
read and parse the actual MBOX inbox / mail sent / profile files in a user's profile. "using the X-Mozilla-Status headers (you could) figure out if a message is a new message (etc). A mbox file is essentially just a flat text file that has a seperator between the messages" (parentheses by me, source)
Write a bridging WebExtension Thunderbird Add-On that integrates in some way with your software. An extension has, via Thunderbird's WebExtensions API, essentially a hook for every feature Thunderbird has and your code Add-On could expose these internals in some way to your software.
AFAIK and sadly Thunderbird, as it ships, exposes no API or similar interface out of the box.