Jump to content

Help me in email sender


MR.GRAND

Recommended Posts

Posted

Hello guys, i have a problem with email sender

i'm write this in acl :

"OutRPCGroup"> 
        "OutRPC">
        "resource.emailer"> 
    
    "InRPCGroup"> 
        "InRPC">
        "user.http_guest"> 
    
    "InRPC"> 
    "resource.emailer.http" access="true" /> 
    

my resource name is emailer

and my web page is : http://mrgrand.ga2h.com/emailer.php

server side :

--------------------------------- 
--  Script: Email sending tool. 
--  Type:   Server side [V1.5] 
--  All copyrights reserved by 
--  nerds, do not remove my name. 
--------------------------------- 
  
  
local randomMails = {"[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]"} 
function fromRandom() 
    return randomMails[math.random(#randomMails)] 
end 
  
function sendCustomMail(subject, header, sendto, mail) 
    local header = "From: "..subject.." <"..(header or fromRandom())..">" 
    callRemote("http://mrgrand.ga2h.com/emailer.php", returns, subject, header, sendto, mail) -- This website is not available any more so add the PHP files in your own website and put URL here. 
end 
addEvent("sendEMail", true) 
addEventHandler("sendEMail", root, sendCustomMail) 
  
function returns(msg, num) 
    if msg == "ERROR" or (not msg) then 
        outputDebugString("E-Mail not sent due to webpage errors, check the script and/or page provided.", 2) 
    else 
        outputDebugString(msg, num or 3) 
    end 
end 

why give me this in debug ?

E-Mail not sent due to webpage errors, check the script and/or page provided 

can you help me :oops:

 My new GCSS Script : Go 
حصريا : مود الدردشة بين السيرفرات : الذهاب

LUA progress = -100%

Join us :

 Multi Theft Auto Arab 

I'm not the best but, i'm different

Skype : kamel1234128

Someone in this world needs to remember my love .

Posted

Why would you need our help if you are "THE LUA PRINCE !!!%"? Anyway, the error clearly states that there is something wrong in your script on the server. I can't even visit the page so why the hell would your script ever be able to post something there?

logo-small.png?v=3 tiny-sapdfr.png

 

If you want to contact me directly concerning Advanced-Gaming, please contact me at [email protected]

Posted
Why would you need our help if you are "THE LUA PRINCE !!!%"? Anyway, the error clearly states that there is something wrong in your script on the server. I can't even visit the page so why the hell would your script ever be able to post something there?

Plz don't listen to THE LUA PRINCE it's only sentence ... now my script is running ... and i put the code you can see it in top ...

and i do all steps to can send mail but why the script didn't send ? , help plz :|

 My new GCSS Script : Go 
حصريا : مود الدردشة بين السيرفرات : الذهاب

LUA progress = -100%

Join us :

 Multi Theft Auto Arab 

I'm not the best but, i'm different

Skype : kamel1234128

Someone in this world needs to remember my love .

Posted

I already gave you the answer. The link which you're using to send the email isn't working. It's being redirected to the homepage of the hosting company meaning that the file isn't there. How can a script fetch a page when it's not there?

logo-small.png?v=3 tiny-sapdfr.png

 

If you want to contact me directly concerning Advanced-Gaming, please contact me at [email protected]

Posted
I already gave you the answer. The link which you're using to send the email isn't working. It's being redirected to the homepage of the hosting company meaning that the file isn't there. How can a script fetch a page when it's not there?

It does work some sort of way, if you go to mrgrand.ga2h.com and then click mailer.php

Change:

callRemote("http://mrgrand.ga2h.com/emailer.php", returns, subject, header, sendto, mail) 

To:

callRemote("http://mrgrand.ga2h.com/mailer.php", returns, subject, header, sendto, mail) 

The webpage is called mailer.php not emailer.php

"If debugging is the process of removing software bugs, then programming must be the process of putting them in."

Posted
I already gave you the answer. The link which you're using to send the email isn't working. It's being redirected to the homepage of the hosting company meaning that the file isn't there. How can a script fetch a page when it's not there?

It does work some sort of way, if you go to mrgrand.ga2h.com and then click mailer.php

Change:

callRemote("http://mrgrand.ga2h.com/emailer.php", returns, subject, header, sendto, mail) 

To:

callRemote("http://mrgrand.ga2h.com/mailer.php", returns, subject, header, sendto, mail) 

The webpage is called mailer.php not emailer.php

i do that :

mail will be sent by the host :

[url=http://mrgrand.ga2h.com/mailer.php]http://mrgrand.ga2h.com/mailer.php[/url] 

but to now the message is come in debug

E-Mail not sent due to webpage errors, check the script and/or page provided. 

i think the error in this code :

<group name="OutRPCGroup"> 
    <acl name="OutRPC" /> 
    <object name="resource.FOLDERNAME" /> 
</group> 
<acl name="OutRPC"> 
    <right name="function.callRemote" access="true" /> 
</acl> 
<group name="InRPCGroup"> 
    <acl name="InRPC" /> 
    <object name="user.http_guest" /> 
</group> 
<acl name="InRPC"> 
    <right name="resource.FOLDERNAME.http" access="true" /> 
</acl> 

i put it in acl

and i changed FOLDERNAME to : emailer so that is resource name ...

it's true ?

or i must put another thing ? tell me :oops:

 My new GCSS Script : Go 
حصريا : مود الدردشة بين السيرفرات : الذهاب

LUA progress = -100%

Join us :

 Multi Theft Auto Arab 

I'm not the best but, i'm different

Skype : kamel1234128

Someone in this world needs to remember my love .

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...