Olyno / SkEmail

Skript addon to send emails
8 stars 3 forks source link

invalid use of quotes #98

Open Xentyo opened 3 months ago

Xentyo commented 3 months 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: 2.0

I'm using a minecraft server Paper version git-Paper-477 (MC: 1.20.4) (Implementing API version 1.20.4-R0.1-SNAPSHOT) (Git: 1207162) I'm using skript version Skript 2.8.4 I'm using SkEmail version 2.0

About the issue:

I got a skript error:

invalid use of quotes ("). If you want to use quotes in "quoted text", double them: "".

My code is:

on load:
    login to arkadia service from mail "info@arkadiaworld.it" and password "mypass"

command /test:
    permission: admin
    trigger:
        make new email:
            set object of email to "Test email"
            set body of email to "Look my beautiful email my friend!"
            set receiver of email to "mail@mail.it"
        send last email created
Olyno commented 3 months ago

Hi,

Thank you for the report. From your code, my only guess is an issue from your email password. Indeed, if your password includes a # or " character in it, you need to double it, this is how Skript works unfortunately.

Please confirm me if you don't have any specific character in your password which need to double quotes.

Xentyo commented 3 months ago

Ok thank you. I didn't know that the # character could also cause problems. I put it double and and it's solved! However, the emails do not arrive when trying with 3 different services

Olyno commented 3 months ago

Depending on the authorizations and each parameter (imap config in the plugin config file), you could not receive the email, which is normal. You need to be sure of all parameters and if you need to authorize the account login too (like using third party tools).

I only tested on Gmail, but it should work for any Email provider.