Jump to content
php.lv forumi

Mail nesūtās


Kefiirs

Recommended Posts

Sveiki!

Ja jau rakstu, tad ir problēma:

<?php
$subject ="$subject";
$message="$detail";
$mail_from="$customer_mail";
$header="From: <$mail_from>";
$to ='jackmetal@inbox.lv';

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

if($send_contact){
echo "E-pasts tika nosutits!";
}
else {
echo "ERRORS!";
}
?>

Šo darbību izpildot rāda kļūdu:

Warning: mail() [function.mail]: SMTP server response: 501 Incorrect Address Format in send_contact.php on line 15

Piecpadsmitā rindiņa ir šī:

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

Bet viss taču ir pareizi, kas tad ir vainīgs?

Edited by Kefiirs
Link to comment
Share on other sites

Iz katas kadi brinumi ar mainigajiem, tapec ari nosuti kadu kreiso headeri gala.

$subject ="$subject";
$message="$detail";
$mail_from="$customer_mail";
$header="From: <$mail_from>";

Link to comment
Share on other sites

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...