Jump to content
php.lv forumi

Recommended Posts

Posted

Kaads vareetu luudzu padaliities ar kaadu vienkaarsu, ejoshu contacta scriptu?

Mekleeju google, kautkadus atradus, bet man tie negaaja.

 

paldies

Posted

varbūt pamēģini šitā:

<?php
// Contact subject
$subject = $_POST['subject'];
// Details
$message=$_POST['detail'];

// Mail of sender
$mail_from=$_POST['customer_mail'];
// From
$header="from: ".$_POST['name']." <$mail_from>";

// Enter your email address
$to ='someone@somewhere.com';

$send_contact=mail($to,$subject,$message,$header);

// Check, if message sent to your email
// display message "We've recived your information"
if($send_contact){
echo "We've recived your contact information";
}
else {
echo "ERROR";
}
?>

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...