Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- echo'
- <html>
- <head>
- <title>Mailer ~ shutdown57 </title>
- <meta name="viewport" content="width=device-width,initial-scale=1">
- </head>
- <body>
- <h1> PHP Mailer <small> Coded by shutdown57 </small></h1>
- <form method="post">
- <input type="text" name="nama" placeholder="nama anda" id="s57">
- <br>
- <input type="email" name="email" placeholder="[email protected]" id="s57">
- <br>
- <input type="text" name="sabjek" placeholder="subject" id="s57">
- <br>
- <textarea name="pesan" >
- Message here
- </textarea>
- <br>
- <input type="submit" value="kirim!" name="kirim" id="buton">
- </form>
- </body>
- </html>
- ';
- if(!empty($_POST['kirim'])){
- $name=$_POST['nama'];
- $email=$_POST['email'];
- $subject=$_POST['sabjek'];
- $message=$_POST['pesan'];
- $to=$email;
- $message="From:$name <br />".$message;
- $headers = "MIME-Version: 1.0" . "\r\n";
- $headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";
- $headers .= 'From: WithOutShadow <[email protected]>'."\r\n" . 'Reply-To: '.$name.' <'.$email.'>'."\r\n";
- @mail($to,$subject,$message,$headers);
- if(@mail)
- {
- echo "<br>Berhasil Mengirim Email !";
- }else{echo'gagal mengirim email,mungkin ada form yang belum anda isi';}
- }
- ?>
- <style>
- body{
- background:#eee;
- color:#007DFF;
- }
- form{
- width:100%;}
- #s57{
- color:#ff0003;
- background:#333;
- border:0;
- border-radius:5px;
- width:100%;
- height:30px;
- font-size:20px;
- margin-bottom:4px;
- }
- #buton{
- width:60%;
- height:30px;
- color:#eee;
- background:#ff0003;
- border:0;
- border-radius:4px;
- box-shadow:0px 0px 8px #333;
- margin-top:5px;
- position:absolute;
- }
- textarea{
- width:100%;
- height:100px;
- color:#3700FF;
- background:transparent;
- text-decoration:bold;
- }
- </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement