Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function send_mail()
- {
- global $wpdb;
- $to = 'mymail@gmail.com';
- $subject = 'Hello';
- $name='my name';
- $from="name@mydomain.com";
- $message = "
- <html>
- <head>
- <title>my title</title>
- </head>
- <body>
- <div>
- <tt> ".Hii How Are you."</tt>
- </div>
- </body>
- </html>";
- $header = "MIME-Version: 1.0rn";
- $header .= "Content-type: text/html; charset=iso-8859-1rn";
- $header .= "From: ".$name."<".$from.">rn";
- mail($to, $subject, $message, $header);
- }
- if( mail( $recipient, $subject, $message, $headers, "-f noreply@mydomain.com"))
- return "success";
- $headers = 'From: <test@test.com>' . "rn" .
- 'Reply-To: <test@test.com>';
- mail('<myEmail@gmail.com>', 'the subject', 'the message', $headers,
- '-fwebmaster@example.com');
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement