
andy7t
User
Sep 23, 2003, 12:29 PM
Post #1 of 3
(405 views)
|
|
Sendmail Problems
|
Can't Post
|
|
Hello, Does anyone know why, for some unknown reason that sendmail refuse's to work in some scripts? You see i am using this code in one script: $email = "Project Football"; open (MAIL,"|$sendmail -t -f \"$email\"" or print "error"); print MAIL "To: $data[2]\n"; print MAIL "From: info\@projectfootball.com\n"; print MAIL "Subject: New League\n"; print MAIL "The new league ($data2356[6]) has just began. Log into your account to view your fixtures and play!\n"; print MAIL "projectfootball.com\n"; close MAIL; And then the same sort of thing in another, yet it does not send anything. I've also done a check to make sure $data is correct, and refers to an email and $sendmail is correct. I just can't understand it- on some scripts it works- and not on others. The last way i got round it was to use a IFRAME with a small script purposly for sending an email. But for this it is not possible, as it is run from cron, and there is many emails to send. Any ideas why it refuse's to send on this script, but not on another? Perhaps it is something in SendMail that requires something? Andrew
|