Members   Search      Help    Register    Login    Home
Home » Support Forums for PMBT 2.X » Development of 2.X » substitute mail() function with smtp custom function(convert .php files that make use of mail() function to use a custom smtp function)
substitute mail() function with smtp custom function [message #2834] Thu, 23 July 2009 11:43 Go to next message
eythigramisi is currently offline eythigramisi  Greece
Messages: 23
Registered: July 2009
Leecher
Hi.
Is it possible to list the .php files that make use the mail() function?
For example, I noticed that the takeinvite.php uses at the very end the mail() function in order to send the invitation to the specified email.
I want to look at other files that make use of mail() function
as i have as a purpose to substitute the mail function with another one.
that one makes use of an external smtp to send mail, with added features like secure connection (ssl , tls)) and authentication (us, ps).
I have managed so far to convert the takeinvite.php and make it use the alternative function so to send mail via gmail, with tls, via 465 port, with authentication.
Moreover, if you want to add it as a feature in your next release, I can provide the how to in order to develop it properly, as my approach is a bit crap.
Re: substitute mail() function with smtp custom function [message #2836 is a reply to message #2834] Thu, 23 July 2009 12:17 Go to previous messageGo to next message
joeroberts is currently offline joeroberts  United States
Messages: 1971
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
there are alot that use mail() function
comment.php
invite.php
staffmess.php
pm.send.php
details.php
and so on
but most of them use class.mail.php to send mail


http://a.imageshack.us/img831/5562/mybikes.png
Re: substitute mail() function with smtp custom function [message #2837 is a reply to message #2836] Thu, 23 July 2009 12:47 Go to previous message
eythigramisi is currently offline eythigramisi  Greece
Messages: 23
Registered: July 2009
Leecher
A lot use the mail() function.

But what is all about is to find the specific ones that do not make use of the $mail->send() function from class.email.php.

These ones have a simple mail(various parameters) function and do not make use of the send() function of the class.email.php.

So, if we want make a global change and make use of the custom smtp function, we must locate these .php pages that make use only of the mail() and make them to use the $mail->send().

Then, inside the send() of the class.email.php, we can substitute the existing code with the one used from the smtp custom function.

Previous Topic:Getting ready to start 2.0.5
Next Topic:PMBT 2.0.4 beta1
Goto Forum:
  


Current Time: Wed Feb 08 04:38:00 GMT 2012

Total time taken to generate the page: 0.02915 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software