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 #179292 is a reply to message #179291] Tue, 02 October 2012 09:07 Go to previous messageGo to previous message
Markus Sonnenberg is currently offline  Markus Sonnenberg
Messages: 2
Registered: May 2012
Karma:
Junior Member
On 10/2/2012 10:58 AM, 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 imagine I've to write a PHP script to put on a server but I can't
> write it and especially I don't know how to pass the data from the
> webpage to such script.
>
> Could you help me?
>
> Thank you
>
> Jack
>

this could help you.
http://www.w3schools.com/php/php_mail.asp

regards
markus

ct,
--
Das Abspringen einer Begrenzungsmauer dient nicht dem direkten
Zurücklegen des Arbeitsweges.
http://www.rz-amper.de
[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: Wed Nov 27 18:21:58 GMT 2024

Total time taken to generate the page: 0.04718 seconds