I have a job portal website that is designed in blogger. I want user Upload resume send to my email. Here is my code.
<form action="https://examples.webscript.io/attachments/file"
method="post" enctype="multipart/form-data">
<input type="text" name="email" value="rajkumar23@gmail.com" style="display:none;"/>
<input type="file" name="attachment" />
<button type="submit">Upload</button>
</form>
<script type="text/javascript">
local SERVER = '<SMTP SERVER>'
local USERNAME = '<SMTP USERNAME>'
local PASSWORD = '<SMTP PASSWORD>'
email.send {
server=SERVER, username=USERNAME, password=PASSWORD,
from='hello@webscript.io',
to=rajkumar23@gmail.com,
subject='Webscript demo: file attachment',
text='This is an automated email from a Webscript example. '..
'(https://www.webscript.io/script/examples/attachments/file)',
attachments = { request.files.attachment }
}
return "Email sent."
</script>
After send the file it shows 500 internal server error. How to solve this issue. Is there any code without using php. I want to design file in html and javascript. In blogger php script is not support.