Sending mail problems

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
evilmonkey
Forum Regular
Posts: 823
Joined: Sun Oct 06, 2002 1:24 pm
Location: Toronto, Canada

Sending mail problems

Post 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!
User avatar
evilmonkey
Forum Regular
Posts: 823
Joined: Sun Oct 06, 2002 1:24 pm
Location: Toronto, Canada

Post by evilmonkey »

*bump* Sorry about that, but an answer would be nice. :?
User avatar
evilmonkey
Forum Regular
Posts: 823
Joined: Sun Oct 06, 2002 1:24 pm
Location: Toronto, Canada

Post 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. :)
Post Reply