Advertisement
joris

Testing Kirim Email

Oct 9th, 2017
573
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.60 KB | None | 0 0
  1. $nama = 'Bertho';
  2. $email = 'berthojoris@gmail.com';
  3. $hp = '0819287182';
  4. $tanggal = '2017-01-02';
  5. $jam = 'Pukul 11';
  6. $regiscode = '01010101';
  7.  
  8. $client = new SoapClient('http://118.97.100.18/EMAILAPI/view/server.php?wsdl');
  9. $request = array(
  10.     'from' => 'noreply@transvision.co.id',
  11.     'to' => $email,
  12.     'subject' => 'THE WALKING DEAD REGISTRATION',
  13.     'body' => 'hehe',
  14.     'type' => '',
  15.     'attach1' => '',
  16.     'attach2' => '',
  17.     'attach3' => '',
  18. );
  19.  
  20. try {
  21.     $send = $client->sendMail($request);
  22.    
  23. } catch (SoapFault $e) {
  24.     echo '<pre>';
  25.     var_dump($e);
  26.     die();
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement