Page 1 of 1

php mail

Posted: Thu Nov 01, 2007 12:55 pm
by sanv
hi,

i have got another question.

i have got a site called druck.php

which contains some text and some values - that have been submitted from a registration form - to druck.php and are being represented in there in tables.

the user gets the option to print that information with print() of javascript.
however, i also want to add the option to email it to the user - email address also provided in the registration form $_POST["email"].
this means if the user clicks on there he should get the html and css formatted text in the email specified.

how can i solve that?

thanks for the help

Posted: Thu Nov 01, 2007 1:05 pm
by Christopher
The manual is sometime handy for answers to questions like this:

http://www.php.net/manual/en/function.mail.php


Or take a look at SwiftMailer.

Posted: Thu Nov 01, 2007 2:05 pm
by sanv
thanks alot for the information.

i have got another question.

lets say i have got a file called druck.php where I have a link saying send email that redirects to email.php thru <a href="email.php" title="email test">send as email</a>.

Now in email.php i would like to access elements that were in the $_POST array in druck.php. is it possible to access them??