Montego Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic
Author Message
LaMpiR
Newbie
Newbie



Joined: Oct 01, 2006
Posts: 4

PostPosted: Sun Nov 26, 2006 4:37 pm Reply with quote

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 ?
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1393

PostPosted: Sun Nov 26, 2006 5:19 pm Reply with quote

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 
View user's profile Send private message Visit poster's website
LaMpiR
Newbie
Newbie



Joined: Oct 01, 2006
Posts: 4

PostPosted: Sun Nov 26, 2006 5:32 pm Reply with quote

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 Smile
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]
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1393

PostPosted: Sun Nov 26, 2006 6:30 pm Reply with quote

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. Sad

"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 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 4 Hours
 
Forums ©
linear-bunch
linear-bunch
linear-bunch