/    Sign up×
Community /Pin to ProfileBookmark

Whats the difference

whats the difference in the bold part, and which one is correct

[B]send_email[/B](‘[email protected]‘, $email, $topic, $body );

AND

[B]@ mail[/B]($email, $topic, $body, $headers);

AND

[B]mail[/B](“[email protected]“, $topic, $body, $from);

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@The_Little_GuyOct 01.2007 — I think the second one is correct, because you set the [B]from[/B] in the headers
Copy linkTweet thisAlerts:
@HazardTWOct 01.2007 — send_email() is a user created function as opposed to built-in PHP function, inside that function they would use the built-in PHP function email() to send the mail.

email() is the built-in PHP function for sending email.

@email() is the same as above except that the leading @ suppresses the output of error reporting, if the mail function fails to send the mail, it will fail silently.
Copy linkTweet thisAlerts:
@Declan1991Oct 01.2007 — 
email() is the built-in PHP function for sending email.
[/QUOTE]

Did you mean mail()?
Copy linkTweet thisAlerts:
@HazardTWOct 02.2007 — Did you mean mail()?[/QUOTE]

DOH!!! LMAO, yep that's what I meant.

Man I wish I could edit that ?
×

Success!

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