$headers = MIME-Version: 1.0rn ; $headers .= Content-type: text/html; (Web page design)

$headers = MIME-Version: 1.0rn ; $headers .= Content-type: text/html; charset=iso-8859-1rn ; $headers .= Content-Transfer-Encoding: 7bitrn ; $headers .= From: . $from . rn ; $mailsent = mail($to, $subject, $message, $headers); if ($mailsent) { echo Congrats! The following message has been sent:

; echo To: $to
; echo From: $from
; echo Subject: $subject
; echo Message:
; echo $message; } else { echo There was an error… ; } ?> 3. Save the file. 4. Load postcard.php into your browser and fill in the fields with appropriate information. Be sure to include some HTML in the message field, such as

Hello World!

Prepare for our arrival.

We are starving!!! 5. Click the Send button, and open your e-mail client to see the new message, which will look something like Figure 11-5. Figure 11-5 333 Sending E-mail
Please visit Domain Name Hosting services for high quality webhost to host and run your jsp applications.

Leave a Reply