내 랩톱에서 wamp 서버를 사용하여 메일을 보내려고했습니다. SMTP 서버는 온라인으로 제공됩니다. 여기에 보낼 내 PHP 코드 메일 :메일을 보낼 때 SMTP 오류가 발생했습니다.
경고 :
[mail function] ; For Win32 only. ; http://php.net/smtp SMTP = mail.vickey1192.co.in ; http://php.net/smtp-port smtp_port = 26 ; For Win32 only. ; http://php.net/sendmail-from sendmail_from = [email protected]
이 내가 점점 오전 오류입니다 : 나는이 같은 내 php.ini 파일을 설정
: mail() [function.mail] : SMTP 서버 응답 : 550- 메일 클라이언트에서 SMTP 인증을 켜거나 메시지를 보내기 전에 550-IMAP/POP3 서버에 로그인하십시오. (vignesh-PC) 550- [115.118.170.201] :이 서버 550을 통해 인증없이 23328이 중계 할 수 없습니다. C : \ wamp \ www \ mailtofunc.php에 줄 12<?php ini_set('SMTP', "mail.vickey1192.co.in"); ini_set('smtp_port', 26); ini_set('sendmail_from', "[email protected]"); $to = "[email protected]"; $subject = "Acknowledgement"; $message = "Thank you for registering with us<br>"; $from = "[email protected]"; $headers = "From:" . $from; mail($to,$subject,$message,$headers); echo "Mail Sent."; ?>
나는 지금 무엇을해야합니까? 제발 도와주세요 ...
는 http://stackoverflow.com/questions/13137558/sending-mail-from-localhost-using-php –