/    Sign up×
Community /Pin to ProfileBookmark

Help! Problems using php mail function

I am creating a forum for a new website, and I want my users to be emailed thier password(to confirm thier email address). To do this I am using php’s mail() function.

The email sends fine to both my pop3 and gmail accounts, but will not be recived by my hotmail account. I belive this to be because hotmail is overly fussy about the way the message is formatted (something to do with the from email address matching in both the mail and envelope header someone suggested??). I’ve tried using the -f parameter but that doesn’t work.

Please help!

Additional info:

My web host is webfusion and my scriptis running on one of thier Red Hat servers – if this helps.

Robin

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@JavaHead_JonnieSep 11.2004 — I believe you have to add[code=php]"X-Mailer: PHP/" . phpversion()[/code]To your mail headers.
×

Success!

Help @rmbarnes 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,
)...