Are you trying to create a new mail account from within php?
To just send an email with php, here is the php manual page for mail (
http://us2.php.net/mail) and below is a snippet of code one of my colleagues wrote.
PHP Code:
function emailData () {
#-- creating message to send to MKSS
$message = "
Appl Number: {$_POST['Appl_Number:']}
";
#-- old html email to be sent to all internal emails
$message2 = "
subject: Observing Req. Form
from-email: username@mydomain.edu
from-name: My User
----- OBSERVING REQUIREMENTS FORM -----
blah blah";
#-- variables for sending email
$to = "username@mydomain.edu";
$subject = "Observing Req. Form";
$headers = "From: requirements@mydomain.edu";
#-- external emails
mail($to,$subject,$message,$headers);
#-- internal emails
mail($to,$subject,$message2,$headers);
}
Hope this helps!
Miranda