LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 10-24-2008, 02:24 AM   #1
FeathersMc
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?


Hello,

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.

Thanks
FMc

PS - I have checked the following related post:

1. http://www.linuxquestions.org/questi...ommand-641571/ I get "Unknown Service" if I try to start sendmail. YAST seems to push for Postfix over Sendmail.
 
Old 10-25-2008, 09:50 PM   #2
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
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 09:52 PM.
 
Old 10-26-2008, 12:21 AM   #3
FeathersMc
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.
 
  


Reply


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 08:33 AM
unable to send mail using Mail command navin_karnam Linux - Newbie 3 05-13-2008 02:21 AM
command line email client to send mail to remote mail server dhanju Linux - Software 1 03-07-2008 06:37 AM
Unable to send mail using mail command faruque.ahmed Linux - Software 1 02-03-2007 10: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 06:06 PM


All times are GMT -5. The time now is 02:06 AM.

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