Manuel Lemos wrote:
> Hello,
>
> on 02/15/2008 08:07 PM Correia said the following:
>> My server is at home, and i can send mails from it. But because they
>> are sent from my computer they fail to pass the major spam filters.
>> My question is:
>>
>> Suppose i have an email of a major isp (more chances to pass a spam
>> filter):
>>
>> Email: mymail@isp.com
>> Smtp: smtp.isp.com
>> password: mypass
>>
>> Can i use THAT account to send emails from a php script, so they can
>> pass more spam filters?
>
> You can but there are some details.
>
> If you are using Linux/Unix on your machine, you need to configure your
> machine to relay messages to your ISP SMTP server.
>
> If you are using Windows, you could also configure a local SMTP server
> to relay the messages to your ISP SMTP server.
>
> In either case, the recipient SMTP server may detect that the message
> was relayed by your local mail server and refuse the message.
>
> Even if you are running Windows, configuring PHP to relay the messages
> sent with mail() directly your SMTP server will not work because PHP
> mail() function does not support authentication.
>
> The simplest alternative solution that will work is to use a replacement
> for the mail() function that works with the same parameters as mail but
> talks directly with your ISP SMTP server using your user name and
> password. The advantage of this is that you only need to rename your
> mail() calls to the replacement function.
>
> This MIME message composing and sending class provides a wrapper
> function named smtp_mail() that does precisely that. Many people use it
> to relay messages to their ISP SMTP servers or even Gmail, which also
> requires authentication. Take a look at the test_smtp_mail.php example
> script:
Thanks for that, even tho I am not the original poster.
It would seem to reduce dependence on the servers MTA, but does it do it
at the price of 'suspending' the script whilst the mail is being sent?
>
> http://www.phpclasses.org/mimemessage
>
> You also need these classes in conjunction to talk SMTP with
> authentication support:
>
> http://www.phpclasses.org/smtpclass
>
> http://www.phpclasses.org/sasl
>
>