Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #7223

Re: button to send an email

From "Beauregard T. Shagnasty" <a.nony.mous@example.invalid>
Newsgroups comp.lang.php
Subject Re: button to send an email
Date 2012-10-02 11:52 +0000
Organization Shagnasty Software
Message-ID <k4ekh7$gi4$1@dont-email.me> (permalink)
References <alpine.LFD.2.00.1210021051570.10492@surtur.dico.unimi.it>

Show all headers | View raw


Jack of Hearts wrote:

> Dear all,
> I'm completely new to PHP but I think this is the right language to
> solve my problem and I hope you can help me.
> 
> I want to add a form to my webpage to ask for an email address and the
> submit button should send to such an address a preformed email.
> 
> I can write the form as
> 
>    <form method="POST" enctype="text/plain"> e-mail: <input type="text"
>    name="to"> <input type="submit" value="Get Result"> </form>
> 
> but I'm not able to get the data written in the form and prepare the
> message using such data as the To: field of the message and of course I
> can't send the message as well.

I've always liked this example.

<http://safalra.com/programming/php/contact-feedback-form/>

Do be aware that your form could be used by malcontents, who could enter 
someone else's email address for spamming and annoyance purposes. In my 
email forms, I always have the form just send mail to me, then I reply 
manually to the visitor. This may or may not fit your needs.

-- 
   -bts
   -This space for rent, but the price is high

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

button to send an email Jack of Hearts <jack@comics.it.invalid> - 2012-10-02 10:58 +0200
  Re: button to send an email Markus Sonnenberg <lassmichinruhe@rz-amper.de> - 2012-10-02 11:07 +0200
    Re: button to send an email Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-10-02 23:01 +0200
  Re: button to send an email "Beauregard T. Shagnasty" <a.nony.mous@example.invalid> - 2012-10-02 11:52 +0000
    Re: button to send an email houghi <houghi@houghi.org.invalid> - 2012-10-02 21:23 +0200
      Re: button to send an email "Beauregard T. Shagnasty" <a.nony.mous@example.invalid> - 2012-10-02 21:25 +0000

csiph-web