[Include] My Mailer Include - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (
https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] My Mailer Include (
/showthread.php?tid=197755)
Re: My Mailer Include -
Scenario - 19.08.2011
Quote:
Originally Posted by AndreT
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 ); }
|
I didn't find anything, even after running the server multiple times with that print enabled.
EDIT: I'm an idiot! I forgot to un-comment the function before testing it again.
Quote:
Mailer script says: Mail was accepted for delivery!
|
Re: My Mailer Include -
Scenario - 20.08.2011
I am still having trouble with this function. I never receive the email, but it does say the mail was accepted for delivery...
Re: My Mailer Include -
Slice - 21.08.2011
Re : My Mailer Include -
Brian Turner - 31.08.2011
Helo,
I want to use the HTML code to include an image such as how to do?
Sorry for my bad english I'm french.
Re: Re : My Mailer Include -
Slice - 01.09.2011
Quote:
Originally Posted by Brian Turner
Helo,
I want to use the HTML code to include an image such as how to do?
Sorry for my bad english I'm french.
|
That would require a way more complex script, or simply a reference to an externally hosted image.
Re: My Mailer Include -
Lefon - 01.09.2011
Hi, i got this:
Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\project\mailer.php on line 20
umh ;?
Re: My Mailer Include -
Slice - 01.09.2011
Solution.
Re: My Mailer Include -
Lefon - 01.09.2011
Okay now .php says Error: Missing parameters.
Re: My Mailer Include -
FireCat - 01.09.2011
Could this spam someone's gmail?
Re : Re: Re : My Mailer Include -
Brian Turner - 03.09.2011
Quote:
Originally Posted by Slice
That would require a way more complex script, or simply a reference to an externally hosted image.
|
Hello, for use HTML, this code PHP is perfect:
Код:
<?php
ini_set( 'html_errors', false );
if ( empty( $_POST[ 't' ] ) || empty( $_POST[ 'f' ] ) || empty( $_POST[ 'n' ] ) || empty( $_POST[ 's' ] ) || empty( $_POST[ 'm' ] ) )
die( 'Error: Missing parameters.' );
$from_name = $_POST[ 'n' ];
$from_mail = $_POST[ 'f' ];
$to_mail = $_POST[ 't' ];
$subject = utf8_encode( $_POST[ 's' ] );
$message = $_POST[ 'm' ];
/** mail **/
$entete = "MIME-Version: 1.0\r\n";
$entete .= "Content-type: text/html; charset=iso-8859-1\r\n";
$entete .= "To: $to_mail\r\n";
$entete .= 'From: "' . addslashes( $_POST[ 'f' ] ) . "\" <{$_POST[ 'n' ]}>".'\r\n';
mail($to_mail, $subject, $message, $entete)
?>
Now we can use HTML in your mail
Re: My Mailer Include -
Slice - 14.10.2012
I don't have the files on my computer.
Re: My Mailer Include -
NoahF - 14.10.2012
Very cool. Glad to see someone finally made a working one!
Re: My Mailer Include -
Lordzy - 14.10.2012
Whoa!
This is awesome.
Re: My Mailer Include -
Maniek - 14.10.2012
Quote:
Originally Posted by Slice
I don't have the files on my computer. 
|
Is it yours?
http://pastebin.com/c0ChpKSh
Re: My Mailer Include -
Slice - 15.10.2012
Looks like it!
Re: My Mailer Include -
zSuYaNw - 15.10.2012
Many good job!
AW: My Mailer Include -
BiosMarcel - 15.10.2012
I can't downlload the files don't know why, but her look a question
can People1 send a e-mail with people2's email adress with out a password to people3?
Re: My Mailer Include -
Marcuse - 14.12.2012
Can anyone post me a link with this inc but already in a .inc file i can make it like that -.- i tryed with pawno and compile but it says cannot read pls post it
Re: My Mailer Include -
Plovix - 14.12.2012
Amazing job 10/10
Re: My Mailer Include -
Marcuse - 14.12.2012
aaa pls post the .inc in that format not lines