Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 10-24-2008, 03:24 AM   #1
LQ Newbie
Registered: Dec 2004
Location: Sydney
Distribution: Suse
Posts: 12

Rep: Reputation: 0
Question Want to send mail with php mail() command - minimum config required?


I am running a mediawiki site on Suse 10.3. I want it to be able to send e-mails, and for this it needs to use the php mail() command. What is the minimum configuration I would need to achieve this?

I do not have my own domain atm - I'm using NoIP.

I can use the command line mail to send mail to users on the same box. If I try to send to an internet address, the mail becomes stuck in mailq, with the message "No route to host". This happens whether or not Port 25 is open in my router firewall.

I think I am missing a huge configuration step somewhere. I played around with the YAST Postfix configuration but became lost when it started asking for mail server names on incoming mail - I don't want to get incoming mail, so I got stuck.

I have spent hours looking for a simple straightforward guide on how to do this minimum setup - if anyone can point me to one I would be very appreciative.


PS - I have checked the following related post:

1. I get "Unknown Service" if I try to start sendmail. YAST seems to push for Postfix over Sendmail.
Old 10-25-2008, 10:50 PM   #2
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
I think I might be in the same boat as you. Well, sort of. I've been working on my first PHP application for a couple months, and I'm now in need of a simple way to send email (across the Internet) with PHP from my desktop. The idea being that when I actually install my program on a real server I won't need to make any major changes. At the moment, I just need to use PHP's mail() for sending my application's users a password reset link via email. I've done some googling and decided that I'm gonna give sSMTP a shot. I'll be using my ISP's email server in order to keep things as simple as possible. Not sure if this is the type of thing you are looking for, but I thought I'd share that link with you just in case.

Last edited by win32sux; 10-25-2008 at 10:52 PM.
Old 10-26-2008, 01:21 AM   #3
LQ Newbie
Registered: Dec 2004
Location: Sydney
Distribution: Suse
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks win32sux. It's not exactly what I was looking for, but perhaps I was looking for the wrong thing, or at least something I didn't really need.

I will check it out.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
can mail command be used to send mail onto global mail servers like yahoo etc dale_chip Linux - Newbie 4 08-12-2008 09:33 AM
unable to send mail using Mail command navin_karnam Linux - Newbie 3 05-13-2008 03:21 AM
command line email client to send mail to remote mail server dhanju Linux - Software 1 03-07-2008 07:37 AM
Unable to send mail using mail command faruque.ahmed Linux - Software 1 02-03-2007 11:29 AM
Cannot send mail with mail() command in PHP 4.3.4, Apache 2.0.48, Mandrake Linux 10 arcanum Linux - General 3 06-27-2004 07:06 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:19 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration