Welcome Guest, Not a member yet? Register   Sign In
Swift Mailer and CI??
#1

[eluser]altrano[/eluser]
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

[eluser]altrano[/eluser]
anyone ??
#3

[eluser]WanWizard[/eluser]
Point us to the example you've found, someone might have a look for you...
#4

[eluser]altrano[/eluser]
[quote author="WanWizard" date="1287971586"]Point us to the example you've found, someone might have a look for you...[/quote]

Here
#5

[eluser]WanWizard[/eluser]
At first glance I don't see why it shouldn't work. Did you try it?
#6

[eluser]altrano[/eluser]
[quote author="WanWizard" date="1288020160"]At first glance I don't see why it shouldn't work. Did you try it?[/quote]

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. Smile
#7

[eluser]WanWizard[/eluser]
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

[eluser]n1colius[/eluser]
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? Smile
#9

[eluser]WanWizard[/eluser]
That doesn't really help. What doesn't work? What did you do? Any errors?
#10

[eluser]n1colius[/eluser]
i try to send email with smtp like the example in this link <a href="http://freakauth.4webby.com/tutorials/ci-swift-mailer.html">example</a>

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
<code>
require_once "Swift.php";
require_once "Swift/Connection/SMTP.php";
</code>

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";

Code:
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?




Theme © iAndrew 2016 - Forum software by © MyBB