Benvenuto sul nostro sito di servizi di hosting e registrazione domini.
Sull'Articolo -
How to send an E-Mail with Php di Giovanni Ceglia - giovanniceglia@xungame.com (é stato visto 8469 volte)

In this simple article and source sample, it will be show how to create a form to send e-mails in Php server side language, this example is valid both for Php on Linux and both on Windows.

The first task it to create the module, and for this job we could find more solutions but we will implement the script using 2 different pages, I suggest the use of two different pages to divide contents and scripting.

Files where we will add the code:

-- modulo.php --

< form method="Post" action="scripts/mail.php" >
Mittente: < input type="text" name="FROM" >< br >
Titolo: < input type="text" name="SUBJECT" >< br >
Corpo del messaggio: < br >
< textarea cols="64" rows="4" name="BODY" >< /textarea >< br >
< br >  
< input type="submit" value="send now" >
< /form >

----------------

-- scripts/mail.php --
< ?
$from=$HTTP_POST_VARS['FROM'];
$destination="webmaster@website.ext";
$subject=$HTTP_POST_VARS['SUBJECT'];
$message=$HTTP_POST_VARS['BODY'];
mail($destination,$subject,$message,"From:".$from);
header("location: ../modulo.php");
? >
----------------------


Links a Siti Importanti:

http://www.giovanniceglia.com





Giovanni Ceglia offre servizi Internet di sviluppo, manutenzione, messa in opera di portali per servizi, hosting, software per servizi Internet.

Tutto il materiale qui presente è © CopyRight Giovanni Ceglia dal 2003, tutti i diritti sono riservati, la copia e la redistribuzione di materiale presente su questo sito, sono vietate ove non espressamente consentito. Eventuali marchi citati appartengono ai rispettivi proprietari. Giovanni Ceglia - Servizi Informatici, Internet e Hosting, Partita IVA N. IT03972320653, Sede Legale in Via Trento N.74 84016, Pagani (Salerno) Italy, Email: webmaster(at)9euro.com, Numero di Telefono per contatti: +39 081 5153174. Iscrizione alla camera di commercio di Salerno. GloboSpace.com è il sito principale di Giovanni Ceglia per i servizi di hosting. IL Network di Giovanni Ceglia è costituito da oltre 100 siti web.