php ile mail gönderme sorunu
5
●78
- 05-06-2023, 13:55:24eratalay adlı üyeden alıntı: mesajı görüntüle
$email_content = file_get_contents('email_template.html'); $email_content = str_replace('{{AdSoyad}}', $adsoyad, $email_content); $mail->Body = $email_content; - 05-06-2023, 13:56:52webkaplani adlı üyeden alıntı: mesajı görüntüle
if(isset($_POST['url']) && $_POST['url'] == ''){ // put your email address here $youremail = 'r10@eratalay.net.tr'; // prepare message $body = "You have got a new message from the quote form on your website : Name: $_POST[name] Phone Number: $_POST[number] Email: $_POST[email] Subject: $_POST[subject]"; if( $_POST['email'] && !preg_match( "/[\r\n]/", $_POST['email']) ) { $headers = "From: $_POST[email]"; } else { $headers = "From: $youremail"; } mail($youremail, 'Message from Web', $body, $headers ); } ?>hocam elimdeki kod bu ama göndermiyor mail - 05-06-2023, 13:59:47
if(isset($_POST['url']) && $_POST['url'] == ''){ $youremail = 'r10@eratalay.net.tr'; $name = isset($_POST['name']) ? $_POST['name'] : ''; $number = isset($_POST['number']) ? $_POST['number'] : ''; $email = isset($_POST['email']) ? $_POST['email'] : ''; $subject = isset($_POST['subject']) ? $_POST['subject'] : ''; $body = "You have got a new message from the quote form on your website : Name: $name Phone Number: $number Email: $email Subject: $subject"; if( $email && !preg_match("/[\r\n]/", $email) ) { $headers = "From: $email"; } else { $headers = "From: $youremail"; } mail($youremail, 'Message from Web', $body, $headers ); } - 05-06-2023, 14:02:37çok teşekkürler hocam ama yine çalışmadıwebkaplani adlı üyeden alıntı: mesajı görüntüle
- 05-06-2023, 14:04:21eratalay adlı üyeden alıntı: mesajı görüntüle
ini_set("display_errors", 1);
ini_set("display_startup_errors", 1);
error_reporting(-1);
şunu yapıştır ne hata verdiğini görelim bari