LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Closed Thread
  Search this Thread
Old 03-24-2006, 08:03 PM   #1
mavgh1
LQ Newbie
 
Registered: Mar 2006
Location: Romania
Distribution: SuSE
Posts: 8

Rep: Reputation: 0
problems with From: header when sending emails from my domain using mail() function


I have a SuSE Server with a domain.ro and some subdomains.domain.ro
When I use function mail() to send emails from my domain and subdomains the From : looks like

From : www daemon apache <user@domain.ro>

Does anyone now what changes to make to have only email address in header(I don't want to use from header in php script).
Thanks in advance
 
Old 03-25-2006, 04:31 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php
 
Old 03-25-2006, 05:35 AM   #3
bartoni
LQ Newbie
 
Registered: Dec 2005
Posts: 6

Rep: Reputation: 0
Here's how I'd do it :

mail ($to,$subject,$content,"From: $from\r\n"."Reply-To: $from\r\n");
 
Old 03-25-2006, 12:23 PM   #4
mavgh1
LQ Newbie
 
Registered: Mar 2006
Location: Romania
Distribution: SuSE
Posts: 8

Original Poster
Rep: Reputation: 0
not this solution

Thanks but ....
I dont want to use this solution with From : in php script.
 
Old 03-25-2006, 07:06 PM   #5
mavgh1
LQ Newbie
 
Registered: Mar 2006
Location: Romania
Distribution: SuSE
Posts: 8

Original Poster
Rep: Reputation: 0
solved

Solved the problem from server configuration
 
Old 03-26-2006, 02:48 PM   #6
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Closed as per Acid_Kewpie's comment.
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problems with From : header when sending emails with function mail() from my domain mavgh1 Linux - Software 0 03-24-2006 07:51 PM
Problems sending emails received on Gmail bogdan.dusa Linux - General 1 08-23-2005 02:56 PM
sending mail from my new domain name BU5T4 Linux - Newbie 1 12-12-2003 05:22 PM
postfix : sending local mail without domain iainr Linux - Software 2 12-10-2003 03:05 AM
Problems sending mail to a single domain with qmail dwbizzle Linux - Software 2 09-26-2003 07:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration