Olyno / SkEmail

Skript addon to send emails
8 stars 3 forks source link

Error with your Email skript add-on #16

Closed xyvesu closed 5 years ago

xyvesu commented 5 years ago

<--! To make sure you have all the keys in hand to be able to help you, I invite you to fill out the form as proposed below, including information about your server. Are you ready to go? Let's do it! (just delete wrong informations) -->

**Versions:1.5

I'm using a minecraft server [your minecraft server version] (do /ver in your console) I'm using skript version [your skript version] (do /ver skript in your console) I'm using SkEmail version [your skemail version] (do /ver skemail in your console)

**About the issue: I have already verified that all the necessary operational options are well defined

I got a [java|skript] error:

[18:32:17] [Server thread/INFO]: xyvesu issued server command: /email link ***************@gmail.com
[18:32:17] [Server thread/INFO]: xyvesu [9fcbc189-e03a-4799-821e-15183333affc]: /email link ***************@gmail.com
[18:32:18] [Server thread/INFO]: [SkEmail] An error occurred. Try to check this link and retry: https://github.com/AlexLew95/SkEmail/wiki/Configure-your-email-address-for-SkEmail 
If the problem persists, try to reload your server.
[18:32:18] [Server thread/WARN]: javax.mail.AuthenticationFailedException: 535-5.7.8 Username and Password not accepted. Learn more at
535 5.7.8  https://support.google.com/mail/?p=BadCredentials 61sm34658666wre.50 - gsmtp

[18:32:18] [Server thread/WARN]:    at com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:826)
[18:32:18] [Server thread/WARN]:    at com.sun.mail.smtp.SMTPTransport.authenticate(SMTPTransport.java:761)
[18:32:18] [Server thread/WARN]:    at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:685)
[18:32:18] [Server thread/WARN]:    at javax.mail.Service.connect(Service.java:317)
[18:32:18] [Server thread/WARN]:    at javax.mail.Service.connect(Service.java:176)
[18:32:18] [Server thread/WARN]:    at javax.mail.Service.connect(Service.java:125)
[18:32:18] [Server thread/WARN]:    at javax.mail.Transport.send0(Transport.java:194)
[18:32:18] [Server thread/WARN]:    at javax.mail.Transport.send(Transport.java:124)
[18:32:18] [Server thread/WARN]:    at com.alexlew.skemail.effects.EffSendLastEmail.execute(EffSendLastEmail.java:133)
[18:32:18] [Server thread/WARN]:    at ch.njol.skript.lang.Effect.run(Effect.java:52)
[18:32:18] [Server thread/WARN]:    at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:61)
[18:32:18] [Server thread/WARN]:    at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89)
[18:32:18] [Server thread/WARN]:    at ch.njol.skript.lang.Trigger.execute(Trigger.java:55)
[18:32:18] [Server thread/WARN]:    at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:220)
[18:32:18] [Server thread/WARN]:    at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:182)
[18:32:18] [Server thread/WARN]:    at ch.njol.skript.command.Commands.handleCommand(Commands.java:268)
[18:32:18] [Server thread/WARN]:    at ch.njol.skript.command.Commands$1.onPlayerCommand(Commands.java:163)
[18:32:18] [Server thread/WARN]:    at sun.reflect.GeneratedMethodAccessor82.invoke(Unknown Source)
[18:32:18] [Server thread/WARN]:    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[18:32:18] [Server thread/WARN]:    at java.lang.reflect.Method.invoke(Method.java:498)
[18:32:18] [Server thread/WARN]:    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306)
[18:32:18] [Server thread/WARN]:    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
[18:32:18] [Server thread/WARN]:    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502)
[18:32:18] [Server thread/WARN]:    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487)
[18:32:18] [Server thread/WARN]:    at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1154)
[18:32:18] [Server thread/WARN]:    at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997)
[18:32:18] [Server thread/WARN]:    at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45)
[18:32:18] [Server thread/WARN]:    at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1)
[18:32:18] [Server thread/WARN]:    at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13)
[18:32:18] [Server thread/WARN]:    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[18:32:18] [Server thread/WARN]:    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[18:32:18] [Server thread/WARN]:    at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44)
[18:32:18] [Server thread/WARN]:    at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:714)
[18:32:18] [Server thread/WARN]:    at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374)
[18:32:18] [Server thread/WARN]:    at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:653)
[18:32:18] [Server thread/WARN]:    at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:556)
[18:32:18] [Server thread/WARN]:    at java.lang.Thread.run(Thread.java:748)

My code is:

on command "/sk reload email":
    login to gmail service from mail "***************@gmail.com" and password "********"

command /email [<text>] [<text>] [<number>]:
    trigger:
        if arg 1 and arg 2 are set:
            if arg 1 is "link":
                if arg 2 contain "@":
                    set {email.code.%uuid of player%} to a random integer between 1000 and 9999
                    make new email:
                        set object of email to "Syncronisation à votre compte Minecraft"
                        set body of email to "Bonjour,%nl%Pour syncroniser votre email à votre compte Minecraft, il vous suffit de taper la commande /email verif %arg 2% %{email.code.%uuid of player%}% sur votre jeu Minecraft%nl%Impérial"
                        set receiver of email to "%arg 2%"
                    send last email
                    send "&a&lPour finir votre syncronisation, veuillez consulter votre boîte Email pour obtenir votre code de validation" to player
                else:
                    send "&c/email link <adresse>" to player
            if arg 1 is "verif":
                if arg 2 contain "@":
                    if arg 3 is set:
                        if {email.code.%uuid of player%} is arg 3:
                            clear {email.code.%uuid of player%}
                            set {email.%uuid of player%} to "%arg 2%"
                            set {minecraft.%arg 2%} to player
                            set {minecraftid.%arg 2%} to uuid of player
                        else:
                            send "&cLe code n'est pas valide" to player
                    else:
                        send "&c/email verif <adresse> <code>" to player
                else:
                    send "&c/email verif <adresse> <code>" to player
            if arg 1 isn't "verif" or "link":
                send "&c/email <verif/link> <adresse> [<code>]" to player
        else:
            send "&c/email <verif/link> <adresse> [<code>]" to player

I think the problem comes from [your idea about the question]

Olyno commented 5 years ago

Hey, I saw that my template was not simple to understand, I will fix it. btw, you got error, please read them:

Errors:

from SkEmail:

An error occurred. Try to check this link and retry: https://github.com/AlexLew95/SkEmail/wiki/Configure-your-email-address-for-SkEmail 
If the problem persists, try to reload your server.

from javamail:

Username and Password not accepted
xyvesu commented 5 years ago

I have already check your tutorial

Olyno commented 5 years ago

So your gmail account has its security as low and your password + your email address or wrong?

xyvesu commented 5 years ago

My email adress is true and I had seen your tutorial perfectly

Olyno commented 5 years ago

So try to follow steps at this link: https://support.google.com/mail/answer/7126229?p=BadCredentials&visit_id=636894801073041014-530413494&rd=2#cantsignin

Olyno commented 5 years ago

Inactive, I close.