[Include] designed mails
#1

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
pawn Код:
nicemail(type, ...);
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
Код:
//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.
The only command in this include is:
pawn Код:
nicemail(type, reciveremail[], recivername[], senderemail[], sendername[], subject[], message[])
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:
pawn Код:
GREAT_MAIL  //last emailtype i showed on the pics
SIMPLE_MAIL
EASY_MAIL //the first email i showed
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
pawn Код:
/*

                    ///////////////////////////////////////////////////////
                    //    ********  ******    *******   *****     ****** //
                    //    *         *     *   *         *    *    *      //
                    //    *         *     *   *         *     *   *      //
                    //    *****     ******    ****      *     *   ****   //
                    //    *         *     *   *         *     *   *      //
                    //    *         *     *   *         *    *    *      //
                    //    *         *     *   *******   *****     ****** //
                    ///////////////////////////////////////////////////////

--------------------------------------------------------------------------------
                        [CREDITS]
                    Me(Frede) - Creating the include
            Slice - Giving me the idea. And i have used some of the functions from slice's include
*/
Agreement

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.

Tutorial how to use it
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
Reply
#2

More design: If you wish a personal design then i could help you abit throuth, however, if you just know a bit from HTML then i think you should take a look on http://www.w3schools.com/, since they show you a really nice way to learn it.

PM me if you want a design...
Reply
#3

You should probably choose some different colors.. those suck

Also I suggest making a function to change the border-radius as it looks terrible with everything rounded

Also maybe add some functions for css3 animations ?
Reply
#4

yes, well however, it looks better than slice, and it is able to take links instead of normal text the player itself has to copy over.
And well the idea was that the scripter should create a design that fitted to his server.
And btw maybe you should advise me some colors. Im colorblind!.
Reply
#5

With slice's one I'm sure (if he doesn't strip slashes) that you can do all this anyway as you can pass html through php functions.
Reply
#6

Quote:
Originally Posted by thefatshizms
Посмотреть сообщение
With slice's one I'm sure (if he doesn't strip slashes) that you can do all this anyway as you can pass html through php functions.
I know, but that is exacly what this does. Pass through html with php.
Reply
#7

... my point was you could just do that in a normal function..

for example: mail("myemail@hotmail.com", "<div style='color:red; background-color:#ff0000; border-radius:3px;'>Shizel</div>");
Reply
#8

This is great, nice work
Reply
#9

Quote:
Originally Posted by thefatshizms
Посмотреть сообщение
... my point was you could just do that in a normal function..

for example: mail("myemail@hotmail.com", "<div style='color:red; background-color:#ff0000; border-radius:3px;'>Shizel</div>");
Well, that was the point. You have to edit the php headers and it would give the alot more characters. And to be hornest, i got a little issue with slice's include, that if your array become to large, it will crash the server. This could be a problem if you use to mutch HTML. Therefore i took this way through.

But well if you can write a normal email plus designing it in pawno and sending it to your php file without getting a crash or whatever, then its great.
Reply
#10

This is surely GREAT_TYPE
Reply
#11

I dont like the designs at all. The color scheme is poor. Also add a way to update the logo on the design via the game mode functions. Or something. But well done. Keep learning.
Reply
#12

Well since im colorblind i would like you to suggest some hex colors, thease was just some random ones. So thanks, esspecially if you give me some colors you would like me to use. I cant see them anyway.
Reply
#13

Quote:
Originally Posted by Frede
Посмотреть сообщение
Well since im colorblind i would like you to suggest some hex colors, thease was just some random ones. So thanks, esspecially if you give me some colors you would like me to use. I cant see them anyway.
I hope i could given you better color suggestions but am myself bad at choosing colors , seriously saying. A Web Designer could probably help you with this. They are the one's who have perfect knowledge in choosing best color scheme according to a page or a logo or a picture.
Reply
#14

colors... i cant even see them... but you are right... i could design them better :P i just need some colors to make them on
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)