Hello again.
Mail() function in my php doesn't work.
I've got very simple script:
<?
mail("bl*****@j abberpl.org","T est","Test");
?>
My php.ini important lines are:
sendmail_path = /usr/sbin/poczta.sh
log_errors = On
error_log = /var/log/php.log
error_reporting = E_ALL
sendmail_path was earlier set to sendmail, but it doesn't work so i
tried to debug it.
error log works fine, but it doesn't show any error connected with mail
function.
/usr/sbin/poczta.sh is my script which contains:
#!/bin/bash
echo "mail() function was used" >>/tmp/php_MAIL.log
Anyone has got an idea?
Cheers,
--
Rafal Bluszcz Zawadzki
JabberPL.org SysAdmin
---------------------- 7 1791
does the script show an error?
If not the mail function is working.
Are you sure the address your sending it to, doesnt have spam filtering on,
and hasn't caught the mail as spam?
- Ali
"Rafal Zawadzki" <bl*****@jabber pl.org> wrote in message
news:d6******** ***@node2.news. atman.pl... Hello again.
Mail() function in my php doesn't work.
I've got very simple script:
<? mail("bl*****@j abberpl.org","T est","Test"); ?>
My php.ini important lines are:
sendmail_path = /usr/sbin/poczta.sh log_errors = On error_log = /var/log/php.log error_reporting = E_ALL
sendmail_path was earlier set to sendmail, but it doesn't work so i tried to debug it.
error log works fine, but it doesn't show any error connected with mail function.
/usr/sbin/poczta.sh is my script which contains:
#!/bin/bash echo "mail() function was used" >>/tmp/php_MAIL.log
Anyone has got an idea?
Cheers, -- Rafal Bluszcz Zawadzki JabberPL.org SysAdmin ----------------------
Alistair Baillie SS2002 napisa³(a): does the script show an error?
If not the mail function is working.
This script doesn't create needed file.
Are you sure the address your sending it to, doesnt have spam filtering on, and hasn't caught the mail as spam?
YES.
--
Rafal Bluszcz Zawadzki
JabberPL.org SysAdmin
----------------------
What do you mean, it doesnt create the required file?
The one line of code you gave, doesnt tell it to create a file?
"Rafal Zawadzki" <bl*****@jabber pl.org> wrote in message
news:d6******** ***@node2.news. atman.pl... Alistair Baillie SS2002 napisa³(a): does the script show an error?
If not the mail function is working.
This script doesn't create needed file.
Are you sure the address your sending it to, doesnt have spam filtering on, and hasn't caught the mail as spam?
YES.
-- Rafal Bluszcz Zawadzki JabberPL.org SysAdmin ----------------------
*** Rafal Zawadzki wrote/escribió (Tue, 17 May 2005 14:01:32 +0200): sendmail_path = /usr/sbin/poczta.sh
sendmail_path was earlier set to sendmail, but it doesn't work so i tried to debug it.
Does sendmail work from command line? Does PHP send mail if sendmail_path
not set? Does the postmaster user get the message returned?
#!/bin/bash echo "mail() function was used" >>/tmp/php_MAIL.log
Does the script print the line? Does the script work from command line?
Does apache user have permission to write on /tmp/php_MAIL.log?
--
-- Álvaro G. Vicario - Burgos, Spain
-- http://bits.demogracia.com - Mi sitio sobre programación web
-- Don't e-mail me your questions, post them to the group
--
Alvaro G Vicario napisał(a): Does sendmail work from command line? Does PHP send mail if sendmail_path not set? Does the postmaster user get the message returned?
Yes, No, No. #!/bin/bash echo "mail() function was used" >>/tmp/php_MAIL.log
Does the script print the line? Does the script work from command line? Does apache user have permission to write on /tmp/php_MAIL.log?
3*Yes.
--
Rafal Bluszcz Zawadzki
JabberPL.org SysAdmin
----------------------
*** Rafal Zawadzki wrote/escribió (Wed, 18 May 2005 10:05:10 +0200): Does the script print the line? Does the script work from command line? Does apache user have permission to write on /tmp/php_MAIL.log?
3*Yes.
I'd say that your sendmain clone doesn't not like the message then. Try the
following:
1) Check return value from mail() function
2) Provide a valid "From" address
--
-- Álvaro G. Vicario - Burgos, Spain
-- http://bits.demogracia.com - Mi sitio sobre programación web
-- Don't e-mail me your questions, post them to the group
--
Alvaro G Vicario napisał(a): *** Rafal Zawadzki wrote/escribió (Wed, 18 May 2005 10:05:10 +0200):
Does the script print the line? Does the script work from command line? Does apache user have permission to write on /tmp/php_MAIL.log?
3*Yes.
I'd say that your sendmain clone doesn't not like the message then. Try the following:
1) Check return value from mail() function 2) Provide a valid "From" address
Wait, script print the line ONLY from command line.
--
Rafal Bluszcz Zawadzki
JabberPL.org SysAdmin
---------------------- This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jim Seymour |
last post by:
I have a contact form that uses PHP's mail() function. It recently
came to my attention that (some?) MS-Windows mail servers may not
properly process data given to the mail() function that's only
newline-terminated.
The mail() function takes up to five parameters:
mail(recipient, subject, message, ])
The ones of interest here are the first four. The questions are
|
by: Groupe Eurower |
last post by:
Hi,
I would like contribute to the PHP development but i don't really know where
i can submit my codes !
In fact, i'm a Web Hosting and i authorize the utilisation of the mail()
function.
Meanwhile, this function permit to send mail anonyme ! (the sender is the
apache user in fact)
|
by: Ram |
last post by:
Hi Friends
I want to develope a custom control in .net which can be used with any
project. I am writing a function in that class which I want to take any
object as parameter. For that I have used Object class as parameter.
Now it can take any object as its parameter. But the problem is that I
want to access the values of the private or public member variables of
the passed object, for which I may have to typecast the Object class...
|
by: Tobierre |
last post by:
Hi all,
I've created the below function to automatically send me an alert in outlook
when someone completes various forms on my website.
The problem though is that mail reports that I have only 1 of the 3 required
parameters defined!
I have no idea where this is going wrong, because as far as I can tell I
have defined all 3 parameters! Can anyone spot the problem?
|
by: Lieven |
last post by:
Hey,
I had a hard disc problem last week on my server. I replaced the disc and
copied al the files to the new hard disc, everything works fine again except
some php scripts that are using the mail() function. When executing these
scripts I get this error:
"500 Internal Server Error
The server encountered an internal error or misconfiguration and was unable
to complete your request.
| |
by: Kurda Yon |
last post by:
Hi everybody,
I have a problem with the function "mail". It returns "true"
but supposed recipients receive nothing. My code is as follows:
$to = $form;
$subject = "E-mail Verification";
$body = 'The first line\n';
$body .= 'The second line.';
$headers = 'From: webmaster@example.com';
|
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 working and the from is set to be my host provider
email is the sender, so they told me to configure the php.ini file and
i dont know what is this file and how to configure it.
thanks in advance
|
by: Abersparky |
last post by:
Can someone help me with the mail() function???
The below is just to get myself going but I can't seem to get it
working... is there something else I should be doing? I checked
phpinfo() and the sendmail values are below. Those mean it's turn on
right?
sendmail_from
me@localhost.com
sendmail_path
|
by: phpmagesh |
last post by:
Hi,
I am using mail function in my php page, As soon i update the details, i have to send mail to the customer with the updated details,
problem is when i send mail it simple through waring msg as:
can anyone help me why such problem occurs, how to over come this problem.
|
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: 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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
| |
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: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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...
| |