Membership is FREE – with unlimited access to all features, tools, and discussions. Premium accounts get benefits like banner ads and newsletter exposure. ✅ Signature links are now free for all. 🚫 No AI-generated (LLM) posts allowed. Share your own thoughts and experience — accounts may be terminated for violations.

HELP please with php

Status
Not open for further replies.

cjj

Level 5
Legacy Platinum Member
Joined
Jul 16, 2004
Messages
350
Reaction score
0
I have an email-a-friend service set up but it wont work. When sending an email it throws up:

Warning: mail(): SMTP server response: 554
<[email protected]>: Recipient address rejected: Relay
access denied in
e:\domains\n\newflats.com\user\htdocs\emailafriend.php
on line 86
Your E-mail(s) have been sent. This window should close in 3 seconds

Line 86 is:
$_POST['email1'] && mail($_POST['email1'],$subject,$body,'From: ' .
$emailfrom . "\n");

Website is www.newflats.com
This happens on other computers too so must be something on the site and not the PC??

Please help
 

Big Bobs Domains

Level 2
Legacy Gold Member
Joined
Oct 12, 2004
Messages
49
Reaction score
0
cjj said:
I have an email-a-friend service set up but it wont work. When sending an email it throws up:

Warning: mail(): SMTP server response: 554
<[email protected]>: Recipient address rejected: Relay
access denied in
e:\domains\n\newflats.com\user\htdocs\emailafriend.php
on line 86
Your E-mail(s) have been sent. This window should close in 3 seconds

Line 86 is:
$_POST['email1'] && mail($_POST['email1'],$subject,$body,'From: ' .
$emailfrom . "\n");

Website is www.newflats.com
This happens on other computers too so must be something on the site and not the PC??

Please help
its sever problems its not configured right
 

cjj

Level 5
Legacy Platinum Member
Joined
Jul 16, 2004
Messages
350
Reaction score
0
Big Bobs Domains said:
its sever problems its not configured right

What do I have to do? Does this mean it is a problem with my hosting company? or something I can do myself?
 

stoned

Level 6
Legacy Platinum Member
Joined
Jul 22, 2004
Messages
665
Reaction score
0
Does it have SSL? And maybe try to CMOD this file "emailafriend.php" to 777. It probley is not allowed to execute its self.
 

buymydomainnames

Level 4
Legacy Gold Member
Joined
Jul 10, 2004
Messages
108
Reaction score
0
sounds like a good idea if u dont know how to do that pm me and ill give you a hand
 

darrenl

Level 8
Legacy Platinum Member
Joined
Sep 22, 2003
Messages
1,856
Reaction score
4
Why is their two && before the function mail?
 

aknal

Level 1
Legacy Platinum Member
Joined
Dec 8, 2004
Messages
12
Reaction score
0
It seems like your server OS is Windows based (IIS server or Apache). In that caseTry this

PHP:
<?php @$CDONTS = new COM("CDONTS.NewMail");

@$CDONTS->From = "[email protected]";

@$CDONTS->To = "[email protected]";

@$CDONTS->CC = "[email protected]";

@$CDONTS->BCC = "[email protected]";

@$CDONTS->Subject = "Test";

@$CDONTS->BodyFormat = 0;

@$CDONTS->MailFormat = 0;

@$CDONTS->AttachFile("c:\path_to_attachment\myattachment.pdf");

@$CDONTS->Body = "Whatevah!";

@$CDONTS->Send();

@$CDONTS->Close();

print "Done!";

?>


cjj said:
I have an email-a-friend service set up but it wont work. When sending an email it throws up:

Warning: mail(): SMTP server response: 554
<[email protected]>: Recipient address rejected: Relay
access denied in
e:\domains\n\newflats.com\user\htdocs\emailafriend.php
on line 86
Your E-mail(s) have been sent. This window should close in 3 seconds

Line 86 is:
$_POST['email1'] && mail($_POST['email1'],$subject,$body,'From: ' .
$emailfrom . "\n");

Website is www.newflats.com
This happens on other computers too so must be something on the site and not the PC??

Please help
 
Status
Not open for further replies.

Who has viewed this thread (Total: 1) View details

Who has watched this thread (Total: 4) View details

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Members Online

Premium Members

Upcoming events

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators

Top Bottom