[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Sendmail



 

On Wed, 2009-02-04 at 01:45 -0800, Adil Drissi wrote:
> Hi,
> 
> I have successfully installed Mysql and PHP but I am unable to send email via php. Sendmail is already installed apparently. I want to know if there is a way to test email by sendmail command lines. Another thing is that how to configure sendmail because i'm just a regular customer of an internet provider. I know the provider's mail server parameters. Can sendmail be used with these parameters?
> 
> Thank you
> 
> 
> 
>       
> 

Adil,

In order to test an e-mail file all you have to do is use the following:

cat $desired_filename | sendmail -t

The file you create must have

-------------------------------
From: user domainfrom com
To: user domainto com
Subject: This is a test
<Blank Line>
Body of Message
--------------------------

Where <blank line> is just a carriage return or blank line.

and "------------------------" is not part of the data in the file


Configuring sendmail ranges from very simple to way too complex to think
about.  You will need to purchase the BAT book "Sendmail" by O'Rielly.
The syntax and grammar are to varied to discuss on the list, but send me
an e-mail if you want some offline help.

Greg Ennis


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]