undefined Posted July 12, 2015 Share Posted July 12, 2015 (edited) https://community.multitheftauto.com/index.php?p=resources&s=details&id=11231 Im use this resource for send email. When I sent email, it is giving warning. But the email is sending. Why??? function sendCustomMail(subject, header, sendto, mail) local header = "From: "..subject.." <"..(header or fromRandom())..">" callRemote("mylink/mailer.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 I don't change anything. Edited July 12, 2015 by Guest Link to comment
GTX Posted July 12, 2015 Share Posted July 12, 2015 I don't quite get you. You get a warning, but the email is sent successfully? Show your PHP script. Link to comment
undefined Posted July 12, 2015 Author Share Posted July 12, 2015 Yes, so strange. You can download it from link. It is up. Link to comment
GTX Posted July 12, 2015 Share Posted July 12, 2015 If you want to delete warnings, edit your returns function. 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 Link to comment
undefined Posted July 12, 2015 Author Share Posted July 12, 2015 I already knew it but I am curious it Link to comment
GTX Posted July 12, 2015 Share Posted July 12, 2015 It's not actually an error, it just returns a message to check whether the webserver is down or not. No idea why script creator added this. Link to comment
iMr.Dawix~# Posted July 14, 2015 Share Posted July 14, 2015 maybe the error, because it dosen't have ACL Access https://wiki.multitheftauto.com/wiki/CallRemote Link to comment
GTX Posted July 14, 2015 Share Posted July 14, 2015 maybe the error, because it dosen't have ACL Access https://wiki.multitheftauto.com/wiki/CallRemote It wasn't an error, he was just wondering why there were errors in debug script (There's outputDebugString in the script). The topic was already solved long time ago, read posts. Link to comment
iMr.Dawix~# Posted July 14, 2015 Share Posted July 14, 2015 maybe the error, because it dosen't have ACL Access https://wiki.multitheftauto.com/wiki/CallRemote It wasn't an error, he was just wondering why there were errors in debug script (There's outputDebugString in the script). The topic was already solved long time ago, read posts. oh sorry Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now