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 = "auto_response@altoonadesign.com";

i also tried

$mail->From = "<Altoona Design> auto_response@altoonadesign.com";

thanks

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: webmaster@example.com' . "\\r\
"

Source

Regards,

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 <auto_response@altoonadesign.com>

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.

THanks

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


$mail->From = "from@example.com";
$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.