Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I send email from my website? [closed]

Tags:

email

web

I am working on a website. I am new to this field. I've made one website, but I have a problem in the "Contact Us" form.

In this form I made four textboxes, one "reset" button, and one "send" button. The problem is that when I click on that button, mail is not sent. What code do I have to use to send email?

like image 571
Jeyson Avatar asked Sep 23 '10 04:09

Jeyson


People also ask

How do I email a saved Web page?

Email This comes with a nifty keyboard shortcut to make saving web pages easier. Hit Ctrl + Shift + U (on Windows/Linux) or Command ⌘ + Shift + U (on Mac) to activate Email This and send the current page via email.

Can we send email from frontend?

The mailto link is the easiest way to send an email from a front-end Javascript app. Put the email address you're sending to after mailto: as part of the string.


1 Answers

If you want to send emails from a form it would be a good idea to learn about server-side scripts.

I would start by finding out what software you have installed on your current server. Eg: is it a Linux server with Apache, MySQL, PHP, Perl etc... or is it a Windows server with ASP.Net etc... You can find this out from your host provider.

For security reasons I would not recommend writing your own script for sending emails until you know what you are doing. There are freely available scripts that do this fine.

Tectite FormMail is one example if you have PHP

Then you need to be able to upload your required scripts to the web server. Usually FTP access to the server is given for this task. And use the appropriate HTML to communicate with the script.

Alternatively:

There are hosted form options that may be worth checking out so you don't have to learn as much about server scripts. (this means some other web server does the email part all you manage is the HTML)

Here is a list of a few hosted options

Edit: Here is a better list of hosted options

like image 140
Chris J Avatar answered Sep 27 '22 19:09

Chris J