473,809 Members | 2,591 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

does PHP mail() function depend on sendmail?

We're installing a new server at the office and this will be the first
server we set up from which we host our website. We got tired of
dealing with Interland and decided to bring our hosting in-house. The
guy doing most of the work struggled with sendmail for awhile and then
gave up. Now he's installing Postit, or Postfix, or whatever it's
called.

Does the PHP mail function depend on sendmail, or can it use any mta
software?
Jul 16 '05 #1
4 7688
Hi,

lawrence wrote:
We're installing a new server at the office and this will be the first
server we set up from which we host our website. We got tired of
dealing with Interland and decided to bring our hosting in-house. The
guy doing most of the work struggled with sendmail for awhile and then
gave up. Now he's installing Postit, or Postfix, or whatever it's
called.

Does the PHP mail function depend on sendmail, or can it use any mta
software?


Under Unix-a-likes, mail() relies on there being a sendmail-like
interface. Most MTAs have a program that looks like sendmail for these
purposes, and usually it gets symlinked into the right place. You don't
need genuine sendmail.

Under Windows PHP does SMTP itself.

Regards,

Luke

Jul 16 '05 #2
Luke Ross <lu******@sys31 75.co.uk> wrote in message news:<vm******* *****@corp.supe rnews.com>...
Hi,

lawrence wrote:
We're installing a new server at the office and this will be the first
server we set up from which we host our website. We got tired of
dealing with Interland and decided to bring our hosting in-house. The
guy doing most of the work struggled with sendmail for awhile and then
gave up. Now he's installing Postit, or Postfix, or whatever it's
called.

Does the PHP mail function depend on sendmail, or can it use any mta
software?


Under Unix-a-likes, mail() relies on there being a sendmail-like
interface. Most MTAs have a program that looks like sendmail for these
purposes, and usually it gets symlinked into the right place. You don't
need genuine sendmail.

Under Windows PHP does SMTP itself.

Regards,

Luke


We're running Red Hat 9 on the server. So we need to do into the PHP
config file and set a path to whatever MTA we eventually get going?
Jul 16 '05 #3
I have the EXACT same problem except it's on an upgrade from 7.3 to 9
and now mail() does not work. It has the symlink
sendmail->/etc/alternatives/mta but it won't send out a single email.
Please let me know if you find a solution to this. You can email me at
er******@yahoo. com If I get a solution I will post it here. I think we
are not the only ones with this problem.

On 15 Sep 2003 11:17:59 -0700, lk******@geocit ies.com (lawrence)
wrote:
We're installing a new server at the office and this will be the first
server we set up from which we host our website. We got tired of
dealing with Interland and decided to bring our hosting in-house. The
guy doing most of the work struggled with sendmail for awhile and then
gave up. Now he's installing Postit, or Postfix, or whatever it's
called.

Does the PHP mail function depend on sendmail, or can it use any mta
software?


Jul 17 '05 #4
eric <er******@yahoo .com> wrote in message news:<3f******* *************** **********@4ax. com>...
I have the EXACT same problem except it's on an upgrade from 7.3 to 9
and now mail() does not work. It has the symlink
sendmail->/etc/alternatives/mta but it won't send out a single email.
Please let me know if you find a solution to this. You can email me at
er******@yahoo. com If I get a solution I will post it here. I think we
are not the only ones with this problem.

On 15 Sep 2003 11:17:59 -0700, lk******@geocit ies.com (lawrence)
wrote:
We're installing a new server at the office and this will be the first
server we set up from which we host our website. We got tired of
dealing with Interland and decided to bring our hosting in-house. The
guy doing most of the work struggled with sendmail for awhile and then
gave up. Now he's installing Postit, or Postfix, or whatever it's
called.

Does the PHP mail function depend on sendmail, or can it use any mta
software?

Seems like he finally got it to work, though it took him hell's own
amount of time. I'll ask what he did. Did you get your problem
resolved?
Jul 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
3921
by: bonfils | last post by:
I believe this question has been asked before, but I haven't found the solution to it. I've given up on the php mail() function (doesn't work fast enough for sending large amounts of HTML mails). Instead, I'd like to throw all my mails into the mail queue. I'm running sendmail on freeBSD and imagine that I should be able to use the exec() command.
4
3044
by: CoralineSage | last post by:
Hi All, I'm running a bulleting board in PHP and everytime a new user registers s/he is supposed to receive an email confirmation. After filling out the registration form and clicking on submit I get the following error message: Fatal error: Call to undefined function: mail() in /usr/local/apache2/htdocs/ubbthreads/ubbt.inc.php on line 212
4
4826
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 an application that emails people a message, and now having installed my PHP application on my customer's machine it doesn't work, giving an error message that the mail() function is not defined.
1
1914
by: tencip | last post by:
Hey everyone, We've got FreeBSD 5.3, with Sendmail running. All we want to do is to get sendmail to send emails to another server for actual outbound email. We've got a very basic php script which utilizes the mail() function, but for some reason, sendmail is never getting the command from PHP. So, we can successfully send email using sendmail from the command prompt, but when it comes to using the PHP mail() function, nothing
2
19064
by: MLH | last post by:
I cut a mail function off the m'soft site. Has always worked. However, I would like to include error codes returned by the sendmail Fn and be able to understand what they mean. I had my first occasion to experience a failure and got a code of 2??? Would like to know just what that means. Here's how I call the fn... Result = SendMail((F!Subject), (F!To), (F!CC), (F!Attach), (F!Message))
6
1988
by: cover | last post by:
I'm using PHP 5 at home w/Apache & MySQL on a test system where I write through a form to a database and also send an email to people on a drop down list. Purpose for this is an electronic log at work where an email goes out to let a person know an entry has been made with a copy of the text on that email. Works fine on my test system at home but not at work. I'm trying to remember which version of PHP I'm using there and I'm thinking...
4
1800
by: Clodoaldo | last post by:
I need to know if an email was refused for whatever reason, it makes no difference. The email is sent to an email address that does not exist in a foreign domain. I can see in the postfix log that the email was sent and bounced with the error code 550. The problem is that sendmail should throw an exception but it does not. And the returned dictionary is empty as if the email was accepted.
3
3401
by: digitaldiva | last post by:
Hi I am new here and once upon a time I worked with Perl, now I am trying again and need some help: I wrote a Perl script a few years ago that opened an order entry TXT file and sent each customer with an email address a confirmation email in html or txt. Simple enough and very effective. Now I am editing this script to send a general email blast on a new computer... I have ActivePerl 5.10.0 Build 1003 installed. I downloaded...
7
2638
by: r0g | last post by:
I'd like PHP to send mail to a local mailserver running at localhost:25 like I used to on windows. This mailserver is a dummy server which just writes the mail to disk for unit testing and works fine when I use thunderbird to send mail to it and used to work fine under windows however... It doesn't work under Ubuntu. Looking at my php.ini file I see...
0
9722
marktang
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...
0
10378
jinu1996
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...
0
10121
tracyyun
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...
1
7664
isladogs
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...
0
6881
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();...
0
5550
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...
0
5690
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3862
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3015
bsmnconsultancy
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.