Page 1 of 1

[SOLVED] Trying to setup swiftmailer but failing miserably

Posted: Sat Jul 07, 2007 2:59 pm
by dirkr
i've used PHPMailer for a while..but the ending of development got me looking for a new way to send my mails.
So i stumbled upon Swift..and it seems nice..but..

i uploaded the /lib/ dir
i uploaded the /tests/ dir
i created /tests/tmp/ and chmod 777'd it
i edited TestConfiguration.php to my info ( changed the names/mailaddresses and the smtp authentication information to the same info i used in PHPMailer )

now i tried the smoke tests and all of em just fail..
k.. np there i dont mind looking arround for a solution..but the problem is .. all i get is Error: Message did not send!
now that doesnt really give me alot of information why the message failed to send.. is there a way to get some more detailed output as to why it failed? ( wrong credentials..smtp just failing.. or w/e )

would appreciate some info as to get this working :)

Posted: Sat Jul 07, 2007 4:03 pm
by Chris Corbyn
The smoke tests just catch errors and fail if something goes wrong. Swift does actually know more about the problem, it's just that I haven't coded the smoke tests to show it.

Are you running PHP4 or PHP5? I'll give you a tip on how to modify the smoke tests to display some log information. I guess I can modify the smoke tests in newer releases to do this automatically actually.

Posted: Sat Jul 07, 2007 4:29 pm
by dirkr
thnx for the quick reply

i'm using PHP 4
would be a nice edit imo.. if you're like me and dont need to do all the tests at the moment, but just wanna check if you're mail is set up propperly it would make it easier to pinpoint where the error is comming from :)

Posted: Sat Jul 07, 2007 4:51 pm
by Chris Corbyn
http://www.w3style.co.uk/~d11wtq/smokes-php4.zip

Download that archive, unzip it then replace the "smokes" folder with the one in that zip file ;) I've changed this is the repository too so it will appear in subsequent versions.

Posted: Sat Jul 07, 2007 5:17 pm
by nickvd
Heh, aint svn fun :)

I mistakenly used the trunk instead of the latest tag for an svn:external and i just noticed the revision jump :)

Now that i've switched it to the 3.2.6's tag, it keeps showing as updated to rev:407, which is the trunk, but not the tag... Any ideas? (not that it's a big deal)


Sorry for the hijack ;)

Posted: Sat Jul 07, 2007 6:20 pm
by Chris Corbyn
Yeah it should be r402. Hmm, I guess externals doesn't like seeing revisions go backward :lol: I'd probably just remove the externals property completely, commit, delete the directory if it hangs around, then set up externals again, commit, update. Not sure it will work. I imagine svn is working with the correct files, it's just thrown a wobbler about the revision change.

Posted: Sun Jul 08, 2007 3:42 am
by dirkr
thanks for the logdump .. helped alot :)
works perfectly now ^^ ( had a damn typo in my authentication info )

only the embedded image test fails ..well it goes thru but i guess hotmails filters dont like it ..

anyhow.. nice product so far :)