Git Product home page Git Product logo

mailw's Introduction

MailW

AppVeyor release author Bukkit

WHAT CAN IT DO

Have you ever imagined linking the whitelist and activation code? Have you ever thought about delivering weekly reports to players? Have you ever thought of sending banned players a banned notification? ...Now, MailW can help you solve these problems. MailW is a pre-plugin that supports custom html mail. With only a little Bukkit programming experience, you can continue to develop on the basis of MailW to achieve your unachieved goals. To help you better manage your server, MailW supports the use of specific placeholders to replace variables in the Bukkit API to easily embed player names and other content into emails.

COMMANDS

MailW

## If you want to use these commands, you are supposed to have permission "MailW.general"(Give all by default)
/MailW set <Email> -- Record MailW mailbox
/MailW remove -- Remove MailW mailbox records

MailWController

## If you want to use these commands, you are supposed to have permission "MailW.admin"(Give op by default)
/MailWController set <Email> <SMTP> <Port> <Password> -- Set the sending email
/MailWController send <Player> <Template> -- Send specified template emails to specific players

EMAIL DESIGN TUTORIAL

  1. Create a folder in the /plugins/MailW/template directory, named example, and create a new file named index.html in the folder.
  2. Use notepad (more professional editor is better) to open index.html.
  3. Enter the following code.
<!--Specifies that files are encoded in UTF-8 format-->
<head>
    <meta charset="UTF-8">
</head>
<!--Set the email subject based on the content in <title>...</title>-->
<title>Example</title>
<!--Set the email subject based on the content in <sender hideen>...</sender>-->
<sender hidden>YourName</sender>
<!--Since it is an email, the contents of <titile>...</title> and <sender hidden>...</sender> are not visible, and the rest of the content will be judged as the body of the email, you can use inline style-->
<body>
<h1>{{player.name}}</h1>, If you see this email, it means that <b>MailW</b> has been able to send mail normally on your server
</body>
  1. Enter the server and enter the command /MailWController send <YourName> example (If you have never set up MailW or you have never set up your own mailbox, please follow the COMMANDS section to set up before you send the example email).
  2. Open your mailbox, you can see the mail sent by MailW to you.

DOWNLOAD

Version Bukkit Content Date Address
1.3.0 1.13+ 1.13+ Supported 2020.7.13 Download
1.2.0 1.12.2 Bug fixes, support sending emails to offline players 2020.7.7 Download
1.1.0 1.12.2 Simplify plugin commands and update API 2020.7.7 Download
1.0.0 1.12.2 Init Project 2020.7.2 Download

FAQ

  • Why the Chinese email I send is garbled

That is because the default encoding follows the system encoding when using the JVM, please add -Dfile.encoding=utf-8 after java in the startup script, but this will result in garbled characters on your server terminal, so I suggest to use the form of pictures instead of Chinese and full-width characters

  • Why did I enter the correct email password, but still can't send email?

Some mailboxes do not use passwords as SMTP sending passwords and require authorization codes

  • Why ordinary port 25 is not available in some mailboxes

For example, the SMTP service of Ali mailbox, port 25 is blocked, you need to use SSL support port 465

  • How many placeholders support MailW and what are they

You can see them in HERE, for example, if you enter {{player.uuid}} in your template file, it will be replaced with the uuid of the target player, which is very flexible

  • How can I rely on MailW for development

See Development Manual in Wiki for details

mailw's People

Contributors

elabosak233 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.