LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-13-2006, 12:00 AM   #1
ERBRMN
Member
 
Registered: Mar 2005
Location: Japan
Distribution: TurboLinux, RHEL, SUSE
Posts: 96

Rep: Reputation: 15
Help, how to only send mail to use sendmail


Hi all

I have TurboLinux (version is developed from Redhat, it is also RPM ).
I use web server on appach , ... and sendmail.

I want to only send mail on php script.
But i could not send any mail.
I have not done any config on sendmail config , only installed and start sendmail (/etc/init.d/sendmail start).

I also test on command line to send mail ("mail" and "/usr/sbin/sendmail").
But I could not send mail.

I tested "mail" :
****************************
$ mail -s "subject" user@tttt.com
Body.
.
cc:
$
****************************


I also tested "sendmail"

/usr/sbin/sendmail -v user@tttt.com < test.mail
(test.mail - text file which is included subject and body.)

.....
user@tttt.com ... send (....)
.....

*****************************

Please advice me.......

Last edited by ERBRMN; 01-13-2006 at 12:58 AM.
 
Old 01-13-2006, 02:55 AM   #2
ERBRMN
Member
 
Registered: Mar 2005
Location: Japan
Distribution: TurboLinux, RHEL, SUSE
Posts: 96

Original Poster
Rep: Reputation: 15
I have solved my problem.
I have not set domain name on my system. (now it is only local server.)

But i have still problem.
It is , I could not understand , how to make set SMTP configuration on my PHP file.
Becourse, I install sendmail. There is not SMTP setting.
 
Old 01-13-2006, 05:04 AM   #3
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
If sendmail is running, it acts as a mail transport agent (MTA). Think of it as a "mail server".
This means that your machine will accept incoming SMTP connections on port 25 (unless that port is blocked
by your firewall).

Try:
telnet localhost 25
or
telnet your_host 25
To see if port 25 is unblocked.

As for PhP, I think they have support for sending e-mails. Check out the "mail" command on http://php.net.
Default, on Linux and unix, PhP uses localhost, port 25. But I think you can change that in the php.ini file
or something.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail cannot send mail rubenscript Linux - Networking 2 01-05-2006 04:38 AM
sendmail - will not send mail ekrumm Linux - Software 1 08-15-2005 11:23 AM
Sendmail doesnt actually send mail ipcn Red Hat 5 12-29-2004 11:59 AM
Using sendmail to send mail from your ISP nrmx Linux - Software 2 12-16-2004 12:43 PM
Can't send mail with Sendmail familyman Linux - Software 3 09-15-2004 10:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:54 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration