appwrite / templates

Templates for Appwrite Functions ⚡️🌩️
https://appwrite.io
MIT License
121 stars 87 forks source link

Issue # 78 | Feature: Add Email Contact Form Function for Java #235

Open PalaniappanC opened 11 months ago

PalaniappanC commented 11 months ago

(https://github.com/appwrite/templates/issues/78)

What does this PR do?

Add Email Contact Form Function for Java

Test Plan

https://github.com/appwrite/templates/assets/45911913/9c91e210-c307-4616-9d84-0aef735fb6a5

PalaniappanC commented 11 months ago

Hi folks, I attempted to include HTML files in a separate static folder, but encountered issues accessing them. After seeking advice on the Discord channel, I learned that due to Java being a compiled language, it cannot directly include static and resource files. However, I made an effort to address this by copying the files to the 'src/main/resources' folder within OpenRuntimes, as per Steven's suggestion. Unfortunately, I encountered challenges while doing this. As a workaround, I have added the html content as constant strings.

PalaniappanC commented 11 months ago

Hi @loks0n Thank you so much for taking time to review my PR. I have pushed the recommended changes.

loks0n commented 11 months ago

I've added hacktoberfest-accepted we can merge it when the Java runtime has static folder support

PalaniappanC commented 11 months ago

Thanks @loks0n

PalaniappanC commented 7 months ago

Dicord Name for Hacktoberfest communications : palani_13