Need help with Email Include :(
#1

Hey Guys,

i want use this Include -> https://sampforum.blast.hk/showthread.php?tid=197755
But how i use this? I dont understand this, can anybody help me :/ ?


Lg
Reply
#2

It's extremely simple - read the topic.
Reply
#3

I do this all the time.

Sorry for my bad english, im from germany and my english is not so perfect like yours.

Can anybody help me?
Reply
#4

Do I need to change something here ?

Its a part of the mailer.php

'From: "' . addslashes( $_POST[ 'f' ] ) . "\" <{$_POST[ 'n' ]}>",
"Reply-To: {$_POST['f']}",
"X-Mailer: PHP/" . phpversion( ),
Reply
#5

I don't see what you're asking, from what I can tell you don't need to edit any of the script. It should be working the way it is now if you configured it correctly.
Reply
#6

Don't change anything, except adding (before the mailer.inc include) #define MAILER_URL {url} where '{url}' is the place where you'd put the mailer.php file (that one must be put online)
Reply
#7

Allright.
I have a Webspace (24/7-Online) but if i visit the link to the mailer.php
there come: Error:Missing Parameters, is this normal?
Lg
Reply
#8

That is not normal, no :P. You forgot a parameter it seems. Use the function like this:
pawn Код:
SendMail( to[], sender_email[], sender_name[], subject[], message[] );
So, if you want to send a message to "kwarde@mail.com", with 'sender mail' as 'noreply@myserver.com' (and the name of that mail or your server is "My Server" with subject "Hello world" and message "This is working it seems!" you must use:
pawn Код:
SendMail("kwarde@mail.com", "noreply@myserver.com", "My SAMP server", "Hello world", "This is working it seems!");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)