| Author |
Message |
LaMpiR
Newbie


Joined: Oct 01, 2006
Posts: 4
|
Posted:
Sun Nov 26, 2006 4:37 pm |
|
Hi! Administrators have blocked sending emails true php on my hosting but I use smtp and some hacks for nuke to even work. Can html newsleter work with smtp ? |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1360
|
Posted:
Sun Nov 26, 2006 5:19 pm |
|
The HTML Newsletter uses PHP's mail() function, very much like PHP-Nuke does. You would have to convert that function call to use whatever you are using for sending mail via smtp. You will find the send mail in only one function called "msnl_fSendNls" within the following script:
modules/HTML_Newsletter/admin/functions.php
Good luck! |
_________________ “To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins |
|
|
 |
LaMpiR
Newbie


Joined: Oct 01, 2006
Posts: 4
|
Posted:
Sun Nov 26, 2006 5:32 pm |
|
I know, so i've modified mail function and edited modules to use it with smtp, something like this:
Feedback module:
| Code: |
smtpmail($to, $subject, $msg, $mailheaders); |
Instead of
| Code: |
| mail($to, $subject, $msg, $mailheaders); |
But I can't find php mail function here, my php isn't that good
I've used simple include/smtp.php of phpbb which adds function smtpmail to mailer.php -- i think, can't find hack i used.
Please help[/quote] |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1360
|
Posted:
Sun Nov 26, 2006 6:30 pm |
|
LaMpiR,
You say that you have already done this for Feedback and other modules. I have given you the script and function where I am making the mail() call. That is where you need to start.
I am not going to do it for you.
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a life-time". I have found that some people learn best by doing... |
_________________ “To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins |
|
|
 |
|
|