Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 92995
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T23:16:29+00:00 2026-05-10T23:16:29+00:00

What techniques are available for sending an email via a webpage or a form

  • 0

What techniques are available for sending an email via a webpage or a form on a webpage?

I’ve got some background idea that you POST the form data to a script but I’ve don’t really know what a cgi script is (I’d love to learn if this is the suggested method!) or what the current practice is.

This is just to provide some way for users to contact the operators. The in-page form seems like it would be easier on the user than ask them to open their mail client. I was also concerned about bots harvesting the contact email address (in the case of mailto: links).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T23:16:30+00:00Added an answer on May 10, 2026 at 11:16 pm

    When you submit a form, the data in that form gets sent to the server-side script. For example, in PHP you access that data with the $_POST array, the <input name=''> becomes the arrays index.. For example..

    // <form action='mailer.php'>[..]<input name='subject' [..]><input name='content' [..]></form> echo('The subject is: '. $_POST['subject']); echo('The content is:' . $_POST['content']); 

    At the most basic level, all you have to do is use your programming languages built in mail function. Again, in PHP this is simple mail():

    mail($to, $subject, $message); 

    You would just set $to to your email address (Do not allow the user to set this, or they are able to send mail as ‘you’, to anyone – ‘spam’..), $subject and $message would be set form $_POST[]

    Before you go any have a HTML file that goes to a script with mail('me@example.com', $_POST['subject'], $_POST['content']);, think what would happen if someone reloaded that page 200 times.. You must have some kind of security in it, probably a captcha, and/or rate-limiting.

    One thing, that has bugged me before – remember a ‘contact us form’ is not a replacement for giving an actual email address! For example, my mail client keeps a copy of all mail I send, and I can attach files, and it’s much nicer writing in a familiar mail client than a form <textarea> (especially when the I accidently hit ‘back’ and the form decides to clear itself)!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What techniques available to fill a pdf form automatically using external data and save
What techniques are available to profile services running in WebMethods Integration Server? That is,
Any standarda tools and Techniques that are available for window driver testing?
I see there are techniques available to have deep models in Backbone, but how
I've tried several techniques to capture a screenshot of an app from within that
BACKGROUND I've successfully embedded IronPython in my WinForm apps using techniques like the one
I am trying to tidy up my code now that Delphi XE2 is available
I'm creating a script that's supposed to create an embedded SWF and also use
I've read with interest the techniques available on the web to extract a unique
Are there any converters or techniques available for converting Javascript 1.7 code with its

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.