ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Swift Mailer and CI??

October 23, 2010 7:09pm

Subscribe [3]
  • #1 / Oct 23, 2010 7:09pm

    altrano

    20 posts

    Hi

    I searching for a Library to use Swift Mailer Latest Version with CI-1.7.2 but i only find some examples, tutorials for CI 1.5.x, i think this is to old to use… Or think i false?

    Thanks

  • #2 / Oct 24, 2010 5:51pm

    altrano

    20 posts

    anyone ??

  • #3 / Oct 24, 2010 5:53pm

    WanWizard

    4475 posts

    Point us to the example you’ve found, someone might have a look for you…

  • #4 / Oct 24, 2010 7:35pm

    altrano

    20 posts

    Point us to the example you’ve found, someone might have a look for you…

    Here

  • #5 / Oct 25, 2010 7:22am

    WanWizard

    4475 posts

    At first glance I don’t see why it shouldn’t work. Did you try it?

  • #6 / Oct 25, 2010 7:49am

    altrano

    20 posts

    At first glance I don’t see why it shouldn’t work. Did you try it?

    nope this is why i ask before i try invest hours fot somezhings that not will work on lates CI…

    i never decribed any problems, only aksing is working. 😊

  • #7 / Oct 25, 2010 12:05pm

    WanWizard

    4475 posts

    From the website you posted I only see a handfull of lines of code, mainly setting up a hook. That’s tested in 10 minutes.

  • #8 / Oct 26, 2010 11:58am

    n1colius

    8 posts

    well, i already try it like in the example
    and it doesn’t work.

    so can you show me how to actually make this work? 😊

  • #9 / Oct 26, 2010 12:45pm

    WanWizard

    4475 posts

    That doesn’t really help. What doesn’t work? What did you do? Any errors?

  • #10 / Oct 26, 2010 1:04pm

    n1colius

    8 posts

    i try to send email with smtp like the example in this link example

    the example are using CI 1.5.x and swift mailer older version

    i am trying using CI 1.7.2 and swift mailer Swift-4.0.6.
    in the example are asking we to require
    <br /> require_once “Swift.php”;<br /> require_once “Swift/Connection/SMTP.php”;<br />

    but when i looked at the library. it even doesn’t have this Swift.php file or Swift/Connection/SMTP.php
    i read the documentation and it should really point to lib/swift_required.php

    i try that but no luck too. i just got blank page, no error messages because in the example it just echo “sent” or echo “failed”;

    function index()
    {
    //Load in the files we'll need
    require_once "lib/swift_required.php";
    
    //this msg 'test' still appear, no blank page
    //echo 'test'; exit;
    
    //Start Swift
    $swift =& new Swift(new Swift_Connection_SMTP("your.smtp.com"));
    
    //blank page over here
    //echo 'test'; exit;
    
    //Create the message
    $message =& new Swift_Message("My subject", "My body");
    
    //Now check if Swift actually sends it
    if ($swift->send($message, "[email protected]", "[email protected]")) echo "Sent";
    else echo "Failed";
    }
    }

    any ideas so i can send email using smtp with swift mailer on CI 1.7.2?

  • #11 / Oct 26, 2010 2:03pm

    InsiteFX

    6819 posts

    Search for PHPMailer on the forum’s here!

    InsiteFX

  • #12 / Oct 26, 2010 2:57pm

    WanWizard

    4475 posts

    but when i looked at the library. it even doesn’t have this Swift.php file or Swift/Connection/SMTP.php
    i read the documentation and it should really point to lib/swift_required.php

    Have you actually read that webpage?

    At step 1, it says: download SWIFT MAILER from SWIFT MAILER website (choose PHP4 or PHP5 version according to your needs)

    I’m guessing that this would provide the Swift.php and related files…

  • #13 / Oct 26, 2010 6:13pm

    altrano

    20 posts

    Search for PHPMailer on the forum’s here!

    InsiteFX

    we want use Swift, and the only one thread about Swift_Mailer is the current here. not realy helpfull.

  • #14 / Oct 26, 2010 6:18pm

    altrano

    20 posts

    but when i looked at the library. it even doesn’t have this Swift.php file or Swift/Connection/SMTP.php
    i read the documentation and it should really point to lib/swift_required.php

    Have you actually read that webpage?

    At step 1, it says: download SWIFT MAILER from SWIFT MAILER website (choose PHP4 or PHP5 version according to your needs)

    I’m guessing that this would provide the Swift.php and related files…

    Yes i read the full article. And the article is so old on Swift homepage actually just one version not PHP4 or 5.

    have you read? 😊

  • #15 / Oct 26, 2010 10:33pm

    n1colius

    8 posts

    but when i looked at the library. it even doesn’t have this Swift.php file or Swift/Connection/SMTP.php
    i read the documentation and it should really point to lib/swift_required.php

    Have you actually read that webpage?

    At step 1, it says: download SWIFT MAILER from SWIFT MAILER website (choose PHP4 or PHP5 version according to your needs)

    I’m guessing that this would provide the Swift.php and related files…

    well, in the swift mailer web it just offer u one version to download which is Swift Mailer v 4.0.6 and it is say that it on PHP 5.

    i am really just looking a way to send email from my localhost, i try use Email Class from CI with smtp protocol, but always got a fsocket error.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases