Jump to content
Mubarokfood

ASK Test email eror

Recommended Posts

Tolong dong saya masih newby nih.
saat melakukan transaksi kenapa ada email yg masuk. setelah saya lakukan setting di mail allert, kemudian mails/id sudah saya copikan dr en
waktu saya kirim tes email keluar tulisan seperti di bawah.

"eror: harap periksa konfigurasi email Anda."
"Sending failed using mail()as PHP's default mail() funcion return boolean FALSE."

solusinya gmn ya gan? mohon bantuannya.

 

post-1308299-0-04431000-1472955772_thumb.jpg

Share this post


Link to post
Share on other sites

Better update ke versi terbaru gan 1.6.1.6, lalu coba lagi. Backup file dan sql nya gan sblm update

Share this post


Link to post
Share on other sites

Kalau ga bs juga, tes aja kirim email via php script (bs di googling caranya) kalau ga bs berarti memang hostingnya ada problem

Share this post


Link to post
Share on other sites

Ok nanti saya coba upgrade. Semoga bisa

kalau ini solusinya gmn ya?
kalau card kosong lambangnya $ tapi card terisi RP

q ga bisa upload gambar. bingung pke url

Edited by Mubarokfood (see edit history)

Share this post


Link to post
Share on other sites

Tolong dong saya masih newby nih.

saat melakukan transaksi kenapa ada email yg masuk. setelah saya lakukan setting di mail allert, kemudian mails/id sudah saya copikan dr en

waktu saya kirim tes email keluar tulisan seperti di bawah.

 

"eror: harap periksa konfigurasi email Anda."

"Sending failed using mail()as PHP's default mail() funcion return boolean FALSE."

 

solusinya gmn ya gan? mohon bantuannya.

 

Untuk mencari penyebabnya, coba buat file test-email.php berisi script php sbb :

// test-email.php
$from    = 'dari@tokoku.com';// ganti dengan alamat email pengirim yang sebenarnya
$to      = 'kepada@gmail.com';// ganti dengan alamat email tujuan yang sebenarnya

$subject = 'Test email dengan fungsi php mail()';
$message = 'Test email ' . __FILE__ . ' ' . date('d-m-Y H:i:s');
$headers = 'From: ' . $from ."\r\n" .
    'Reply-To: ' . $from . "\r\n" .
    'X-Mailer: PHP/' . phpversion();

// Tampilkan hasil pengujian
echo '<pre>';
echo 'PHP mail() result <br />';
echo 'From : '.$from.'<br />';
echo 'To : '.$to.'<br />';
echo 'Subject : '.$subject.'<br />';
var_dump(mail($to, $subject, $message, $headers));
echo '</pre>';

Eksekusi file tsb >> http://domain-anda.com/test-email.php

coba ganti-ganti alamat email tujuan, misalnya nama@gmail.com ; nama@domain-anda.com

Posting hasilnya disini

Share this post


Link to post
Share on other sites

Ok nanti saya coba upgrade. Semoga bisa

kalau ini solusinya gmn ya?

kalau card kosong lambangnya $ tapi card terisi RP

q ga bisa upload gambar. bingung pke url

Card yg mana mksdnya gan?

Cart mungkin ya? Ada url nya biar bs di cek?

Share this post


Link to post
Share on other sites

Untuk mencari penyebabnya, coba buat file test-email.php berisi script php sbb :

// test-email.php
$from    = 'dari@tokoku.com';// ganti dengan alamat email pengirim yang sebenarnya
$to      = 'kepada@gmail.com';// ganti dengan alamat email tujuan yang sebenarnya

$subject = 'Test email dengan fungsi php mail()';
$message = 'Test email ' . __FILE__ . ' ' . date('d-m-Y H:i:s');
$headers = 'From: ' . $from ."\r\n" .
    'Reply-To: ' . $from . "\r\n" .
    'X-Mailer: PHP/' . phpversion();

// Tampilkan hasil pengujian
echo '<pre>';
echo 'PHP mail() result <br />';
echo 'From : '.$from.'<br />';
echo 'To : '.$to.'<br />';
echo 'Subject : '.$subject.'<br />';
var_dump(mail($to, $subject, $message, $headers));
echo '</pre>';

Eksekusi file tsb >> http://domain-anda.com/test-email.php

coba ganti-ganti alamat email tujuan, misalnya nama@gmail.com ; nama@domain-anda.com

Posting hasilnya disini

kok hasilnya malh gni ya? binging. maap bru belajar

http://dodoljenangmubarok.com/test-email.php

saya klik test email masih tetap eror

 

 

Card yg mana mksdnya gan?

Cart mungkin ya? Ada url nya biar bs di cek?

cart di troli. kalau ada barangnya mis. Rp 17.000

kalau kosong $0.00

Edited by Mubarokfood (see edit history)

Share this post


Link to post
Share on other sites

http://dodoljenangmubarok.com/test-mail.php

 

itu file PHP jadi harus anda beri PHP opening tag diawal isi filenya

<?php
// isi file disini ...

:rolleyes:

maksutnya opening seperti ini?

maaf klo file php saya masih belum paham soalnya..
 
<?php

// define variables and set to empty values

$nameErr = $emailErr = $genderErr = $websiteErr = "";

$name = $email = $gender = $comment = $website = "";

 

if ($_SERVER["REQUEST_METHOD"] == "POST") {

  if (empty($_POST["name"])) {

    $nameErr = "Name is required";

  } else {

    $name = test_input($_POST["name"]);

    // check if name only contains letters and whitespace

    if (!preg_match("/^[a-zA-Z ]*$/",$name)) {

      $nameErr = "Only letters and white space allowed";

    }

  }

 

  if (empty($_POST["email"])) {

    $emailErr = "Email is required";

  } else {

    $email = test_input($_POST["email"]);

    // check if e-mail address is well-formed

    if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {

      $emailErr = "Invalid email format";

    }

  }

 

  if (empty($_POST["website"])) {

    $website = "";

  } else {

    $website = test_input($_POST["website"]);

    // check if URL address syntax is valid (this regular expression also allows dashes in the URL)

    if (!preg_match("/\b(?:(?:https?|ftp):\/\/|www\.)[-a-z0-9+&@#\/%?=~_|!:,.;]*[-a-z0-9+&@#\/%=~_|]/i",$website)) {

      $websiteErr = "Invalid URL";

    }

  }

 

  if (empty($_POST["comment"])) {

    $comment = "";

  } else {

    $comment = test_input($_POST["comment"]);

  }

 

  if (empty($_POST["gender"])) {

    $genderErr = "Gender is required";

  } else {

    $gender = test_input($_POST["gender"]);

  }

}

?>

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More