I have been able to use the PEAR package code on a godaddy server that has PEAR installed and everything works as intended, however when I try to execute the code on my local machine I receive no emails and no error messages that gives me any indication of what is going wrong.
From what I have gathered from numerous sources on the web is that once I have installed PEAR I need to setup the include_path
in the "php.ini"
Also in the php.ini file I have added
[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = localhost
; http://php.net/smtp-port
smtp_port = 25
; For Win32 only.
; http://php.net/sendmail-from
sendmail_from = myemail@gmail.com ****[Hidding real email address]****
PHP installation as followed:
c:\php
c:\php\pear
include_path = ".;c:\php\pear"
c:\php\pear
- gathered from pear list
Any help on this matter will be greatly appreciated.
I needed to install an SMTP mail server on my machine. You can install one on a windows machine by following the answer in this question. Need a lightweight, free, windows SMTP server