I cannot get php to send an email. This works:
$ mail -s "My Subject" no****@gmail.com
My Message
^D
Cc:
[enter]
But this doesnt:
<?php
mail('no****@gmail.com', 'My Subject', 'My Message')
or
die('shit!');
?>
I don't know where to look for error messages so I have no further
info. Anyone got a clue?
P.S.
Im using ssmtp, and php.ini contains:
sendmail_path =ssmtp 9 1951
On Jun 14, 12:22 pm, nob...@gmail.com wrote:
I cannot get php to send an email. This works:
$ mail -s "My Subject" nob...@gmail.com
My Message
^D
Cc:
[enter]
But this doesnt:
<?php
mail('nob...@gmail.com', 'My Subject', 'My Message')
or
die('shit!');
?>
I don't know where to look for error messages so I have no further
info. Anyone got a clue?
P.S.
Im using ssmtp, and php.ini contains:
sendmail_path =ssmtp
What do you mean by "doesn't work?" As in you never get the mail? As
in the script dies with "shit?" As in you get an error message?
On Jun 14, 5:55 pm, ZeldorBlat <zeldorb...@gmail.comwrote:
On Jun 14, 12:22 pm, nob...@gmail.com wrote:
I cannot get php to send an email. This works:
$ mail -s "My Subject" nob...@gmail.com
My Message
^D
Cc:
[enter]
But this doesnt:
<?php
mail('nob...@gmail.com', 'My Subject', 'My Message')
or
die('shit!');
?>
I don't know where to look for error messages so I have no further
info. Anyone got a clue?
P.S.
Im using ssmtp, and php.ini contains:
sendmail_path =ssmtp
What do you mean by "doesn't work?" As in you never get the mail? As
in the script dies with "shit?" As in you get an error message?
No email, mail function returns false, and the die clause kicks in ...
On Jun 14, 1:22 pm, nob...@gmail.com wrote:
On Jun 14, 5:55 pm, ZeldorBlat <zeldorb...@gmail.comwrote:
On Jun 14, 12:22 pm, nob...@gmail.com wrote:
I cannot get php to send an email. This works:
$ mail -s "My Subject" nob...@gmail.com
My Message
^D
Cc:
[enter]
But this doesnt:
<?php
mail('nob...@gmail.com', 'My Subject', 'My Message')
or
die('shit!');
?>
I don't know where to look for error messages so I have no further
info. Anyone got a clue?
P.S.
Im using ssmtp, and php.ini contains:
sendmail_path =ssmtp
What do you mean by "doesn't work?" As in you never get the mail? As
in the script dies with "shit?" As in you get an error message?
No email, mail function returns false, and the die clause kicks in ...
Turn up error_reporting and enable display_errors in php.ini. That
will give you any error messages that might be there.
ZeldorBlat wrote:
On Jun 14, 1:22 pm, nob...@gmail.com wrote:
On Jun 14, 5:55 pm, ZeldorBlat <zeldorb...@gmail.comwrote:
On Jun 14, 12:22 pm, nob...@gmail.com wrote:
I cannot get php to send an email. This works:
$ mail -s "My Subject" nob...@gmail.com
My Message
^D
Cc:
[enter]
But this doesnt:
<?php
mail('nob...@gmail.com', 'My Subject', 'My Message')
or
die('shit!');
?>
I don't know where to look for error messages so I have no further
info. Anyone got a clue?
P.S.
Im using ssmtp, and php.ini contains:
sendmail_path =ssmtp
What do you mean by "doesn't work?" As in you never get the mail? As
in the script dies with "shit?" As in you get an error message?
No email, mail function returns false, and the die clause kicks in ...
Turn up error_reporting and enable display_errors in php.ini. That
will give you any error messages that might be there.
Sounded like a good idea but the default values were:
error_reporting = E_ALL & ~E_NOTICE
display_errors = On
so I reckon if there are error messages theyd be displayed ... which
isnt happening.
Is there a php error/message log?
..oO(no****@gmail.com)
>Sounded like a good idea but the default values were:
error_reporting = E_ALL & ~E_NOTICE
On a development machine it should _always_ be
error_reporting = E_ALL
or even
error_reporting = E_ALL | E_STRICT
Just as a side note, I can't help with your current problem.
Micha
On Jun 14, 5:22 pm, nob...@gmail.com wrote:
I cannot get php to send an email. This works:
$ mail -s "My Subject" nob...@gmail.com
My Message
^D
Cc:
[enter]
But this doesnt:
<?php
mail('nob...@gmail.com', 'My Subject', 'My Message')
or
die('shit!');
?>
I don't know where to look for error messages so I have no further
info. Anyone got a clue?
P.S.
Im using ssmtp, and php.ini contains:
sendmail_path =ssmtp
It works from the interactive php shell, so the conclusion is that
this is actually an apache problem, perhaps related to running in a
chroot. no****@gmail.com wrote:
On Jun 14, 5:22 pm, nob...@gmail.com wrote:
>I cannot get php to send an email. This works:
$ mail -s "My Subject" nob...@gmail.com My Message ^D Cc: [enter]
But this doesnt:
<?php mail('nob...@gmail.com', 'My Subject', 'My Message') or die('shit!'); ?>
I don't know where to look for error messages so I have no further info. Anyone got a clue?
P.S.
Im using ssmtp, and php.ini contains:
sendmail_path =ssmtp
It works from the interactive php shell, so the conclusion is that
this is actually an apache problem, perhaps related to running in a
chroot.
working from the command line is invoking the shell's mail, not
PHP's mail.
On Jun 15, 7:27 pm, bill <nob...@spamcop.netwrote:
nob...@gmail.com wrote:
On Jun 14, 5:22 pm, nob...@gmail.com wrote:
I cannot get php to send an email. This works:
$ mail -s "My Subject" nob...@gmail.com
My Message
^D
Cc:
[enter]
But this doesnt:
<?php
mail('nob...@gmail.com', 'My Subject', 'My Message')
or
die('shit!');
?>
I don't know where to look for error messages so I have no further
info. Anyone got a clue?
P.S.
Im using ssmtp, and php.ini contains:
sendmail_path =ssmtp
It works from the interactive php shell, so the conclusion is that
this is actually an apache problem, perhaps related to running in a
chroot.
working from the command line is invoking the shell's mail, not
PHP's mail.
The problem was that there was no mail program in the chroot I run
Apache in. Installed one and got it working and alls fine now. Silly
oversight really.
On Jun 15, 7:27 pm, bill <nob...@spamcop.netwrote:
nob...@gmail.com wrote:
On Jun 14, 5:22 pm, nob...@gmail.com wrote:
I cannot get php to send an email. This works:
$ mail -s "My Subject" nob...@gmail.com
My Message
^D
Cc:
[enter]
But this doesnt:
<?php
mail('nob...@gmail.com', 'My Subject', 'My Message')
or
die('shit!');
?>
I don't know where to look for error messages so I have no further
info. Anyone got a clue?
P.S.
Im using ssmtp, and php.ini contains:
sendmail_path =ssmtp
It works from the interactive php shell, so the conclusion is that
this is actually an apache problem, perhaps related to running in a
chroot.
working from the command line is invoking the shell's mail, not
PHP's mail.
BTW, I was talking about it working in "the interactive php shell" ...
$ php -a ... This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Bruce W...1 |
last post by:
In my effort to learn PHP I'm playing with some simple email scripts. They
worked a few days ago but they stopped working. The only thing I've done to
this Windows 2000 PC in this time was a...
|
by: Data Goob |
last post by:
This one has me stumped.
How did SuSE disable the mail() function in their RPM'd version of PHP?
( This is their install-version of PHP with RPMs not what you download
from PHP.net )
I have...
|
by: Tom Petersen |
last post by:
Ok, I'm 99.9999999999999999999% sure there haven't been any code changes,
since the date stamps of the code are older than any email 'failures'
The email piece quit working using the mail.send. ...
|
by: DigitalRick |
last post by:
I have been running CDONTS in my ASPpages to send emails to me sent from my
guestbook. It had been working fine untill I upgraded to Server 2003 (I am
also running Exchange 2003) all locally. I...
|
by: Dushyant |
last post by:
Hi everyone,
I am working on an application, where I need to mail some xml files as
attachments. I tried to use System.Diagnostic.Process class but it does not
provide any help for attaching a...
|
by: shror |
last post by:
hi every body,
i have a problem which is when i was checking my mail() form it work
fine but the problem is that the form configuration is not set
correctly, in details:
the from var is not...
|
by: Frank |
last post by:
Hi,
I am hoping to find out the differences between the
System.Net.Mail and System.Web.Mail.
Can some nice folks post the differences; or some urls which show the
differences?
Great Thanks...
|
by: nextpulse |
last post by:
On Fedora, using php5. The mail() function returns a success - but the
mail itself is not actually sent.
How do I go about debugging this? Do I need to do this at the linux
command level to ensure...
|
by: undbund |
last post by:
Hi I am creating a newsletter system. The software should run from
desktop computer (localhost) but be able to send email to anyone on
the internet. Can you guys give me some ideas on how to...
|
by: sui |
last post by:
this is my code
import sys, os, glob, datetime, time
import smtplib
## Parameters for SMTP session
port=587
SMTPserver= 'smtp.gmail.com'
SMTPuser= '...@gmail.com'
pw= 'fill in here'...
|
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,...
|
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...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
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...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
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,...
|
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...
|
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 ...
| |