>>> Am working on an email feedback application that requires mails
>>> to work. Unfortunately the hosting am using does not support email
>>> relay.

>The thing is, the host is on linux. AM using sendmail to transimit
>the mail but whenever i do that, no error is generated and no mail is
>sent.

Maybe the server is finnicky about sender identification?
Usually I have no problem doing something like:

mail("[EMAIL PROTECTED]", $Subject, $Message, $Header)

but on one occasion the mail server required the mail account to be an
account actually known on the server (so "automailer.." was not possible).
Additionally it may be necessary in this case to implicitly add:

$Header .= "From: ".$Sender."\r\n";

to whatever your $Header already contains, where $Sender is the same valid
email as used in the mail() satement in the place of the "automailer... "
part.

Other than this, I never had any issues with mail().

Marc


PS: notice how a clean response below the message makes the response much
more readable, even for someone who hasn't read any of the preceding
messages. To me that's the way it should be. And I'm not even 40 yet! (First
programming exerience as a teenager on a TRS-80, then Commodore 64, then
Apple Macintosh and since '93 PC's, which at that time were still hopeless
pieces of sh!t compared to the Macs I had been using for 6 years by then...
with a Mac we could do wonderfull graphical simulations of weird organic
compounds while in those days doing anything graphical on a PC was a
challenge... Now using Delphi to write PC software for Windows but starting
experimenting Linux. It's a waste to have to pay for a license for a
graphical user interface when all one wants is a PC with who cares about the
OS, running reactor control software with the monitor switched off 99% of
the time, controlled through a web interface. And I still prefer W2000 over
XP or Vista as it is the only one that lets you, unix-style, control *all*
user rights for *all* directories the way you want, instead of manageing
them generically. Sorry, off topic rant...)

Reply via email to