Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => Mail

email sending problem..

the mail() function

Moderators: macek, egami, gesf

email sending problem..

Postby cinoz » Wed Oct 27, 2004 8:56 pm

hi.. i have this problem where my email can't be sent through my contact us form.. this is the following error which occur..

[Thu Oct 28 13:01:44 2004] [error] PHP Warning: mail(): SMTP server response: 550 5.7.1 Unable to relay for irbz@lycos.com in c:\inetpub\wwwroot\feedback.php on line 18

can anyone suggest any configurations?
cinoz
New php-forum User
New php-forum User
 
Posts: 16
Joined: Sun May 23, 2004 10:00 am
Location: Kay Ell

Postby cinoz » Wed Oct 27, 2004 9:22 pm

my configuration in php.ini

[mail function]
; For Win32 only.
SMTP = localhost

; For Win32 only.
sendmail_from = me@localhost.com

; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path =
cinoz
New php-forum User
New php-forum User
 
Posts: 16
Joined: Sun May 23, 2004 10:00 am
Location: Kay Ell

Postby swirlee » Thu Oct 28, 2004 5:37 am

What mail server are you using? It looks like you're using one that you're not authorized to send mail through (for the address you're using).
User avatar
swirlee
Moderator
Moderator
 
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back

Postby Alexej Kubarev » Thu Oct 28, 2004 1:28 pm

the email that you set in php.ini must be approved by the MTA (server)
to relay messages..

It could be set up in a MTA's configuration
User avatar
Alexej Kubarev
Site Admin
Site Admin
 
Posts: 2223
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län

Postby cinoz » Thu Oct 28, 2004 4:43 pm

what mail server? errr... Internet Service Manager ? IIS?...hmm.. how to check wat am i using? .. by the way... wat is MTA? configuration?... i'm using php, apache, mysql - through EasyPhp Program.. Can u guys gimme simple instructions on how to figure all these stuff?. maybe a website.. thanx

NETWORK INFORMATION
-------------------
Server Name: eOffice2
Domain: TMMASTER
IP Address: 10.20.90.46
Subnet Mask: 255.255.255.0
Default Gateway: 10.20.90.251
DNS Servers: 200.15.14.14
200.15.14.16
WINS Server: 200.1.1.58

windows NT Server
Last edited by cinoz on Thu Oct 28, 2004 5:22 pm, edited 3 times in total.
cinoz
New php-forum User
New php-forum User
 
Posts: 16
Joined: Sun May 23, 2004 10:00 am
Location: Kay Ell

Postby cinoz » Thu Oct 28, 2004 4:55 pm

suppose for --

; For Win32 only.
sendmail_from = me@localhost.com

.. me@localhost.com, should i replace it with my own email address? or just leave it like that? the latest news i got in the Queue Directory is those email was delayed.. dem

this is in my apache:

# Port: The port to which the standalone server listens. Certain firewall
# products must be configured before Apache can listen to a specific port.
# Other running httpd servers will also interfere with this port. Disable
# all firewall, security, and other services if you encounter problems.
# To help diagnose problems use the Windows NT command NETSTAT -a
#
Port 8080

#
# ServerAdmin: Your address, where problems with the server should be
# e-mailed. This address appears on some server-generated pages, such
# as error documents.
#
ServerAdmin admin@localhost

#
# ServerName allows you to set a host name which is sent back to clients for
# your server if it's different than the one the program would get (i.e., use
# "www" instead of the host's real name).
#
# Note: You cannot just invent host names and hope they work. The name you
# define here must be a valid DNS name for your host. If you don't understand
# this, ask your network administrator.
# If your host doesn't have a registered DNS name, enter its IP address here.
# You will have to access it by its address (e.g., http://123.45.67.89/)
# anyway, and this will make redirections work in a sensible way.
#
# 127.0.0.1 is the TCP/IP local loop-back address, often named localhost. Your
# machine always knows itself by this address. If you use Apache strictly for
# local testing and development, you may use 127.0.0.1 as the server name.
#
ServerName localhost
cinoz
New php-forum User
New php-forum User
 
Posts: 16
Joined: Sun May 23, 2004 10:00 am
Location: Kay Ell


Return to PHP coding => Mail

Who is online

Users browsing this forum: No registered users and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron