Re: [Exim] PHP Form to send emails with Exim

Top Page
Delete this message
Reply to this message
Author: Jason Gerfen
Date:  
To: Jason Gerfen
CC: Richard Welty, exim-users
Subject: Re: [Exim] PHP Form to send emails with Exim
Jason Gerfen wrote:

> Richard Welty wrote:
>
>> On Wed, 11 Feb 2004 13:28:10 -0700 Jason Gerfen
>> <jason.gerfen@???> wrote:
>>
>>
>>> sendmail_path = /usr/exim/bin/exim -t -odq
>>>
>>>
>>
>> ok, you don't have to have -i but it might be a good idea.
>>
>>
>>
>>> I have also tried to make a symbolic link from the sendmail file to
>>> point to the exim binary with no luck. For my mail the simple php
>>> code.
>>> <?php
>>> $to = "email@???";
>>> $sub = "Subject line";
>>> mail($to,$sub,$_POST['$msg']);
>>> ?>
>>>
>>>
>>
>> i don't think you have an exim problem here, and maybe not really
>> a php problem.
>>
>> i have always used mail() as a 4 argument function and passed the
>> last arg as "" unless i wanted to add headers with it. i've never seen
>> it work with 3 args, but then i've never tried it either.
>>
>> richard
>> --
>> Richard Welty
>> rwelty@???
>> Averill Park Networking
>> 518-573-7592
>>    Java, PHP, PostgreSQL, Unix, Linux, IP Network Engineering, Security

>>
>>
>> --
>>
>> ## List details at http://www.exim.org/mailman/listinfo/exim-users
>> Exim details at http://www.exim.org/ ##
>>
>>
>>
> I tried a couple of changes in my php.ini and my php code to use exim
> using the mail() function and this is the error I am now recieving.
> *Fatal error*: Call to undefined function: mail() in
> */usr/local/www/htdocs/dhcp/email.php* on line *8
> php.ini
>
> sendmail_path = /usr/exim/bin/exim -t -i
>
> and my php code...
> mail(test@???,subject,contents,server@???");
>
> *
>
> --
> Jason Gerfen
>
> "... well, actually, I am more like a sheep in wolves clothing."
>                             ~ me

>
>
>
> --
>
> ## List details at http://www.exim.org/mailman/listinfo/exim-users
> Exim details at http://www.exim.org/ ##
>

The OS is Slackware Linux 9.1 with Apache 2.0.38, PHP 4.0 and I am not
sure if it is chrooted, I don't believe it is.

--
Jason Gerfen

"... well, actually, I am more like a sheep in wolves clothing."
                            ~ me