Hi there !
I'm trying to send an email with Appwrite function and PHP Mailer.
On my server I executed this file (Not in Appwrite function):
use PHPMailer\PHPMailer\PHPMailer;
require_once 'vendor/autoload.php';
$mail = new PHPMailer(); // Create new PHPMailer
$mail->isHTML(true);
$mail->Encoding = 'base64';
$mail->CharSet = 'UTF-8';
$mail->IsSMTP(); // enable SMTP
$mail->SMTPDebug = 1; // debug: 1 = errors and message, 2 = message only
$mail->SMTPAuth = true; // Enable SMTP authenticate
$mail->Username = "test@email.fr"; // SMTP username
$mail->Password = "password";
$mail->SMTPSecure = 'PHPMailer::ENCRYPTION_STARTTLS';
$mail->Host = "pro2.mail.ovh.net";
$mail->Port = 587;
$mail->SetFrom("test@email", "test@email");
$mail->Subject = 'Test Email';
$mail->Body = "Hi !";
$mail->AddAddress("tested@email.fr");
$mail->Send();
and everything work fine.
But when I tried the same code on Appwrite (self-hosted), I got Could not connect to SMTP host.
Do you have an idea why ?
I have also met the same situation
Did you find something to solve this issue ?
not yet, this issue has blocked me for a while
@VincentGe can you take a look at this?
@BugProg As a sanity check, see if you can do something like pinging Google or this host pro2.mail.ovh.net
Recommended threads
- `type 'Null' is not a subtype of type 'b...
When creating a new file using Appwrite Flutter SDK, the file is successfully created on the server, but the client throws the following exception: ``` type ...
- Console: Query on attribute has greater ...
I noticed an issue when one of my tables reached over ~800 rows. That table is relational to my users table Within the console I am able to view the table with ...
- Appwrite 1.8.1 - Traefik Returns 404 Due...
Problem: Fresh Appwrite 1.8.1 installation returns 404 on all requests. Traefik can't communicate with Docker daemon. Error: Error response from daemon: client ...