thanks dford
I don't know, what's wrong. I use the same script and it doesn't send any mails ! I've spend a lot of time about this problem. greetings cccc |
Is sendmail running? I tested sending through sendmail directly with this:
Code:
echo 'From: dford1234@metapath.com Note: email addresses were altered to not add to my spam load. You can probably figure them out though. :D |
Yes !
this one for example works excellent and sends mail: Code:
open(MAIL, "|/usr/sbin/sendmail -t"); and the path to postfix is: /usr/sbin/sendmail I use this path at all other scripts and it works. kind regards cccc |
Hmmm...try something like this instead of the $msg->send(); line:
Code:
$str = $msg->as_string; |
I've replaced, but now I have on this new lines errors:
[Fri Mar 5 22:07:47 2004] mail.cgi: Global symbol "$str" requires explicit package name at mail.cgi line 58. [Fri Mar 5 22:07:47 2004] mail.cgi: Global symbol "$str" requires explicit package name at mail.cgi line 60. [Fri Mar 5 22:07:47 2004] mail.cgi: Execution of mail.cgi aborted due to compilation errors. |
You might just add:
my $str; |
thanks for your time and help, but still no mails
|
So, just to be clear, when you enter:
Code:
perl mail.cgi /var/log/log.txt |
Hi
sorry, my mistake the file was not readable. now it works ! thanks for your time and HELP ! cccc |
You are welcome! Glad it is working now!
|
All times are GMT -5. The time now is 10:01 PM. |