I just installed to a new server and am trying to iron out certain
bugs.
Right now I have a problem with the mail function. I always get a
FALSE return value when I call the mail function.
This same code was working on my old server.
I've done research and spent hours trying to figure out why it won't
work to no avail. Here's what I know:
1. No errors are appearing in the PHP error log
2. The sendmail path is properly configured in php.ini
3. If I use the exec function to manually call sendmail it works
4. My PHP version is 4.3.10
What else do you need to know to help me?
Any and all sane suggestions appreciated. 6 2282
On Thu, 12 Jan 2006 18:37:39 -0800, sellam wrote: I just installed to a new server and am trying to iron out certain bugs.
Right now I have a problem with the mail function. I always get a FALSE return value when I call the mail function.
This same code was working on my old server.
I've done research and spent hours trying to figure out why it won't work to no avail. Here's what I know:
1. No errors are appearing in the PHP error log 2. The sendmail path is properly configured in php.ini 3. If I use the exec function to manually call sendmail it works 4. My PHP version is 4.3.10
What else do you need to know to help me?
Any and all sane suggestions appreciated.
It looks like sendmail accepts the message as valid but can't send
it for some reason. Try to check sendmail's logs.
--
nn = MaKroZ =
(oo) My bookmarks:
| | http://www.theisplist.com
|/\| http://www.tenpieces.com
Message-ID: <11************ **********@g43g 2000cwa.googleg roups.com> from se****@vintaget ech.com contained the following: Right now I have a problem with the mail function. I always get a FALSE return value when I call the mail function.
I don't have a solution but if it's any consolation, I'm working on the
same problem...
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
On Fri, 13 Jan 2006 04:37:39 +0200, <se****@vintage tech.com> wrote: This same code was working on my old server.
Is it local server?
If so - have you reconfigured php.ini?
Make sure you have access to smtp mail server.
---
Exact Meta Search | Major Search Engine http://exactsearcher.com
Web Design Essex | Multimedia | Printing http://nextwave.co.uk
Thanks to all for your replies so far.
I should add that the e-mail is not being sent. The mail function
returns false and no e-mail is received at the receiving mailbox.
My web server and mail server are on the same machine. On my old
server I was running sendmail, but now I'm running Postfix with the
sendmail wrapper. I doubt this has anything to do with it but you
never know. I've observed more stupid things before.
As I mentioned, as far as I can tell (and I've check and re-checked
multiple times) configuration is correct across all configuration files
(Apache2, PHP, Postfix, etc.)
I was hoping a g00r00 who has been through this before would find my
plea and take pity on me.
I'll do some further investigating (including checking the Postfix
logs) and post an update.
Sellam
Ok, I figured it out. It was a simple fix: all the work was in
figuring out what was wrong :(
My /var/log/mail.err file was showing thus:
Jan 19 10:54:47 vintagetech postfix/sendmail[15252]: fatal: Recipient
addresses must be specified on the command line or via the -t option
In your php.ini configuration file, make sure the sendmail command has
the proper options specified (and check to make sure the path is
correct while you're at it):
; For Unix only. You may supply arguments as well (default: "sendmail
-t -i").
sendmail_path = /usr/sbin/sendmail -t -i
(Remember to restart Apache once you've made any configuration
changes.)
The standard SuSE install for some reason did not set up this item
correctly (I had to add the command line options "-t -i").
Everything works...hooray!
Now I have to see about this e-mail injection issue. Judging from my
log, it looks like the fucking spammers have found me >:( This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: James M. Luongo |
last post by:
Hello,
I am having problems with the mail() function, but I don't know what the
problems are.
Here is a snippet of code:
$to = "jmluongo@comcast.net";
$from = "Gallery@gafok.com";
$subject = "Gallery Comment";
|
by: Ralf Hornbeck |
last post by:
Hi,
I have just uploaded an older PHP project I have written by myself up to my
new webserver. On this server PHP is running in version 4.3.2 and this seems
to result in some trouble, since the project worked out pretty fine some
weeks ago under PHP 4.2.3 (I think).
My suggestion is that it has to do sth. with sessionhandling, but I am not
sure.
I don't think that the DB connection is responsible for the problems and I
|
by: dan glenn |
last post by:
I'm creating HTML emails from a PHP site and sending them out to an email
list (just about 40 people so far are on this list). I've tested and
confirmed that these emails work in yahoo.com's webmail. And I know they
work on *my* Outlook Express. But I have one person (I know of) who gets the
emails as plain text, so she sees the HTML code for the email instead of its
proper representation. She has, like myself, OE6, and other html emails...
|
by: Jack Smash |
last post by:
I am having lots of trouble with the mail function!
I simply send a confirmation email to someone who has registered on my
site - but thte message usually gets filtered or sent to the bulk mail
folder.
Can someone tell me what type of content I should put in the email to get
around the filter? All my content is so far is a thanks for registering
message - and a link for them to confirm their email address.
|
by: Hameed Khan |
last post by:
hi all,
i am getting some problems with my first socket
script. can any one of you point me why this is
happening. the server script suppose to accept one
connection at a time and send countdown to client
connected to it from a function through a separate
thread. and echo all the connections opened and
closed. the client script is working fine. it echoes
the countdown it recieve from server.
| |
by: Justin Lemkul |
last post by:
Hello all,
I am hoping someone out there will be able to help me. I am trying to install
a program that utilizes NumPy. In installing NumPy, I realized that I was
lacking Atlas. I ran into the following problems installing Atlas and NumPy,
as I realized that NumPy could be installed using the Mac OSX veclib already
built in. If anyone has any ideas on how to fix either of these, I would be
most grateful.
I am fairly new to Python...
|
by: belacyrf |
last post by:
Hey All, I have MDaemon running locally on the server, and that is
what I want to send mail through. It's a normal mail server which
doesn't require an access list, I just have a list of trusted IP's to
accept mail from.
This is the code I use on my ASP page
<%
'Send email using CDO.
Public Function sendEMail( fromAddress, toAddress, subject, body )
|
by: Lloyd Sheen |
last post by:
This IDE is driving me nuts. I needed another button so I copied an
existing one, changed the Text and the id and position by drag and drop.
Well then I run and get the following:
Control 'Button19' of type 'Button' must be placed inside a form tag with
runat=server
Can the IDE not do what it is supposed to do. It seems that it is a fight
to make it do anything or did I do something wrong? It would seem silly to
have to create a...
|
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: Dave |
last post by:
Hi All,
I'm experiencing problems with sending mail using mail() to forwarded
email accounts. The problem seems to revolve around the optional 4th
argument of mail(), namely 'additional headers'.
It seems that when I populate this 4th argument of mail(), any emails
sent to an email forwarding service email address (ukreg/fasthosts
actually) fail to reach their destination. Direct email addresses seem
to work fine.
|
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: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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: 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: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |