How to use mail in replit in php from an html forum

if i use the mail() function it wont work and wont send the email if i use phpmailer its the same my php code using phpmailer: fork it solve the issue and send me the fork link

Replit isn’t setup for SMTP/POP3 so you have to use another SMTP server. Most popular one I’ve seen is using Google’s SMTP server with an app password


i am using google smpt how to use it in replit

Hi @shamilpallath have you had a look at this post?

Although it is Python the idea is the same. Hope it helps point you in the right direction.

1 Like

let me check i know python

There is a day in 100 Days of Code, I belive it is Day 97 or 98, that covers the portion about sending emails through Python, as well as app passwords from google. You can check that out.
From the tutorial on 100 Days of Code, I have edited it to make an email sender. Link:

thank you i tried using python flask and it worked

how to close this topic and mark as you solved it

On my reply, click the checkbox
Mark it as solution

where is the checkbox

It is below the text of the message

Click the 3 dots at the bottom of the message.
Then, click on the box with a tick.
This is to mark it as a soution.

i cannot see that i think its cause i am a new user

I have privately messaged you.

Can a moderator or admin mark the aforementioned reply by me as a solution and close the topic? The creator of this topic is unable to do so and they want to do so.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.