<?php $headers = "From:sender@java2s.com\r\n"; $recipients = "test@java.com,a@java2s.com"; mail($recipients, "This is the subject","This is the mail body", $headers); ?>