Best web design - 11 Sending E-mail So far, the chapters in

11 Sending E-mail So far, the chapters in this book have walked you through the creation of a comprehensive Web site. You have designed your site so that users can add and modify data, which is being stored in databases. You have built pages dynamically for your users, ensuring they have a rich and unique experience when they visit your Web site. You are even displaying helpful error messages in case something goes wrong. Now it s time to get a little more interactive with your users with e-mail. But we are not talking about standard e-mail, in which you write to your mother to tell her about the cool site you ve been building. (You did tell her, didn t you? She would be so proud.) We re talking about sending out e-mails using PHP. Why would you want a server-side scripting language to send e-mails? Perhaps you want to create a simple feedback form to be submitted to an administrator, as introduced in Chapter 9. Or maybe you want certain errors to be automatically e-mailed to the Webmaster. Or perhaps you would like to create an application that allows users to send their friends and family electronic postcards. (Nod your head in vigorous agreement here because that is exactly what you are going to do!) Specifically, this chapter covers: . Sending a basic e-mail . Sending an e-mail formatted with HTML . Multipart messages . Sending images . Getting confirmation Setting Up PHP to Use E-mail To be able to send e-mail with PHP, you need an e-mail server. This chapter doesn t delve too deeply into the setup of a mail server for PHP, but here are the basics.
Note: If you are looking for cheap and reliable webhost to host and run your mysql application check mysql web server services.