Which method in the Email Class is used to send HTML formatted emails?
- send()
- set_format()
- set_html()
- set_mailtype()
The set_mailtype() method in the Email Class is used to specify the email format. Setting it to 'html' enables the sending of HTML-formatted emails. This is essential when you want to include styled content in your emails.
What is the primary goal of SQL injection attacks?
- Code execution
- Data manipulation
- Server overload
- Unauthorized access to a database
SQL injection attacks aim to gain unauthorized access to a database by exploiting vulnerabilities in the input handling of SQL queries. Attackers try to manipulate or extract sensitive data by injecting malicious SQL code.