09.04.2013, 15:03
(
Последний раз редактировалось Frede; 09.04.2013 в 16:59.
)
What is it
This is a mailerinclude that makes the look of your mail better.
You can see here three pics of different look in a mail:
This type is: GREAT_MAIL
This type is: SIMPLE_MAIL
This type is: EASY_MAIL
Well thease are pre-designed.
The types shall be used in
Why
well i have seen many servers use slice mailer include... its a really nice include exept of the design. Since the header in slice not are HTML then you cannot design the mail. Well here i have predesigned all the mails. However there are some #defines you most know before you can use the include
How do i get it to work
The only command in this include is:
But you have to define the required defines since they also is a part of the sended message to the PHP
The types is as following:
HTML and CSS and PHP
Acctully i will send you to my tutorial and show how i did the PHP stuff.
You can see it here
DOWNLOAD
Pastebin: Include: here
PHP: here
RAR file + testscript: here
Hobe this was what you needed
Why is this better than slice mail include
Well that is fully up to you... whatever you think. However, i most say this will bring up some design. Now i have pre designed 3 HTML to show how to do... but there are ofcause also a bad site.
The bad site is that in a HTML email you cant just use < and > since it will chicane the browser, however, if you do it the right way then you get a really pro look.
Credits
Agreement
Tutorial how to use it
There are many ways of using it.
[NOTE]: In GREAT_MAIL and SIMPLE_MAIL type you dont need to type All Rights Reserved, it do itself ;P
This is a mailerinclude that makes the look of your mail better.
You can see here three pics of different look in a mail:
This type is: GREAT_MAIL
This type is: SIMPLE_MAIL
This type is: EASY_MAIL
Well thease are pre-designed.
The types shall be used in
pawn Код:
nicemail(type, ...);
well i have seen many servers use slice mailer include... its a really nice include exept of the design. Since the header in slice not are HTML then you cannot design the mail. Well here i have predesigned all the mails. However there are some #defines you most know before you can use the include
How do i get it to work
Код:
//requiered #defines #define ServerLink // the ip:port of the server [NOTE]: WITHOUT SAMP:// #define forumlink //the HTTP link of your forum/UCP [NOTE]: WITHOUT HTTP:// #define ServerLogoLink //the HTTP link of the server logo you have [NOTE]: WITHOUT HTTP:// #define ServerName //the name of the server you own #define PHPLink //the HTTP link where you placed the PHP include [NOTE]: WITHOUT HTTP://
Код:
//optional defines #define MAX_MAIL_Length //define this if you want a longer message than 1024 characters #defined MAX_MAIL_TYPES //This is if you design other email styles than the predesigned ones. There are 3 predesigned types. If you want more than the predesigned ones, then you can #define MAX_MAIL_TYPES to the new number of types in you PHP code.
pawn Код:
nicemail(type, reciveremail[], recivername[], senderemail[], sendername[], subject[], message[])
The types is as following:
pawn Код:
GREAT_MAIL //last emailtype i showed on the pics
SIMPLE_MAIL
EASY_MAIL //the first email i showed
Acctully i will send you to my tutorial and show how i did the PHP stuff.
You can see it here
DOWNLOAD
Pastebin: Include: here
PHP: here
RAR file + testscript: here
Hobe this was what you needed
Why is this better than slice mail include
Well that is fully up to you... whatever you think. However, i most say this will bring up some design. Now i have pre designed 3 HTML to show how to do... but there are ofcause also a bad site.
The bad site is that in a HTML email you cant just use < and > since it will chicane the browser, however, if you do it the right way then you get a really pro look.
Credits
pawn Код:
/*
///////////////////////////////////////////////////////
// ******** ****** ******* ***** ****** //
// * * * * * * * //
// * * * * * * * //
// ***** ****** **** * * **** //
// * * * * * * * //
// * * * * * * * //
// * * * ******* ***** ****** //
///////////////////////////////////////////////////////
--------------------------------------------------------------------------------
[CREDITS]
Me(Frede) - Creating the include
Slice - Giving me the idea. And i have used some of the functions from slice's include
*/
Quote:
This Include is made by Frede(Frederik Svend Vester). By using this you agree with following *Keep my credits *Of cause you most edit this and the PHP code if you just Keep my Credits *If you want to rerelease it then you most keep my credits. And ask me first This was the agreements, however if you create a new design in this please do it public. This is not requied, however, most people like to have some design, so why not make others happy. |
There are many ways of using it.
pawn Код:
//top of your script
#include <a_samp>
#define ServerLink "example.com:7777"
#define forumlink "example.com"
#define ServerLogoLink "example.com/img/sigle.png"
#define ServerName "[EX]example"
#define PHPLink "example.com/mymail.php"
#include <nicemailer>
public OnPlayerConnect(playerid)
{
//...
if(Visits[playerid] == 0)
{
new pname[24];
GetPlayerName(playerid, pname, 24);
nicemail(GREAT_MAIL, PlayerInfo[Email], pname, "welcome.example.com", "Server", "Welcome to [EX]example", "Welcome to [EX]example we want you to complete your registration. Please go <a href='http://example.com'>here</a> to compleate your registration.");//This will show a link in "here" instead of in slice you had to get your players to copy the link themself into the browser. and of cause it will have a more nice look.
}
return 1;
}
[NOTE]: In GREAT_MAIL and SIMPLE_MAIL type you dont need to type All Rights Reserved, it do itself ;P