473,396 Members | 1,996 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

smtp server error

First of all, I'm new to PHP. For my website I have some PHP scripts to run
a photo database. New users have to register them selfs. After registring
the new user is getting an e-mail maid by an php script. But if the user
clicks on the button to sent his info, so the PHP can sent him an e-mail, it
always results in this error
Warning: mail(): SMTP server response: 451 Request action aborted; local
processing error in {the file en line number}
In the PHP.ini smtp = localhost is set {I'm running apache under windows XP
pro) and have a mail server on the same server.

Hope someone can help me.

Sorry for the bad english..

--
# Antwoord onderaan en op een lege regel, dus niet achter >>> tekens #
Ik lees alleen mail gepost naar onderstaand adres.
Mi**@familie-smit.nl


Jul 17 '05 #1
2 4674
On Wed, 17 Mar 2004 23:06:31 +0100, Mike Obiku wrote:
First of all, I'm new to PHP. For my website I have some PHP scripts to run
a photo database. New users have to register them selfs. After registring
the new user is getting an e-mail maid by an php script. But if the user
clicks on the button to sent his info, so the PHP can sent him an e-mail, it
always results in this error
Warning: mail(): SMTP server response: 451 Request action aborted; local
processing error in {the file en line number}
In the PHP.ini smtp = localhost is set {I'm running apache under windows XP
pro) and have a mail server on the same server.

Hope someone can help me.

Sorry for the bad english..


No problem, your English is better than most of my colleagues.

I don't know if I can help but here are some questions for you anyways:

1) What mail (SMTP) Server are you using?

2) Could you post the relevant PHP code, please?

3) Are you able to send mail locally, from, for example Eudora or Mozilla
mail using "localhost" as the SMTP server in the configuration for your
email application?

If not, then there is something wrong with your localhost mail setup.

later...

--
Jeffrey D. Silverman | jeffrey AT jhu DOT edu
Website | http://www.wse.jhu.edu/newtnotes/

Jul 17 '05 #2
Jeffrey Silverman wrote:

No problem, your English is better than most of my colleagues. Thanks for the complement

<snip>
1) What mail (SMTP) Server are you using? I use ISMail, from Instantservers.
2) Could you post the relevant PHP code, please?
This is a little peace of the PHP code
if ($age == "adult") {
if ($Globals['emailverify'] == "yes") {
$query = "SELECT userid FROM {$Globals['pp_db_prefix']}users
WHERE username='$pick_username' AND joindate='$joindate' LIMIT 1";
$resulta = ppmysql_query($query,$link);
list( $theuid ) = mysql_fetch_row($resulta);
ppmysql_free_result($resulta);

require_once("languages/{$Globals['pplang']}/emails.php");

$email_from = "From: {$Globals['adminemail']}";
$letter = $Globals['pp_lang']['emailreg'];
$subject = $Globals['pp_lang']['emailrsub'];

mail( $email, $subject, $letter, $email_from ); <===

$done = "{$Globals['pp_lang']['thanksreg']}<p>

<a href=\"{$Globals['maindir']}/index.php\"><font
class=\"medium\">
{$Globals['pp_lang']['retfront']}
{$Globals['galleryname']}</font></a>";

diewell( $done );
}
}
The line with the arrow is the line where the browser normaly returns the
following fault:
Warning: mail(): SMTP server response: 451 Request action aborted; local
processing error in c:\www\register.php on line 491
If I change teh smtp setting in the php.ini file to smtp = (ipadres of
mailserver), it results in the same fault as if i have set smtp = localhost.
When I change it to my ISP mailserver, no mail is sent.
3) Are you able to send mail locally, from, for example Eudora or
Mozilla mail using "localhost" as the SMTP server in the
configuration for your email application? If you mean, can you sent a e-mail form one pc to a other pc whitin my
domain. Yes. I have 3 pc, one of them is my web and e-mail server. On that
pc I changed smtp setting in the php.ini to localhost an after that to the
IP of the PC. In both cases it return an error. If I change it to the
mailserver of my ISP, it doesn't return a error. Only no one wil get a
email.
If not, then there is something wrong with your localhost mail setup.

later...

--
# Antwoord onderaan en op een lege regel, dus niet achter >>> tekens #
# Reply at the bottom and on a empty line, not behind any >>> sign #
Ik lees alleen mail gepost naar onderstaand adres.
I only read mail sent to the adres at the bottom.
Mike@familie-smit_punt_nl (vervang _punt_ voor een .)
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Mark Carter | last post by:
I'm trying to create a mail server in Twisted. I either get SMTPSenderRefused or SMTPException: SMTP AUTH extension not supported by server. What do I need to do to get it to work?
4
by: Alex Hunsley | last post by:
I am using the smtp module to send emails via a local SMTP server on our network. I am failing with "connection refused" error, even though we definitely have an smtp server running on port 25! ...
7
by: Nancy | last post by:
Hi, Is there any one knows, if I want to use mod_python to handle my html form, I must have a SMTP server on my PC(winxp pro)? Where can I get a free SMTP server? I cann't follow mod_python's...
2
by: David | last post by:
Hi Group, I'm having a few problems with getting an SMTP server configured on my Windows 2000 Server web server. My web server is co-located at my hosts and i use VNC to remotely access the web...
1
by: bivin | last post by:
hai i am requesting your technical support. please help me. i have been working with this for five days. the problem is relating with the smtp. i am trying to send an email from the asp.net...
3
by: Charlie | last post by:
Hi: Using the sMTP class and my ISP as smtp server, I sometimes get the following message: "The message could not be sent to the SMTP server. The transport error code was 0x800ccc60. The...
5
by: Charlie | last post by:
Hi: I'm working on an e-commerce site. Using the SMTP class, my site sends out confirmation messages. It works most of the time, but sometimes raises an error. I need a way of making sure it...
34
by: antonyliu2002 | last post by:
I've set up the virtual smtp server on my IIS 5.1 like so: 1. Assign IP address to "All Unassigned", and listen to port 25. 2. Access Connection granted to "127.0.0.1". 3. Relay only allow...
7
by: oopsbabies | last post by:
Hello everyone, I am using Apache 1.3.33 as the web server and PHP version 4.3.10. My machine is using Windows XP 2002 professional edition which comes with a Windows firewall. I am using McAfee...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.