2017-01-27 1 views
1

나는 꽤 많은 인터넷 검색을하고 있지만 내 특정 질문에 대한 답변을 찾을 수 없습니다.PHP 메일 기능이 장면 뒤에서 어떻게 작동합니까?

나는 mail()의 구문과 php.ini 파일을 편집하는 단계를 알고 있습니다. 하지만 인증 정보를 제공하지 않을 때 SMTP 서버가 연결 요청을 수락하는 이유는 무엇입니까?

예를 들어, Gmail 계정을 통해 이메일을 보내려면 이메일 주소와 비밀번호로 로그인해야합니다. 그러나 PHP mail()을 사용하면이 단계를 완전히 무시할 수 있습니다.

mail() 기능은 장면에서 어떻게 작동합니까?

+0

()'는 자신의 서버에서 작동하지만 ' 당신을 검증 할 필요가 없으며 외부 소스에 연결할 때 "자신의"메일 서버를 사용하기 때문에 필요합니다. "그"답이 아니라면,이 대답을 그 자체로 부르십시오. –

+0

위의 내용이 당신을 만족시키지 못한다면, 그렇게 말할 필요가 있습니다. 그렇지 않으면, 메일 및 관련 RFC의 매뉴얼을 읽거나 아래의 답변을 인용 할 수 있습니다. 귀하의 질문은 프로그래밍과 관련이 없지만 핵심 서버 인증 절차입니다. –

+0

@Fred. 감사. 그것이 실제로 그것을 더 분명하게하지는 않지만. 관련 RFC를 찾으려고 노력할 것입니다. 메일의 매뉴얼이 도움이되지 않습니다. –

답변

4
PHP의 mail() 기능과 관련 RFC의

에 수동으로 당

및 아래에 나열 :

"참고 : RFC 2045을»»»RFC 1896 : 다음 RFC에 유용 할 수 있습니다 RFC 2046,»RFC 2047,»RFC 2048,»RFC 2049 및»RFC 2822. " RFC에서

2049 http://www.faqs.org/rfcs/rfc2049.html

 

    [RFC-1421] 
     Linn, J., "Privacy Enhancement for Internet Electronic 
     Mail: Part I -- Message Encryption and Authentication 
     Procedures", RFC 1421, IAB IRTF PSRG, IETF PEM WG, 
     February 1993. 

http://www.faqs.org/rfcs/rfc1421.html

인터넷 전자 메일에 대한 개인 정보 보호 강화 : 부 : 메시지 암호화 및 인증 절차

메일 '때문이다
 

     1. This RFC's measures are restricted to implementation at 
      endpoints and are amenable to integration with existing 
      Internet mail protocols at the user agent (UA) level or 
      above, rather than necessitating modifications to existing 
      mail protocols or integration into the message transport 
      system (e.g., SMTP servers). 

     2. The set of supported measures enhances rather than restricts 
      user capabilities. Trusted implementations, incorporating 
      integrity features protecting software from subversion by 
      local users, cannot be assumed in general. No mechanisms 
      are assumed to prevent users from sending, at their 
      discretion, messages to which no PEM processing has been 
      applied. In the absence of such features, it appears more 
      feasible to provide facilities which enhance user services 
      (e.g., by protecting and authenticating inter-user traffic) 
      than to enforce restrictions (e.g., inter-user access 
      control) on user actions. 

     3. The set of supported measures focuses on a set of functional 
      capabilities selected to provide significant and tangible 
      benefits to a broad user community. By concentrating on the 
      most critical set of services, we aim to maximize the added 
      privacy value that can be provided with a modest level of 
      implementation effort. 

관련 문제