Im currently making a site on my server requiring email sending, how would i set this up and what email host does SMTP for free.

    I would use PHPMailer with is own SMTP class to do it. As to free SMTP servers, I do not know of any, and I would be pretty sure that any such services' domains are probably already black-listed by most major anti-spam programs.

      ok so how would i connect the a mail server if i had a domain.

        It's pretty much the same as setting up your mail program on your PC: you need to specify the outgoing mail server, the user name, and the password (and possibly the port number if not the usual "25"). For instance, if using PHPMailer, you would set up the connection something like:

        require_once "class.phpmailer.php";
        $mail = new phpmailer();
        $mail->Mailer = 'smtp';
        $mail->Host = 'mail.example.com';
        $mail->From = 'foobar@example.com';
        $mail->UserName = 'foobar';
        $mail->Password = 'abc123';
        $mail->FromName = 'John Doe';
        

          Thanks does any one know any cheap or free STMP mail hosts?

            Write a Reply...