Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: thesynic on March 28, 2003, 03:59:32 AM
-
I'm running http and mail server and I want to point a script at the mail server. Where should I direct it? I want to know what I need to include, the path to use. ie- # $mailprog = '/usr/lib/sendmail -i -t'; I can't get my form to email my account correctly. Thanks.
-
Create a PHP page and substitute as required.
$MP = "/usr/sbin/sendmail -t";
$fd = popen($MP,"w");
fputs($fd, "To: $outRecipient\n");
fputs($fd, "From: $senderName <$senderAddress>\n");
fputs($fd, "Subject: $outsubject\n");
fputs($fd, "X-Mailer: PHP4\n");
fputs($fd, $outMessage);
pclose($fd);
?>
Hope its usefull to you. Good Luck!
-
Sorry, I think I am in over my head here. I am trying to use a CGI script like formmail.pl on my server and have it mail me the form using my mail server. The script variable I am trying to find is the default path to my mail server. I appreciate your help very much. Thanks for your reply.
-
Thanks CAM. Like the synic, I'm trying cgi, not php, but your source helped me locate my sendmail in '/usr/sbin' as well. I found a link from '/usr/sbin/sendmail' to the true location in '/var/qmail/bin/sendmail'. Try these locations. If these don't work, then be sure you've already tried 'which sendmail'. If that fails, there's always bruteforce: 'find / -name sendmail 2> /dev/null'
-
Hi there,
Did any of you make the formmail.pl to work?
Because I'm also having problems with it :-(
/ Brascoe
-
Are you aware of the security/mail relay exploits that some versions of formail.pl are vulnerable to?
Cheers
Dave.
-
Dave Liquorice wrote:
>
> Are you aware of the security/mail relay exploits that some
> versions of formail.pl are vulnerable to?
>
Yes, I'm aware of the security issues with the older versions.
But, still i need help to get to work with qmail.
Anyone please?
/ Brascoe