Link to home
Start Free TrialLog in
Avatar of zahidrahim
zahidrahim

asked on

mail configuration

i have setup my own server using php triad i-e Apache webserver Windows OS. everything working fine with static ip. But i never configure sending mails from our own server. i am trying to solve the issue using

[mail function]
; For Win32 only.
SMTP = 202.38.49.163 //our email server address
smtp_port = 25

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

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path =




then again



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

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

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path =


Anyone can spoon feed me please. or tell me some usefull way to solve this problem.
Avatar of ahoffmann
ahoffmann
Flag of Germany image

do you have permission to send mails on 202.38.49.163
you can check with
  telnet 202.38.49.163 25

I also guess that your  sendmail_from=  should have a name valid for 202.38.49.163
Avatar of zahidrahim
zahidrahim

ASKER

what can be the valid name for sendmail_from? and is there not any simple way to configure all this.
> what can be the valid name for sendmail_from?
you have to ask the admins of 202.38.49.163

> is there not any simple way to configure all this.
3 variables to configure, what should be simpler?
Hello ahoffmann,
                       thanx 4 all the so far help. well i am trying to use telnet 202.38.49.163 on command prompt but it is not connecting with port 23 error. My email server and the webserver are 2 diffrent machines. Now what should i do. should i configure smtp or email server on my webserver as well? or what? So confuze as i need this configured ASAP.
ASKER CERTIFIED SOLUTION
Avatar of ahoffmann
ahoffmann
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The sendmail_from is the email address used to generate the emails. It is not the server IP or server name.

The sendmail_from is not necessarily the same thing as the From: address or the Reply-To: address, but I think if you don't supply the From: or the Reply-To: the FROM is used.

FROM is the SMTP command to tell the server what user of the server is sending email. It is used to initiate the whole thing.

This user will need to be allowed to send email.

As far as I know PHP does not natively support authenticated SMTP, though you can do your own using Sockets and clever stuff like that.