Mail from php with qvcs
| From: | adi | Date: | Tue, 18 Jun 2002 07:20:32 +0000 |
| Subject: | Mail from php with qvcs | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-102658@lists.php.net to get a copy of this message | ||
Hi!
I succesfully instaled qvcs Qmail-Vmailmgr-Courier-SquirrelMail
on my RH72 system. I can send mail from webmin interface.
I work also with php pages.In the past, with sendmail, i used function:
mail($to, $subject, $message, $headers) for sending mail from web page;
How to use this function with qvcs(an example), or another function for
sending mail from php web page?
Tx in advance for any help
Adi
PS:
1.i made:
ln -s /var/qmail/bin/sendmail /usr/lib/sendmail
ln -s /var/qmail/bin/sendmail /usr/sbin/sendmail
but didn't work
2In var/log:
When i try to send from php page with mail() function:
1.399722 info msg 536466: bytes 219 from <root@.> qp 6905 uid 0
Jun 17 16:44:01 server qmail: 1024321441.405085 starting delivery 190: msg
536466 to remote adipublic@home.com
Jun 17 16:44:01 server qmail: 1024321441.405156 status: local 0/10 remote
1/2
Jun 17 16:44:01 server qmail: 1024321441.442691 delivery 190: failure:
Connected_to_193.231.236.41_but_sender_was_rejected./Remote_h
ost_said:_553_sorry,_your_envelope_sender_domain_must_exist_(#5.7.1)/
When i try to send mail from squirrelmail webmail page is working:
new msg 536466
Jun 17 16:38:21 server qmail: 1024321101.074712 info msg 536466: bytes 759
from <adrian@mydomain.ro> qp 6798 uid 502
Jun 17 16:38:21 server qmail: 1024321101.091053 starting delivery 186: msg
536466 to remote adipublic@home.com
Jun 17 16:38:21 server qmail: 1024321101.091141 status: local 0/10 remote
1/20
Jun 17 16:38:21 server imapd: LOGOUT, user=adrian, ip=[::], headers=0,
body=0
Jun 17 16:38:21 server qmail: 1024321101.275389 delivery 186: success:
193.231.236.41_accepted_message./Remote_host_said:_250_ok_102
4321188_qp_23810/