Building a Webmail Client with Wappler

Can someone point in the right direction on building a webmail client with Wappler to send and receive & send emails over IMAP and SMTP and obviously show emails - if that is even possible.
What does it entail? Its not a simple thing where you connect a DB and build a front end - its more than that.

Is it just an interface to an email service like gmail or are you planning on running the mail server?

If it’s the former it is just about using APIs if it’s the latter don’t. Not worth it at all. Hosting email is one of the most complicated and operations demanding things.

Have a look at following thread:

I only need the possibility to read eml files so this is a bit different, but didn‘t find out how to create a custom module for nodemailer/mailparser.

Read/send emails from an existing email server.
One would enter their credentials and server info and be able to manage their emails on browser.
I doubt there is an API that will allow to do this!

1 Like

not looking to read .eml files. but thank you!

If it’s node nodemailer package will help you send and parse emails via standard mail protocols (SMTP, IMAP, POP3…)

1 Like

that sounds like a good starting point. thanks Jonas.
but it seems it is for sending emails only: https://nodemailer.com/about/

Check this out:

https://nodemailer.com/extras/mailparser/

1 Like

I may be misunderstanding by Nylas is api based email infrastructure and what we planned on using.

I am guessing he wants it to be standard IMAP/SMTP so it works with any standard email server.

2 Likes

What platform is the site hosted on? We did something similar using the WHM/CPanel API which allowed us to create, view, and send. Even account creation was possible.

Example: https://documentation.cpanel.net/display/DD/WHM+API+1+Functions+-+fetch_mail_queue

A few years back so am sure things have improved… I’m sure Plesk and other have similar API’s. Google definitely.

wouldn’t want to use cPanel.

Hi @nshkrsh did you end up with a solution for this?

1 Like

I never see this thread before! I missed it. That a would be very interesting for me too!

1 Like

Currently exploring nodemailer and rabbitMQ for scheduling - so very interested to hear how nshkrsh has gone.

Did you try IMAP API?

https://imapapi.com/

It is a project from nodemailer and seems can allow you access IMAP with rest api …

2 Likes

Nice find! Checking it out.

Sorry, haven’t been able to get around it yet - priorities have changed for now - I guess it’ll be some time before we actually get around it! But will certainly keep posted on however it goes when we get around it.

2 Likes

Can you imagine having possibilities to process incoming emails saving attachments on S3 and update the client Crm automatically

This can be done. We have done email processing outside Wappler and integrated just the email viewing, sending and replying parts (with attachment support) from inside a Wappler project.
That project uses many outside resources and APIs (S3 is used but not from Wappler).

But, with custom modules it can most likely now be done in Wappler too. And with NodeJS, schedulers can be used to process emails periodically too… all from a Wappler project.

2 Likes