Skip to main content

Kesel kirim email ga bisa-bisa pake sendmail, mail, smtp mau yang typenya text html malah ga bisa semua

May 31, 2011 by hendroprwk

hendroprwk's picture

kawan-kawan adaapa dengan masalah saya. saya lg ngetes di hosting gratis "bythehost", kok ga bisa kirim2 email yah, ini errornya
=====================
A PHP Error was encountered

Severity: Notice

Message: Undefined index: From

Filename: libraries/Email.php

Line Number: 1329

A PHP Error was encountered

Severity: Notice

Message: Undefined index: From

Filename: libraries/Email.php

Line Number: 921

A PHP Error was encountered

Severity: Notice

Message: Undefined index: Return-Path

Filename: libraries/Email.php

Line Number: 570

A PHP Error was encountered

Severity: Notice

Message: Undefined index: From

Filename: libraries/Email.php

Line Number: 1519

Unable to send email using PHP mail(). Your server might not be configured to send mail using this method.
User-Agent: CodeIgniter
Date: Tue, 31 May 2011 10:10:23 +0000
Reply-To: "" <>
X-Mailer: CodeIgniter
X-Priority: 1 (Highest)
Message-ID: <4de4be8f3b431>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
=?utf-8?Q?Pendaftaran_dari_web_LP3I_Pondok_Gede?=
Pendaftaran atas nama : tryrtyrt/n
Alamat : werwe/n
Email : /n/n
Informasi sekolah/n/n
Nama : /n
Alamat : /n
Telp : /n
Tahun lulus : /n/n
Informasi kerja/n/n
Nama : /n
Alamat : /n
Telp : /n
Bagian : /n
Status : /n/n
Kelas yang diinginkan/n/n
Kelas : Reguler/n
Program : Sekretaris

============

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Bukan codingnya... tapi cari

June 5, 2011 by cahndeso, 2 days 3 hours ago
Comment: 8308

cahndeso's picture

Bukan codingnya... tapi cari hosting yang ada fasilitas untuk kirim email... mungkin harus yang berbayar. selama ini saya pakai: http://alturl.com/ff46g yang menarik adalah unlimited space, unlimited bandwidth.. harga setelah saya bandingkan dengan hosting lain di indonesia,.. murah banget... technical supportnya juga bagus... lebih dari 5 situs saya host di sana...

Happy Coding..

Cahndeso

sudah...aku pun menambahkan

June 4, 2011 by hendroprwk, 3 days 2 hours ago
Comment: 8302

hendroprwk's picture

sudah...aku pun menambahkan protocol dan type.
ini kodingnnya
==========

$config['protocol'] = 'mail';
$config['mailpath'] = '/usr/sbin/sendmail';
$config['protocol'] = 'smtp';
$config['smtp_host'] = 'localhost';
$config['mailtype'] = 'text';
$config['priority'] = 3;
$config['charset'] = 'iso-8859-1';
$config['wordwrap'] = TRUE;
$this->email->initialize($config);
$this->email->to($row->email);

$pesan = 'Pendaftaran atas nama : '.$this->input->post('nama').'/n
Alamat : '.$this->input->post('alamat').'/n
Email : '.$this->input->post('email').'/n/n
Informasi sekolah/n/n
Nama : '.$this->input->post('namasekolah').'/n
Alamat : '.$this->input->post('alamatsekolah').'/n
Telp : '.$this->input->post('telpsekolah').'/n
Tahun lulus : '.$this->input->post('thnlulus').'/n/n
Informasi kerja/n/n
Nama : '.$this->input->post('namaperush').'/n
Alamat : '.$this->input->post('alamatperush').'/n
Telp : '.$this->input->post('telpperush').'/n
Bagian : '.$this->input->post('bagian').'/n
Status : '.$this->input->post('statuskerja').'/n/n
Kelas yang diinginkan/n/n
Kelas : '.$this->input->post('kelas').'/n
Program : '.$this->input->post('program').'';

$this->email->subject('Pendaftaran dari web L');
$this->email->message($pesan);

if (!$this->email->send()){
echo $this->email->print_debugger();
} else {
echo ' ';
echo 'Hai, '.$this->input->post('nama').' Pendaftaran anda kami proses. dalam 1 x 24 jam, akan ada konfirmasi dari untuk informasi lebih lanjut.'. anchor('tsa/index', 'Lanjut').'';
echo '';
}

Freehosting bytehost

June 5, 2011 by cahndeso, 2 days 6 hours ago
Comment: 8306

cahndeso's picture

Freehosting bytehost memang tidak mendukung pengiriman email bro... tadi malam sy dah cobain register... bahkan setting smpt lewat google-pun gak bisa... kalau baca di forum, send email didukung hanya untuk yang VPS... jangankan yang free, yang berbayar pun tidak ada fasilitas itu...

Happy Coding..

Cahndeso..

mohon sarannya. bagaimana

June 5, 2011 by hendroprwk, 2 days 5 hours ago
Comment: 8307

hendroprwk's picture

mohon sarannya. bagaimana coding yang harus saya lakukan?

sebelum kirim email, sudahkah

May 31, 2011 by cahndeso, 1 week 17 hours ago
Comment: 8278

cahndeso's picture

sebelum kirim email, sudahkah kode semacam ini dilakukan...?

$this->email->from(�fromemail@address.com’, �Email Team’);
$this->email->to(�toemail@address.com’);
$this->email->subject(�Test Email’);     
$this->email->message($data_email_send_customer);
$this->email->send(); 

Happy Coding..

Cahndeso.

Premium Drupal Themes by Adaptivethemes