i tried with the -f option of sendmail
echo "test" | /usr/sbin/sendmail -t -i somebody@skynet.be -f myadress@skynet.be
and now it's working !
thanks again for all your help
ramBB
i just used the program "ethereal" (a packet sniffer) to see what happened when i did
echo "test" | /usr/sbin/sendmail -t -i somebody@skynet.be
and i filtered the results to the SMTP protocol
here i what i got: ( <-- : receiving/ --> : sending )
<-- Response: 220...
Thanks for you answers
so i did what weppie told me, so in my sendmail.cf :
# "Smart" relay host (may be null)
DSrelay.skynet.be
then i restarted sendmail
/etc/init.d/sendmail restart
but it didn't change nothing
(in fact that helped me a lot because i didn't know what was a...
finally i found a solution without using sendmail:
in fact, you can define your own mail function in php.
grey post it at php.net
<?php
function socketmail($toArray, $subject, $message) {
// $toArray format --> array("Name1" => "address1", "Name2" =>...
Hello everybody
Sorry if my english is not perfect.
I run a linux/apache/php/mysql server and I wanted to send mail through php with the mail function
It didn't work ;)
After a few search on the web, i knew php use sendmail
in my /etc/php.ini file there is :
sendmail_path =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.