I'm writing a program in PHP (a desktop email client) that will eventually be compiled using Phalanger and the .NET architechture. I'm using the imap_mail() function to send email, and I'm testing it in Zend Studio on a windows computer (for now). My computer does not have an email server. The imap_mail() funcgtion spits out:
Warning</b>: imap_mail(): "sendmail_from" not set in php.ini or custom "From:" header missing in <b>PHPDocument2</b> on line <b>2
I find this very wierd because I set the From: in the optional headers. My code is as follows:
Code: Select all
imap_mail ("vitali@vagonweb.com", "test", "this is a check", "From: vitali@vagonweb.com");Thanks!