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
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
October 23, 2010 7:09pm
Subscribe [3]#1 / Oct 23, 2010 7:09pm
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
anyone ??
#3 / Oct 24, 2010 5:53pm
Point us to the example you’ve found, someone might have a look for you…
#4 / Oct 24, 2010 7:35pm
Point us to the example you’ve found, someone might have a look for you…
#5 / Oct 25, 2010 7:22am
At first glance I don’t see why it shouldn’t work. Did you try it?
#6 / Oct 25, 2010 7:49am
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
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
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
That doesn’t really help. What doesn’t work? What did you do? Any errors?
#10 / Oct 26, 2010 1:04pm
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
Search for PHPMailer on the forum’s here!
InsiteFX
#12 / Oct 26, 2010 2:57pm
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
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
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.phpHave 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
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.phpHave 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.