I am a php developer in china. I have worked six years on it .I love php
and love opensource. I want to share something with others.
smtpmail is a php extension, it use esmtp protocol to send  email . I
develop it because of usually php's function mail can't use in china.Use
php to write a fsockopen client will cost more time and is hard to a newer
learn php. Last , as you know php extension will run faster.

A simple example
<?php
$smtpmail = smtpmail_connect("smtp.qq.com",25,"test","test","utf-8","\n");
smtpmail_from($smtpmail,"[email protected]","SMTPMAIL");
$result = smtpmail_send($smtpmail,'title','content',"[email protected]","keminar");
if (!$result) {
echo smtpmail_error();
}
smtpmail_quit($smtpmail);

I choose the PHP License 3.01 for my extension
You can get all code from mail attachment or  my blog
http://blog.linuxphp.org/smtpmail/

Reply via email to