Hoping someone can help me out with this problem. First problem, is I
am unable to view my php error log. In my php.ini I have my log in
/var/www/logs/php_error_log. However, it has remained empty.
Secondly, my sendmail works fine from command prompt. However, when
trying to send mail through a php script (I have tried a couple), it
says it is succesfull, but my mail logs show nothing going out. No
error messages. Can someone take a look at my snippets below of my
logging and my mail options and suggest some things for me to try
please? Thanks. :)
-Wayne Stevenson
[PHP]
;;;;;;;;;;;;;;; ;;;;
; About this file ;
;;;;;;;;;;;;;;; ;;;;
;
; This is the recommended, PHP 4-style version of the php.ini-dist
file. It
; sets some non standard settings, that make PHP more efficient, more
secure,........
;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;
; Error handling and logging ;
;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;
; error_reporting is a bit-field. Or each number up to get desired
error
; reporting level
; E_ALL - All errors and warnings
; E_ERROR - fatal run-time errors
; E_WARNING - run-time warnings (non-fatal errors)
; E_PARSE - compile-time parse errors
; E_NOTICE - run-time notices (these are warnings which often
result
; from a bug in your code, but it's possible that
it was
; intentional (e.g., using an uninitialized
variable and
; relying on the fact it's automatically
initialized to an
; empty string)
; E_CORE_ERROR - fatal errors that occur during PHP's initial
startup
; E_CORE_WARNING - warnings (non-fatal errors) that occur during
PHP's
; initial startup
; E_COMPILE_ERROR - fatal compile-time errors
; E_COMPILE_WARNI NG - compile-time warnings (non-fatal errors)
; E_USER_ERROR - user-generated error message
; E_USER_WARNING - user-generated warning message
; E_USER_NOTICE - user-generated notice message
;
; Examples:
;
; - Show all errors, except for notices
;
;error_reportin g = E_ALL & ~E_NOTICE
;
; - Show only errors
;
;error_reportin g = E_COMPILE_ERROR |E_ERROR|E_CORE _ERROR
;
; - Show all errors
;
error_reporting = E_ALL
; Print out errors (as a part of the output). For production web
sites,
; you're strongly encouraged to turn this feature off, and use error
logging
; instead (see below). Keeping display_errors enabled on a production
web site
; may reveal security information to end users, such as file paths on
your Web
; server, your database schema or other information.
display_errors = On
; Even when display_errors is on, errors that occur during PHP's
startup
; sequence are not displayed. It's strongly recommended to keep
; display_startup _errors off, except for when debugging.
display_startup _errors = Off
; Log errors into a log file (server-specific log, stderr, or
error_log (below))
; As stated above, you're strongly advised to use error logging in
place of
; error displaying on production web sites.
log_errors = On
; Store the last error/warning message in $php_errormsg (boolean).
track_errors = Off
; Disable the inclusion of HTML tags in error messages.
;html_errors = Off
; String to output before an error message.
;error_prepend_ string = "<font color=ff0000>"
; String to output after an error message.
;error_append_s tring = "</font>"
; Log errors to specified file.
error_log = /var/www/logs/php_error_log
; Log errors to syslog (Event Log on NT, not valid in Windows 95).
error_log = syslog
[mail function]
; For Unix only. You may supply arguments as well (default: "sendmail
-t -i").
sendmail_path = /usr/sbin/sendmail -t -i
sendmail_from = wa***@allcanadi an.org 0 4482 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Alvaro G Vicario |
last post by:
I'm trying to send e-mail using PEAR's Mail class--for testing purposes
actually, I've never had any problem with conventional mail(). This is
what my code looks like:
$mail_object=&Mail::factory('sendmail', $params);
if($mail_object->send($to, $headers, $body)){
header('Location: '.$url_ok);
}else{
header('Location: '.$url_ko);
}
|
by: Sam Hou |
last post by:
Dear all,
I don't know where my problem is. Hopefully someone can give me
some hint to explore the problem more. I am running Apache 2.0.48
wih PHP 4.3.4. The apache is running as nobody. I want to use the
mail() to send out the email from a web page but it can't work. The
web server is on the red hat linux 9.0 with rpm sendmail-8.12.8-9.90
and sendmail-cf.
In the begining, I got the error message, 'SYSERR(nobody) can not
write...
|
by: Babaloo |
last post by:
Hello,
I am having a problem with PHP 4.2.2 and RH 8. PHP is working fine except
email.
I have a test script to send mail, I have sendmail_path =
'/usr/lib/sendmail -t -i' set in php.ini, sendmail can send mail from the
command line but if I use the script I get the following error on the http
log file:
|
by: Gernot Hillier |
last post by:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi!
I'm the developer of a Linux ISDN application which uses embedded Python for
controlling the communication. It starts several threads (i.e. one for each
incoming call and for outgoing faxes) which run Python scripts in embedded
Python interpreters which in turn do the real communication stuff. Any
incoming data or confirmations of done jobs are sent via Email.
|
by: Aaron Powell |
last post by:
I am writing a program for a study I am doing where I must contact several
different organisations stored in a database I compiled, but I need to send
each email one at a time so they don't know who else I sent to.
I tested my sendmail and it works well, but I am having a problem with chomp
in the case I am using it. When getting $email, if I do not say $email\n,
nothing will be displayed to the command prompt. This leads me to believe...
| |
by: Rene |
last post by:
Hi all
i need some help. i try to send mail with the following code.
Private Sub LinkButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LinkButton1.Click
Dim mailMsg As New MailMessage
mailMsg.From = rene.fehr@netradox.com
mailMsg.To = info@netradox.com
mailMsg.Subject = "Testmail vom Webforum"
mailMsg.Body = "some body text"
|
by: clevrmnkey |
last post by:
I've had nothing but trouble from the System.Net.Mail objects, but I
finally need to make them work, and I can't for the life of me see what
I'm doing wrong.
I pared back my mail transaction to the bare minimum:
System.Net.Mail.SmtpClient smtp = new System.Net.Mail.SmtpClient("<my
mail server IP>", 25);
smtp.Send("<one of my email addresses>", "<another of my email
addresses>", "Hello", "World");
|
by: sudipmondal440 |
last post by:
import javax.mail.*;
import javax.mail.internet.*;
import java.util.*;
import javax.activation.*;
import javax.swing.text.*;
import javax.swing.*;
import java.io.*;
import java.awt.*;
import javax.activation.DataSource;
import javax.mail.internet.MimeMessage;
|
by: Benedict Verheyen |
last post by:
Hi,
i get an "Unable to relay for" when trying to send an email from within
my network to an email address not on my domain.
I don't understand why it says "relaying" as i'm sending from an
internal domain user to an external user.
Email server is exchange 2003
See this trace
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| | |