[SOLVED] Trying to setup swiftmailer but failing miserably

Swift Mailer is a fantastic library for sending email with php. Discuss this library or ask any questions about it here.

Moderators: Chris Corbyn, General Moderators

Post Reply
dirkr
Forum Newbie
Posts: 20
Joined: Sat Jul 07, 2007 2:55 pm

[SOLVED] Trying to setup swiftmailer but failing miserably

Post 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 :)
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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.
dirkr
Forum Newbie
Posts: 20
Joined: Sat Jul 07, 2007 2:55 pm

Post 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 :)
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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.
nickvd
DevNet Resident
Posts: 1027
Joined: Thu Mar 10, 2005 5:27 pm
Location: Southern Ontario
Contact:

Post 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 ;)
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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.
dirkr
Forum Newbie
Posts: 20
Joined: Sat Jul 07, 2007 2:55 pm

Post 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 :)
Post Reply