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
Sahilsahni
0
Light Poster
Recommended Answers
Jump to PostYou can add headers as a 4th parameter of the mail function.
Try "From:xyz@maindomain.com\r\n\Reply-to:xyz@maindomain.com"
All 4 Replies
Sahilsahni
0
Light Poster
smantscheff
265
Veteran Poster
Sahilsahni
0
Light 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.