Specifications
Sending Mail
Finally we come to sending mail. There are a few ways to do this from this script: The user
can send a new message, reply to, or forward mail. Let’s see how these work.
Sending a New Message
The user can choose this option by clicking the New Message button. This activates the
“new-message” action, which executes the following code in index.php:
case ‘new-message’ :
{
display_new_message_form($auth_user, $to, $cc, $subject, $body);
break;
}
The new message form is just a form for sending mail. You can see what it looks like in Figure
27.8. This figure actually shows mail forwarding rather than new mail, but the form is the
same. We’ll look at forwarding and replies next.
Building a Web-Based Email Service
C
HAPTER 27
27
BUILDING A
WEB-BASED
EMAIL
SERVICE
649
FIGURE 27.8
Using mail forwarding, we can report the spammer.
33 7842 CH27 3/6/01 3:41 PM Page 649