FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » button to send an email
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: button to send an email [message #179293 is a reply to message #179291] Tue, 02 October 2012 11:52 Go to previous messageGo to previous message
Beauregard T. Shagnas is currently offline  Beauregard T. Shagnas
Messages: 154
Registered: September 2010
Karma:
Senior Member
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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Asynchronous execution of PHP file
Next Topic: problem with link checker
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 11:25:39 GMT 2024

Total time taken to generate the page: 0.04299 seconds