Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- smtp_server=smtp.gmail.com
- smtp_port=465
- smtp_ssl=ssl
- error_logfile=error.log
- debug_logfile=debug.log
- auth_username=khairulamran.nazri@gmail.com
- auth_password=[email password]
- pop3_server=
- pop3_username=
- pop3_password=
- force_sender=khairulamran.nazri@gmail.com
- force_recipient=
- hostname=smtp.gmail.com
- SMTP = smtp.gmail.com
- smtp_port = 465
- sendmail_path = ""C:xamppsendmailsendmail.exe" -t"
- mail.add_x_header=Off
- <?php
- if(isset($_POST['submitted'])){
- $name=$_POST['name'];
- $to=$_POST['email'];
- $hp=$_POST['hp'];
- $subject="Test";
- $msg="Thank you for Register. Your Name is ".$name." and Hp no. is ".$hp;
- $header="khairulamran.nazri@gmail.com";
- $success=mail($to,$subject,$msg,$header);
- if($success==true){
- echo "Email send successfully ";
- } else{
- echo "Error sending email";
- }
- }
- ?>
- <form name="contact" method="post" action="">
- Nama:<input type="text" name="name"><p>
- Email:<input type="text" name="email"><p>
- Hp:<input type="text" name="hp">
- <input type="submit" name="submitted" value="Submit">
- </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement