
You weren't running the docker container?

Ok. I will edit the file

You ran PHP unit from your host machine?

No no. When my testing failed in docker container I tried testing it in my local machine.

Yes when testing manually.

You can't do this because the environment variable wouldn't be set

In my docker container after running the container. I used this command for testing docker exec -it messaging-tests-1 ./vendor/bin/phpunit tests/e2e/Email/Smtp2goTest.php

Oh I see. Then how can we test it manually?

If you're testing your code, the best thing to do is test it in docker.

But what you should do before that is make sure the values you have are correct

Do you have telnet and openssl on your machine?

I understand. It failed there hence I tried testing it that way.

No I don't. Should I install it?

Eh I dunno. Find some way to test the SMTP settings. Maybe use some mail client or download some tool

Ok sure. So my code didn't have any problem? It's only the SMTP credentials ?

I still think it's a problem with your ISP

I see. I will try using some other network then.

Hey @Steven , I just tested my code again using docker compose and while the test email is being successfully sent from my SMT2GO account I am getting error from my php code. What is the reason?


Look closely at the message and look closely at the test


@Steven I tried identifying the problem, but I am not finding any solution. I don't understand why the test is failing when the email is being sent!

check for a few things:
- the result message you are returning after send op.
- the assertion check you are validating against the result
- the result message you used for comparison
these pointers should be enough i guess.

Please close this issue. I have solved it. @Steven

[SOLVED] SMTP2Go Test fails
Recommended threads
- Is p-limit compatible with Appwrite?
I have a function that makes asynchronous calls to different Appwrite collections. This is how I make the call: ```js await Promise.allSettled([ ...
- Appwrite custom domain verification fail...
So I've left enough time for the records to propagate and I've tried adding in a subdomain for the appwrite endpoint so as not to cause a clash with two CNAME r...
- No mails from Appwrite
Hello, Since severals days, i have a problem : i d'ont received any mails from Appwrite. I'm using the auth by mail and i don't any code so any mails from App...
