# mail() on windows

- Thread: https://externals.io/message/12269
- Original archive: https://news-web.php.net/php.internals/12269
- Started by Frank M. Kromann on 2004-08-19T19:45:17+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #12269 — Frank M. Kromann — 2004-08-19T19:45:17+00:00

URL: https://externals.io/message/12269#12269

Hi David,

 `mail()` and imap_mail() both call's the internal function TSendMail(). This
is the function that generates the error. the imap version does some
additional chacks for headers. I'll take a look to see if we can make the
error message more informative.

- Frank

> ok thanks. but still, how is it that
> 
> mail('example@php.com','subject','body',"From: me@example.com\r\n");
> 
> should produce an error message stating "custom "From:" header
missing"?
> 
> and is there any reason the custom header can't be parsed, and if a
> "From:" header is found, to use that instead of sendmail_from value?
> 
> thanks again.
> 
> 
> On Wed, August 18, 2004 6:11 pm, Frank M. Kromann said:
> > […]
imap_mail().
> > […]
few
> > […]
See
> > […]
of
> > […]
"From:"
> > […]
"From:"
> > […]
always
> > […]
be
> > […]
