```javascript
import { Client, Projects, SMTPSecure } from "@appwrite.io/console";

const client = new Client()
    .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
    .setProject('<YOUR_PROJECT_ID>'); // Your project ID

const projects = new Projects(client);

const result = await projects.updateSMTP({
    projectId: '<PROJECT_ID>',
    enabled: false,
    senderName: '<SENDER_NAME>', // optional
    senderEmail: 'email@example.com', // optional
    replyTo: 'email@example.com', // optional
    host: '', // optional
    port: null, // optional
    username: '<USERNAME>', // optional
    password: '<PASSWORD>', // optional
    secure: SMTPSecure.Tls // optional
});

console.log(result);
```
