From ROOT USER when sending mail?

every time i send email from php using phpmailer() it says from ROOT USER how can i stop this?

this is what im using

$mail->From = "";

i also tried

$mail->From = "<Altoona Design>";


I’m not sure why you’re using an object to send mail, but the correct usage is:

mail($to, $subject, $message, $headers);

Where $headers would include the following:

$headers = 'From:' . "\\r\



He said he’s using the PHPMailer class…

[FONT=Georgia]You know you have that backwards, right??..

The e-mail address goes in the chicken beaks.[/FONT]

Altoona Design <>

hey thanks i didnt realize,

it still says root user tho, only it looks like Root User <Altoona Design instead of just Root User which is better but id still like to remove the root user thing.


Damn!!.. I’ve never had that problem, myself… could it be a server thing??

$mail->From = "";
$mail->FromName = "altona ...";

take a look at the file named ‘README’

It’s because PHPMailer is either using mail() or sendmail (running as root by the sound of it!!). Try using SMTP mode.