Email

General discussions related to php

Moderators: macek, egami, gesf

loon
New php-forum User
New php-forum User
Posts: 4
Joined: Sun Jul 06, 2003 2:51 am

Email

Postby loon » Sun Jul 06, 2003 6:24 am

how can I send the result through email in a local intranet? have the example? thankq!!!

User avatar
ruturajv
php-forum Super User
php-forum Super User
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India
Contact:

mail()

Postby ruturajv » Sun Jul 06, 2003 8:44 am

Get the post or whatever results in the variable on a page
eg.

$answer = $_POST['ans'];
...... and so on
and then use mail function

mail("username@example.com", "Subject line", $answer);

Hope it helps


Return to “PHP General”

Who is online

Users browsing this forum: Strider64 and 2 guests