Mail Function

I have installed a  mail function called in my PHP script but since I installedlled php on my dedicated server it does not work so i fear i have not set the correct variables in the php.ini file

can anyone tell me what i hve to set in this to make the mail funcion work.

thanks in advance

andrew
LVL 20
REA_ANDREWAsked:
Who is Participating?
 
star_trekCommented:
you can use
me@localhost.com
0
 
dr_dedoCommented:
check documentation came along this script. also check the path of sendmail in your php.ini
0
 
star_trekCommented:
in php.ini, you can add something like the following

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

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

0
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

 
REA_ANDREWAuthor Commented:
ok cheers

I have set one paramter the 127.0.0.1

this is a dedicated server so these have to reflect all sites that are on this server. Here are my updated variables

[mail function]
; For Win32 only.
SMTP = 127.0.0.1 ; for Win32 only
smtp_port = 25
sendmail_from= me@localhost.com ; for Win32 only

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

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

; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =




Please could you point out where am I going wrong and do I have to have a

sendmail_from= me@localhost.com ; for Win32 only

thanks

Andrew
0
 
star_trekCommented:
I am assuming you are using windows server and the mail server is on same machine, if not

[mail function]
; For Win32 only.
SMTP = smtp.my.isp.net

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


If using linux server with sendmail then use
[mail function]
; Setup for Linux systems
sendmail_path = /usr/sbin/sendmail -t

; Setup for Linux systems
sendmail_from = me@myserver.com
0
 
REA_ANDREWAuthor Commented:
Cheers i AM USING WINDOWS server and I have to use 127.0.0.1 as the smtp server so what would the email thing look like, is it necessary?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.