Problem with mail!!

Links for php scripts

Moderators: macek, egami, gesf

chaval
New php-forum User
New php-forum User
Posts: 3
Joined: Mon Apr 14, 2003 6:51 am

Problem with mail!!

Postby chaval » Wed Apr 30, 2003 4:31 am

please I'm in my beggining with PHP so I could'nt resolve this problem:
I want simply to know how to send email to someone, once I have his email,subject and the message(body).
I don't know how to use function mail() neither PHP Mail.
please help me pls.

User avatar
bezmond
Moderator
Moderator
Posts: 312
Joined: Sat Apr 05, 2003 4:33 am
Location: Mansfield, UK
Contact:

Postby bezmond » Wed Apr 30, 2003 5:39 am

Code: Select all

mail($email, $subject, $message, "From: noreply$domain <noreply$domain>");


Andrew

User avatar
WiZARD
Moderator
Moderator
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol
Contact:

Re: Problem with mail!!

Postby WiZARD » Thu May 08, 2003 5:16 am

all info about function you may find at http://www.php.net/manual/en/
about mail http://www.php.net/manual/ru/function.mail.php

ff-dna
New php-forum User
New php-forum User
Posts: 5
Joined: Tue Jun 24, 2003 11:45 am
Contact:

Postby ff-dna » Tue Jun 24, 2003 12:03 pm

repeating what bezmond said, but with identified variables.

Code: Select all

<?
$email = "email address you want to send to.";
$subject = "they subject of your msg.";
$message = "your msg here...";
mail($email, $subject, $message");
?>


Return to “PHP Scripts”

Who is online

Users browsing this forum: Google Feedfetcher and 1 guest