hi

ive managed to send emails through mail function in php on a windows platform sucessfully,

just having a few issues with linux, its clear i need to set up the php ini file in apache2, but how is it different for linux

my outgoing mail server is mail.uk2.net do i need a password? or anything?

take care

    There's a bit in the PHP documentation about mail installation and requirements. I suggest checking there first. The comment on that page I've linked looks very informative.

    The basic idea is that your server must have a sendmail binary or other means of sending mail for you to set up PHP properly. I don't know much about it.

    Another possibility is that you could use PHPMailer or PEAR::Mail.

      If you're just sending mail out using the mail function, you don't need to configure anything in php.ini for Ubuntu servers. Using sendmail (what the mail() function uses) is extremely easy. Just call mail(). The downside is that you can run the risk of getting trapped in spam folders.

      The other option is to use a library like SwfitMailer or PHPMailer or PEAR::Mail in order to provide you with a real SMTP way to send mail.

        I forgot to mention that using PHPMailer or Pear::Mail allows you to connect to a mail server just like thunderbird or an iphone would and send mail that way. This is what bpat touched upon with his spam folder comment.

        There's more info in this 'best practices' thread.

          Write a Reply...