Hi am kinda stuck here, so please if anyone could help me,i have 2 domains working on same hosting, one is Main Domain and other Addon, am using mail() function in Addon Dowmain website. everything is working fine, problem is script is running on addon domain but when people get mails, it shows other domain's name i.e. maindomain's so please if anyone can tell me how i can change this thing that when people get mail it shows From:Addon domain.
and i donot have ini.php file or whatever it is, because both of my websites are running over hosting company's server.
Thanx in advance
Answered by smantscheff 265 in a post from
Jump to Post
You can add headers as a 4th parameter of the mail function.
All 4 Replies
smantscheff 265 Veteran Poster
d3rck 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.