SMTP::data
Send an SMTP DATA command.
Issues a data command and sends the msg_data to the server, finializing the mail transaction. $msg_data is the message that is to be send with the headers. Each header needs to be on a single line followed by a <CRLF> with the message headers and the message body being separated by and additional <CRLF>. Implements rfc 821: DATA <CRLF>
Signature
public function data(string
$msg_data )
Parameters
$msg_data
— string
Message data to send
Returns
- boolean
Violations
PHPMessDetector
Line | Rule | Message |
---|---|---|
593 - 675 | CyclomaticComplexity | The method data() has a Cyclomatic Complexity of 13. The configured cyclomatic complexity threshold is 10. |
593 - 675 | NPathComplexity | The method data() has an NPath complexity of 366. The configured NPath complexity threshold is 200. |