Re: My Mailer Include -
Miguel - 28.01.2011
This is extremely useful, I might be using this library in a not so far future.
Re : Re: My Mailer Include -
Stormz - 03.06.2011
Quote:
Originally Posted by costel_nistor96
Nice Include ... but: Why i get "Error: Missing parameters." in the .php file ?
|
Same question
Re : My Mailer Include -
Stormz - 03.06.2011
Your function dont understand when i put a string into the SendMail
It say missing parameters
Re: My Mailer Include -
Shelby - 05.07.2011
I need that include too much, can someone upload it?
Please?
Re: My Mailer Include -
Slice - 05.07.2011
Quote:
Originally Posted by Larceny
I need that include too much, can someone upload it?
Please?
|
The links are in the first post.
Quote:
Originally Posted by Stormz
Your function dont understand when i put a string into the SendMail
It say missing parameters
|
Don't leave any arguments as empty strings - it won't work.
Re: My Mailer Include -
Lorenc_ - 05.07.2011
Lol, this could be abused perhaps as a email bomber? Correct me if I am wrong, I find this really interesting. Thanks alot buddy =D
Re: My Mailer Include -
Calgon - 05.07.2011
That's probably why Slice isn't hosting the script himself - whoever uses this include needs to host the PHP file themselves, and I presume most of them will try hide the file for security.
Re: My Mailer Include -
Shelby - 05.07.2011
Quote:
Originally Posted by Slice
The links are in the first post.
|
Thank you.
Re: My Mailer Include -
Phanto90 - 08.07.2011
I'm trying to got used to this mailer inc but i've some problem.
First, i need to run it on a local server for test, so i done a little script to test the include using apache installed on my pc.
Code:
#define MAILER_URL "localhost/mailer.php"
#include a_samp
#include mailer
main()
{
SendMail( "testemail@hotmail.it", "Test@localhost.com", "Test", "Welcome test", "Message");
}
Then i tried to configure the smtp on xampp changing php.ini as follow:
I don't get i sendmail_from is related to ISP, so i need to have a "email@tiscali.it" to correct send the mail?
If i run the script nothing happens, no warning on the console.
P.S. Sorry for the bumping, but I can't find nothing over the internet :P
AW: My Mailer Include -
dUDALUS - 17.08.2011
Hi
I have a little webspace with a SMTP server. Where should I fill in the password ?
Simon
Re: My Mailer Include -
Ronaldo_raul™ - 17.08.2011
its quit advance for me but...your releases are always awesome so great..!
and yeah if you get some couple of time please help me in this to sort out things..!
Re: My Mailer Include -
Scenario - 18.08.2011
I keep getting the "Mailer script says: Error: Missing parameters" error...
This is my code:
pawn Код:
new szString[300], szString2[500];
format(szString, sizeof(szString), "Important: Your activation password for %s.", SERVER_NAME);
format(szString, sizeof(szString), "Welcome to %s. \n This is your account activation password: %s \n You can come in-game and finish activating your account by entering this password. \n Please do not reply to this message, it will not be read.", GetName(playerid), szString3);
SendMail(inputtext, "no-reply@realcop228.com", SERVER_NAME, szString, szString2);
Could someone tell me why this would be?
Re: My Mailer Include -
Lorenc_ - 18.08.2011
Quote:
Originally Posted by RealCop228
I keep getting the "Mailer script says: Error: Missing parameters" error...
This is my code:
pawn Код:
new szString[300], szString2[500]; format(szString, sizeof(szString), "Important: Your activation password for %s.", SERVER_NAME); format(szString, sizeof(szString), "Welcome to %s. \n This is your account activation password: %s \n You can come in-game and finish activating your account by entering this password. \n Please do not reply to this message, it will not be read.", GetName(playerid), szString3); SendMail(inputtext, "no-reply@realcop228.com", SERVER_NAME, szString, szString2);
Could someone tell me why this would be?
|
You're formatting "szString" twice, and haven't formatted szString2.
I doubt that'll be the problem though, just replace the include again with this current one.
Re: My Mailer Include -
Scenario - 18.08.2011
Quote:
Originally Posted by Lorenc_
You're formatting "szString" twice, and haven't formatted szString2.
I doubt that'll be the problem though, just replace the include again with this current one.
|
I just downloaded the include when I went to use this system. I'll see what happens though. Thanks!
Re: My Mailer Include -
Scenario - 19.08.2011
Okay, small update: I am attempting to use this include to send me an email each time my server is loaded. I have the "SendMail" function under "main()" and I am receiving no errors in the server console. I never receive the email though. What could be causing this?
Permissions on the mailer.php file are 644 on a Linux ran web-server.
Re: My Mailer Include -
AndreT - 19.08.2011
There's a lot of room for error if it has reached the PHP execution.
What you could do is see what the mail function returns.
PHP код:
$isSent = mail(...);
if($isSent)
echo 'Mail was accepted for delivery!';
else
echo 'Mail was not accepted for delivery!';
If it was accepted for delivery, then as the PHP manual says, the mail still might not reach its destination. There are a lot of things that could be wrong: PHP mailserver settings, it could get stuck in spam filters, etc.
Quote:
Returns TRUE if the mail was successfully accepted for delivery, FALSE otherwise.
It is important to note that just because the mail was accepted for delivery, it does NOT mean the mail will actually reach the intended destination.
|
Re: My Mailer Include -
Scenario - 19.08.2011
Quote:
Originally Posted by AndreT
There's a lot of room for error if it has reached the PHP execution.
What you could do is see what the mail function returns.
PHP код:
$isSent = mail(...);
if($isSent)
echo 'Mail was accepted for delivery!';
else
echo 'Mail was not accepted for delivery!';
If it was accepted for delivery, then as the PHP manual says, the mail still might not reach its destination. There are a lot of things that could be wrong: PHP mailserver settings, it could get stuck in spam filters, etc.
|
Could you tell me exactly where to place that piece of code? I have no clue what I'm doing when it comes to PHP.
Re: My Mailer Include -
AndreT - 19.08.2011
Replace
with
and after the last line:
add:
PHP код:
if($isSent)
echo 'Mail was accepted for delivery!';
else
echo 'Mail was not accepted for delivery!';
Re: My Mailer Include -
Scenario - 19.08.2011
Quote:
Originally Posted by AndreT
Replace
with
and after the last line:
add:
PHP код:
if($isSent)
echo 'Mail was accepted for delivery!';
else
echo 'Mail was not accepted for delivery!';
|
Okay, done. Where on earth can I find the results? This is on a shared hosting account at Volt Host using cPanel.
Re: My Mailer Include -
AndreT - 19.08.2011
In such case you should look in the server log.
pawn Код:
forward OnMailScriptResponse( iIndex, iResponseCode, const szData[ ] );
public OnMailScriptResponse( iIndex, iResponseCode, const szData[ ] )
{
printf( "Mailer script says: %s", szData );
}