폼메일전송질문
별을기다리며
11년 전
조회 5,606
이전에도 질문올렸었는데 아직 미해결부분이라서요
http://www.portocera.com/contact.html" target="_blank">http://www.portocera.com/contact.html 이사이트에 submit 버튼을 눌러 폼메일이 전송하게 하는건데요
제가 html랑 css는 알겠는데 php는 전무하거든요 여기에 질문올렸더니 폼태그에 <from action="send_mail.php" method="post" > 넣으라고해서 이렇게 넣고 샌드php엔
<?
$to = 'nobody@example.com'; 한국에서 받을 메일 주소
$subject = 'the subject'; 메일 제목
$message = 'hello'; 메일 내용
$headers = 'From: webmaster@example.com' . "\r\n" . // 코쟁이 메일 주소
'Reply-To: webmaster@example.com' . "\r\n" . 답변 받을 메일 주소
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
?>
$subject = 'the subject'; 메일 제목
$message = 'hello'; 메일 내용
$headers = 'From: webmaster@example.com' . "\r\n" . // 코쟁이 메일 주소
'Reply-To: webmaster@example.com' . "\r\n" . 답변 받을 메일 주소
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
?>
따로 만들어서 같이 업로드하여 올렸는데
아무 동작도 안합니다 ㅠ 외국바이어가 문의나 물건사면,메일로 연동되서 메일오게하면되거든요
도와주세요 고수님들
댓글을 작성하려면 로그인이 필요합니다.
답변 1개
11년 전
$headers = 'From: 'bluenjel85@nate.com' . "\r\n" .
'Reply-To: 'bluenjel85@naver.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
'Reply-To: 'bluenjel85@naver.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
위 부분을
이렇게 해보세요
로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인