Kefiirs Posted June 25, 2009 Report Posted June 25, 2009 (edited) 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 June 25, 2009 by Kefiirs Quote
Aleksejs Posted June 25, 2009 Report Posted June 25, 2009 Varbūt, ka nepatīk tā adrese, no kuras automātiski sūtās tas mails. To var uzstādīt ar -f parametru. Šeit par to jau runāju: http://php.lv/f/index.php?showtopic=9018&a...ost&p=74456 Quote
cucumber Posted June 25, 2009 Report Posted June 25, 2009 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>"; Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.