/    Sign up×
Community /Pin to ProfileBookmark

Mail headers

Hello,

After talking to my host i’ve discovered my mail from mail() is being rejected by my dedicated server because of errors or missing information in the header.

Here is my header code:

[code=php]
$headers = “From: Database Manager <[email protected]>n”; $headers .= “X-Sender: <[email protected]>n”; $headers .= “Return-Path: <[email protected]>n”; $headers .= “X-Mailer: PHPn”; $headers .= “X-Priority: 5n”; $headers .= “Content-Type: text/html; charset=iso-8859-1n”; $headers .=”MIME-Version: 1.0n”;
[/code]

As far as i can see, everything is correct?

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@rootJul 15.2008 — You need to ask them again because I had a similar experience when trying to send PHP email out from the remote server I have.

This was solved by adding in the required function calls that then allowed the emails to be sent.

So check your hosting companys FAQ on sending mail from their servers. You will most likely find that your limited to the number and frequency.

My host for example only allows 10 emails per minute to avoid spam.
×

Success!

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