Page 1 of 1

Sending mail problems

Posted: Sun Nov 20, 2005 2:16 pm
by evilmonkey
Hello,

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");
How can I fix that? Better yet, can I connect to an SMTP server and send mail? What's the difference between imap_mail() and mail()?

Thanks!

Posted: Mon Nov 21, 2005 10:25 am
by evilmonkey
*bump* Sorry about that, but an answer would be nice. :?

Posted: Mon Nov 21, 2005 7:30 pm
by evilmonkey
Wow, looks like I found something even this community doesn't know. That's okay though, I found how to do a path to mail server through the phalanger config files, so I'll use that. :)