How to send an email from my site?

I am working on a site. I am new to this area. I made one site, but I have a problem in the form of "Contact us".

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

+4
source share
4 answers

If you want to send emails from a form, it would be nice to know about server-side scripting.

First, I found out what software you installed on your current server. For example: this is a Linux server with Apache, MySQL, PHP, Perl, etc. Or is it a Windows server with ASP.Net etc. You can find this from your host provider.

For security reasons, I would not recommend writing your own script to send emails until you know what you are doing. There are freely available scripts that do this well.

Tectite FormMail is one example if you have PHP

Then you will need to upload the necessary scripts to the web server. Typically, FTP access to the server is provided for this task. And use the appropriate HTML to link to the script.

As an alternative:

There are options for forms that can be verified, so you no longer need to understand server scripts. (this means that some other web server does all the email that you manage is HTML)

Below is a list of several hosted options.

Edit: Here is the best list of posted options.

+1
source

You can use the cgi script form processor on the web server to send an email.

0
source

Your understanding of how email is sent seems incomplete. E-mail will not be sent automatically, simply by clicking the submit button (thereby sending the form). The form should be submitted "something", where "something" is a program that will process the data submitted using the form and do the necessary things to send data by e-mail.

I don’t know which programming languages ​​you are familiar with. If there is something you are using, you need to figure out how to write a CGI script to process this script using your favorite language,

0
source

This usually depends on the programming language or web structure that runs your website. However, I know about one cross-platform mail program, you can send it to the address "dpost send mail from web site". This method allows you to send e-mail from any language or framework. It can serve for a company that manages multiple sites in different languages.

0
source

All Articles