/    Sign up×
Community /Pin to ProfileBookmark

E-Mail problems

I am getting an error when I try to send e-mail through php…Warning: mail(): SMTP server response: 550 5.7.1 Unable to relay for [email][email protected][/email] in c:inetpubwwwrootaaa.php on line 15

my code is

[code=php]<?php
$to = “[email protected]”;
$from = “USER”;
$subject = “Test”;
$body = “This is just a test message”;
print “Thanks for contacting us.<br><br>”;
mail ($to,$subject,$body,$from);
?>[/code]

I’ve seen a lot of email codes and to me this looks like the same but it doesn’t work, anybody know what I’m doing from?

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@HauntedauthorMay 01.2004 — Well I fixed part of it so I no longer got an error (I had to do something with IIS) now it shows that it was sent...but I never got the mail ?
Copy linkTweet thisAlerts:
@Ben_RogersMay 01.2004 — You did change the adress to your own, right?
Copy linkTweet thisAlerts:
@HauntedauthorMay 01.2004 — yea lol, and I've tried sending it to two different e-mails that I have...one of yahoo and one of comcast just to make sure it's not just a yahoo problem or something.
Copy linkTweet thisAlerts:
@HauntedauthorMay 02.2004 — BUMP
×

Success!

Help @Haunted 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 6.17,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...