For Programmers: Free Programming Magazines  


Home > Archive > PHP Programming > May 2005 > sending mail otherthan mail()









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author sending mail otherthan mail()
smilesinblues@gmail.com

2005-05-27, 8:55 am

Hello everyone,

My server admin has blocked the mail() due to some spam problems. I
need to send emails using php. Can anyone guide me to the best method
of sending emails using php without using mail().

If there is any tweak to be done at the server level I will be able to
convince the admin. The server has linux Enterprice edition 3 with php
4.3.11 and cpanel/whm.

Please guide me to the method and i will be able to collect other
information about it from google.

Thanks
Jaunty Edward

Daniel Tryba

2005-05-27, 8:55 am

smilesinblues@gmail.com wrote:
> My server admin has blocked the mail() due to some spam problems. I
> need to send emails using php. Can anyone guide me to the best method
> of sending emails using php without using mail().


So getting an alternative to mail() will simply circumvent the
"antispam fix".

On unix, mail() is nothing more than a wrapper to a local sendmail
program, on win32 it's a wrapper that communicates to a smtp daemon.

So either you can do yourself (exec()/sockets) or use on of the classes
to be found on the usual sites (phpclasses/hostscritps)...

smilesinblues@gmail.com

2005-05-27, 8:55 am

Thank daniel,

are you saying that if i will use classes like libmail. I will be able
to send emails using php.

I don't know what the server admin is going to do with the spam
problem. But will I be able to send emails using classes.

Thanks once again.
Jaunty

Daniel Tryba

2005-05-27, 8:55 am

smilesinblues@gmail.com wrote:
> are you saying that if i will use classes like libmail. I will be able
> to send emails using php.


Like, libmail itself uses mail() to actually send the mail. Searching
for smtp at phpclasses.org, shows some that might be usefull to you,
first one (http://www.phpclasses.org/browse/package/14.html) can connect
to any smtp daemon you have access to.

Also there is a call to local sendmail example on
http://nl3.php.net/popen (webmaster at elcurriculum dot com 09-Dec-2004
09:05), which IMHO would be the preffered method (if possible).

> I don't know what the server admin is going to do with the spam
> problem. But will I be able to send emails using classes.


A better solution would be to scan outgoing mail.

smilesinblues@gmail.com

2005-05-27, 8:55 am

Hi Daniel,

Many thanks for the links and info. I don't like that site though....

Thanks once again.

Bye

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com