Linux Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsLinux Help

Closed Thread
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 2nd, 2003, 04:35 AM
DKCUK DKCUK is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 16 DKCUK User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
How to change the nobody in nobody@domian.com

Hi all, I'm a linux newbie and when i send mail using PHP, the FROM: field when the mail is received is nobody@domain.com, how can I change this nobody to something else, like admin@domain.com. I know this isn't a PHP problem because the @domain.com is correct to what I specified when installing suse linux 8.0.
This is while i'm logged in as root.
Please help, thank you.

Last edited by DKCUK : July 2nd, 2003 at 04:38 AM.

Reply With Quote
  #2  
Old July 2nd, 2003, 04:47 AM
a.koepke's Avatar
a.koepke a.koepke is offline
Second highest poster :p
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Jul 2001
Posts: 7,323 a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 8 h 8 m 45 sec
Reputation Power: 27
What you actually need to do is this

PHP Code:
 $header="From: [email]fromaddress@here.com[/email]";
mail($to,$subject,$body$header); 

Reply With Quote
  #3  
Old July 2nd, 2003, 05:17 AM
DKCUK DKCUK is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 16 DKCUK User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thank a lot a.koepke, I can't believe that, I swear I tried that the 1st time round but it came up in the body of the mail. But thank again, you saved me from lots of time wasting on searching linux helps

Reply With Quote
  #4  
Old July 2nd, 2003, 08:02 AM
neoxean neoxean is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 108 neoxean User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
So yes, it is a PHP problem, and you should have known that from the beginning, because at PHP.net they state that you can spcify who the email is FROM.

Reply With Quote
  #5  
Old July 2nd, 2003, 08:09 AM
DKCUK DKCUK is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 16 DKCUK User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
so i guess you've never made a programming mistake before. I did say that I tried the 1st time round but it came up in the body, so i made a mistake. Gosh, this post was finished hours ago. Why did you even bother commenting if you aint got anything useful to say.

Reply With Quote
  #6  
Old July 2nd, 2003, 08:12 AM
neoxean neoxean is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 108 neoxean User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Quote:
Why did you even bother commenting if you aint got anything useful to say.


What I said is useful. I am sorry that you do not see it that way. And if this post was "finished hours ago" then why did you "bother commenting if you aint got anything useful to say"?

Reply With Quote
Closed Thread

Viewing: Dev Shed ForumsOperating SystemsLinux Help > How to change the nobody in nobody@domian.com


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway