Hi,
I’m doing a simple HTML page hosted on MIAB. This question is for a Submission form that I want all form details sent to email also hosted on MIAB.
I was wondering if there is a simple way to use API to send an e-mail from an HTML submission form without using PHP code just HTML/CSS?
I found a good solution using only HTML and POST https://formspree.io/my@email.com. It’s working great, but because I would like to keep my form details from third parties would be best if I figure out a way to do it on my MIAB.
Yes. I know I can use PHP and it’s already there I just want to do it without it if possible?
MIAB API examples are only for creating/deleting/listing/privileges on the e-mail and DNS changes, are there any hidden API’s one not listed?
If MIAB does not have API or it’s not very easy to accomplish this functionality what about NextCloud API?
I’ve got a testing form working using only HTML/CSS & free API’s https://formspree.io.
it looks like this: https://lambev.pro and it works, but will probably go back to your suggestions and use PHP, I just wanted to accomplish it maintain the privacy of the sender using only MIAB via HTML/CSS/javascript if possible.
I’ve adapted the form from W3School and just changed to what’s below: form method=“POST”… also CSS code is there.
I just want to say that I really recommend against putting any custom source code on a Mail-in-a-Box since it’s easy to create security vulnerabilities this way that could open your box up to abuse.
If you’re super into adding potential security vulnerabilities and still want to do this a simple google search for any appliance that goes from SMTP to REST would lead you to something like this MailIt https://github.com/dthree/mailit
Hey, it’s their blacklisted domain, right? I mean at the end of the day technically a 60 character API key is likely as hard to brute force as SMTP with Fail2Ban.