2013-11-27 3 views
0

간단한 PHP mail 함수 대신 PHPMailer와 같은 메일러 클래스를 사용해야하는 이유는 무엇입니까? 보안 문제 또는 스팸 위험이 있습니까?왜 SMTP 인증을 사용합니까

PHPMailer를 사용하고 싶지 않은 유일한 이유는 메일 암호가 소스 코드에 표시된다는 것입니다. 단순한 mail 함수를 사용하면이 문제를 피할 수 있습니다. 당신은 헤더, HTML 메일 등 메일 기능은 기본적인 방법으로 더 잘 작동 할 수 PHPMailer으로

감사

답변

1

.

아무튼 나는 당신에게 swiftmailer이 더 나은 지원을하고 조금 더 현대적이라고 제안합니다.

0
PHPMailer is a PHP class for PHP (www.php.net) that provides a package of functions to send email. The two primary features are sending HTML Email and e-mails with attachments. PHPMailer supports nearly all possiblities to send email: mail(), Sendmail, qmail & direct to SMTP server. You can use any feature of SMTP-based e-mail, multiple recepients via to, CC, BCC, etc. In short: PHPMailer is an efficient way to send e-mail within PHP. 

As you may know, it is simply to send mails with the PHP mail() function. So why use PHPMailer? Isn't it slower? Yes that's true, but PHPMailer makes it easy to send e-mail, makes it possible to attach files, send HTML e-mail, etc. With PHPMailer you can even use your own SMTP server and avoid Sendmail routines used by the mail() function on Unix platforms. 

Reference: 
http://code.google.com/a/apache-extras.org/p/phpmailer/wiki/UsefulTutorial