/    Sign up×
Community /Pin to ProfileBookmark

send mail problem

$mail = mail(“[email protected]“, “Test”, “Test”,”From: [email][email protected][/email]“);

i used this script to send an email to my client upon registration

the mail had send successfully

but when i retrieve the mail!

it is written

FROM : Apache ([email protected])
To : [email][email protected][/email]

how do i change the name Apache to my name.. can i set the name from ?

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@ltingauthorMar 01.2005 — thanks i solve the problem alreaday
Copy linkTweet thisAlerts:
@phpnoviceMar 01.2005 — So, post the solution, too. ;-)
Copy linkTweet thisAlerts:
@ltingauthorMar 04.2005 — the solution is

$mail = mail("[email protected]", "Test", "Test","From: name <[email protected]>");
Copy linkTweet thisAlerts:
@phpnoviceMar 04.2005 — Thanks.
×

Success!

Help @lting spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...