SA-MP Forums Archive
Need help with Email 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: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Need help with Email Include :( (/showthread.php?tid=437016)



Need help with Email Include :( - HappyDeathmatch - 13.05.2013

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


Re: Need help with Email Include :( - MP2 - 13.05.2013

It's extremely simple - read the topic.


Re: Need help with Email Include :( - HappyDeathmatch - 13.05.2013

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?


Re: Need help with Email Include :( - HappyDeathmatch - 13.05.2013

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( ),


Re: Need help with Email Include :( - mrtms - 13.05.2013

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.


Re: Need help with Email Include :( - Kwarde - 13.05.2013

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)


Re: Need help with Email Include :( - HappyDeathmatch - 14.05.2013

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


Re: Need help with Email Include :( - Kwarde - 14.05.2013

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!");