Hello,

Could anyone tell me if it is possible to send mail using php and the Perl module Mail:Mailer

Thanks,

Shalom

    hello,
    why don't you use the php function MAIL? it works good....
    else
    system("perl mail.pl"); ?????

      I believe the reason is due to security. Its the server admin that is requesting this... I am happy with mail()

      SL

        ummm, he's got a bad idea of security then

        perl's mailer package will use sendmail and he can also configure php to do the same. Actually if you can do this you must execute a system command which means that php is not in safe mode and therefor is not running securely.

        tell him it's more secure to use the php mail function and that it's also a lot less load on the server and that he should have php in safe mode anyway.

          a year later

          I'm beginning to search the forum on this but I have a commercial mailer my clients use. It's sent out more than a million emails so far successfully, and the interface is great.

          However, mail() is slow. I get about 100 mails sent out per minute, less if there's attachments in the 1MB neighborhood.

          It is my understanding that mail() opens and closes the socket each time and this is why it's so slow. Also it won't multithread.

          I have heard that C has a mailer module that will do about 30 emails per second, anyone have experience implementing it?

          The other thing which I want to change is that the user is supposed to leave the browser window open because if the connection is lost, the mail process will stop. That's very shaky at best. I would like them to see a window which immediately says "Your mail is being sent -- close window" -- perhaps run this to a cron job.

          Any assistance? I need resources on things to read.

          Thanks,
          Sam

          [P.S. -- I'd like to amend what I said above about the connection being lost. Just ran a test to send myself 500 emails and closed the browser on email 6 -- it kept running. Somewhere in the back of my mind I remember closing a browser window mid-process and the server figured it out and stopped the process. ]

            Anything compiled is going to be much faster then anything interpreted. For what you want going with a cron job is probably a good way to go. When someone kicks off the process it just writes to a text file, then on a schedule (every minute, hour, day, whatever is sufficient for your problem) the cron job runs, reads the text files and starts firing off mails if the text file tells it to. Doing it this way would also allow you to place all of the mass mailer load onto a dedicated server and to use this server for multiple applications with the same programming as long as it's developed with this in mind.

              Write a Reply...