26 comment

  1. thanks for the perl code… It really helped me a lot. After experimenting on at least a dozen codes and techniques, your code, though simple as it is, made my routine work… Thanks again
    Javier

  2. Vipin

    I believe you just have add multiple emails with comma at the end of each address.

    $to = “,address2,address3,…..”

    Austin

  3. this should work great, but i am having trouble finding any email servers that would offer a cgi-bin for you to access…

    could you recommend any?

  4. This scripts is OK if you just need test how things work. If you need to send mails to a lot of people, then you need to look at many other aspects (correct headers, spf records etc.) so that your domain or IP does not end up in e-mail black lists.

    If you are a webmaster and plan to send large number of e-mails from scripts, you need to do a bit of a home work.

  5. This is simplest, and most effective script for sending a simple mail. I wonder if it can expand to more for HTML, Attatchment, Reply etc…

  6. looks good…

    can you tell me if I can get a pearl script for loging on to a public mail server with my login ID and pass word and forward it to an other mail account?

  7. i am newer in scripting
    i want to write the pearl script that pings the ip address and it sended the mail if it is down

  8. You’re not understanding what sendmail is. sendmail is an MTA, like postfix, yes, but due to legacy naming conventions, sendmail is also the binary that’s used for delivering mail on most systems even if it’s not the same sendmail as the sendmail MTA. You can use Exim or Postfix or others and still the binary will be called sendmail.

  9. Thanks for the script. Anyway, from your code, how can i save the message of the email into a .txt file as an attachment to send together with the email?

Leave a Comment