Because of the differences in the way HTML-formatted e-mail is handled by the
myriad of mail clients out there, consider sticking with plain-text formatting for
such matters.
Figure 16-1. An HTML-formatted e-mail
418 CHAPTER 16 ?– NE TWORKING
Sending an Attachment
The question of how to include an attachment with a programmatically created e-mail
often comes up. Doing so with Mail_Mime is a trivial matter. Just call the Mail_Mime
object??™s addAttachment() method, passing in the attachment name and extension, and
identifying its content type:
$mimemail->addAttachment('inventory.pdf', 'application/pdf');
Common Networking Tasks
Although various command-line applications have long been capable of performing
the networking tasks demonstrated in this section, offering a means for carrying them
out via the Web certainly can be useful. For example, at work we host a variety of Webbased
applications within our intranet for the IT support department employees to use
when they are troubleshooting a networking problem but don??™t have an SSH client
handy. In addition, these applications can be accessed via Web browsers found on most
modern wireless PDAs. Finally, although the command-line counterparts are far
more powerful and flexible, viewing such information via the Web is at times simply
more convenient. Whatever the reason, it??™s likely you could put to good use some of
the applications found in this section.
Pages:
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498