EmailAPI
EmailAPI is a simple API for sending emails. If you've ever wanted to easily send an email within a plugin, EmailAPI abstracts away the complicated stuff and gives one simple class. Learn how to use it here.
EmailAPI is a simple API for sending emails. If you've ever wanted to easily send an email within a plugin, EmailAPI abstracts away the complicated stuff and gives one simple class. Learn how to use it here.
@ferrago
I don't mind what happens with the source. Feel free to do as you wish.
@PogoStick29 Don't suppose this is open sourced?
I have just updated EmailAPI. I removed the old files, tutorial, and description and redid all of it. Once the new version 1.0 is approved, you can actually write emails.
Hello sry for my bad englisch. Used please my API its worked for me. I have developed as a Plugin! The Api is very big about the important functions is really easy to understand
the true parameter is for ssl authentification when you wish not ssl authentification use either false or you can exclude the parameter. and 25 is the smtp port. WBukkitEmailEssentialsAPI.getWEmail().email("smtp.creativeloper.de", 25, true, "[email protected]", "mypassword", "[email protected]", "This is my subject", "This is my body!");
http://demon-craft.de/download/WBukkitEmailEssentialsAPI.jar
ANY SIMPLE PLUGIN?
Need command like /register <yourmail>
ONLY THAT PLS HELP!!!!!
@PogoStick29
PLEASE update as soon as possible! I need the API!!!
EmailAPI is not working right now. Stand by for an update.
Quick question : Has anyone just made a simple plugin using this that just bounces an email to a list of email addresses when someone logs in? I have a pretty big need for that right about now - just didn't know if someone did it already (I've been searching).
Hmm, I'm getting this error. I've installed the plugin in my plugins library and in /plugins map.
@PogoStick29
I'm not making any specific implementation suggestion as Java isn't my area of expertise. I am concerned that if I write a plugin that uses this and it sends a mail while the server is running, the server will be unable to complete any other task until the message is sent. If the recieving mail server is being slow, this could seriously affect game play.
This documentation does not specifically say the method is non-blocking. http://javamail.kenai.com/nonav/javadocs/javax/mail/Transport.html#send(javax.mail.Message)
This post seems to suggest that sending mail could be done using a runnable as new thread, and that it may be prudent to do so. http://www.jguru.com/forums/view.jsp?EID=391220
@zangetsu_MG
Are you saying I should make a class that implements Runnable and have it start that thread?
Is this a blocking or non-blocking call?
More specifically, when emailapi.email is called, does execution return immediately allowing the server to continue uninterrupted while the mail message is sent by a background worker thread?
The API wont work for me :/
@javoris767
I responded to your thread ;)
Getting startup errors :/
Error: http://pastebin.com/e4G3FABu
Code: http://pastebin.com/XZEfDB3q
<3 Thanks soooo much for this.
@KeybordPiano459
The username and password are for the account you are using to send the email.
So I'm testing this on a server, and when I type the command, it says a huge stack trace in console, along with password not accepted. Does the username/password have to be the email that is sending the email, or the one receiving the email?
Wait nevermind, just realized that you have support for all emails, just need to find the SMTP server D:
Can you add support for texts? For example, sending an email to [number]@txt.att.net texts that number, and I think it would be awesome if EmailAPI had this feature. I'm a developer, and I'm trying to incorporate this in a private plugin for my friends and I to use.