[Include] My Mailer Include
#41

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!

Reply
#42

I am still having trouble with this function. I never receive the email, but it does say the mail was accepted for delivery...
Reply
#43

Reply
#44

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.
Reply
#45

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.
Reply
#46

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 ;?
Reply
#47

Solution.
Reply
#48

Okay now .php says Error: Missing parameters.
Reply
#49

Could this spam someone's gmail?
Reply
#50

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
Reply
#51

I don't have the files on my computer.
Reply
#52

Very cool. Glad to see someone finally made a working one!
Reply
#53

Whoa!
This is awesome.
Reply
#54

Quote:
Originally Posted by Slice
Посмотреть сообщение
I don't have the files on my computer.
Is it yours? http://pastebin.com/c0ChpKSh
Reply
#55

Looks like it!
Reply
#56

Many good job!
Reply
#57

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?
Reply
#58

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
Reply
#59

Amazing job 10/10
Reply
#60

aaa pls post the .inc in that format not lines
Reply


Forum Jump:


Users browsing this thread: 11 Guest(s)