Git Product home page Git Product logo

Comments (4)

desta88 avatar desta88 commented on June 12, 2024

I think the problem is, your barcode should be attached on mail.
Try this '$this->email->print_debugger()' to debug your code.

from codeigniter-barcode.

crg821 avatar crg821 commented on June 12, 2024

I am trying to pass the image from $this->set_barcode($temp) into the view
Iload. So $message will contain other data and the image the function
set_barcode() generates like so:
$barcode = $this->set_barcode($temp);
$email_data = array('fname' =>$fname, 'barcode'=>$barcode);
$message = $this->load->view('path_to_view', $email_data, TRUE);

On Wed, Aug 31, 2016 at 5:11 AM, Andhika Desta Permana <
[email protected]> wrote:

I think the problem is, your barcode should be attached on mail.
Try this '$this->email->print_debugger()' to debug your code.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#3 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEHp6c5uboM7VHA2Q__94iN2vlWJqd92ks5qlVNOgaJpZM4JwKYr
.

from codeigniter-barcode.

bambanguzumaki11 avatar bambanguzumaki11 commented on June 12, 2024

public function SendEmail($results){foreach ($results->result() as $row){$this->email->clear(TRUE);$temp = rand(10000, 99999);$email = $row->email_test;$fname = $row->fname_test;$bar_code = $this->set_barcode($temp);$email_data = [];$email_data = array('fname'=> $fname, 'email'=> $email, 'bar_code'=> $bar_code);$message = $this->load->view('pages/email_format', $email_data, TRUE);$this->email->to($email_data['email']);$this->email->from("[email protected]", "Some Person");$this->email->subject("My Subject");$this->email->message($message);$send = $this->email->send();}}MY VIEW

from codeigniter-barcode.

destaFog avatar destaFog commented on June 12, 2024

@bambanguzumaki11 beutify your code please ..

from codeigniter-barcode.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.