PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Fri Jul 20, 2018 11:07 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 53 posts ]  Go to page Previous  1, 2, 3, 4
Author Message
 Post subject: Re: utf-8 support?
PostPosted: Thu Aug 03, 2006 1:03 pm 
Offline
Breakbeat Nuttzer
User avatar

Joined: Wed Mar 24, 2004 8:57 am
Posts: 13098
Location: Melbourne, Australia
akreider wrote:
Does this have utf-8 support? I'm getting my software to work in unicode so that it will work in 99% of the world's languages.

I'm not sure if you'd want to build-in utf-8 support, or if there is something that programmers should be doing before they get the email text into your script?

I've read something about needing to convert the email text to base64... I guess I'd want to be able to have the email text, subject header, and to: header in unicode.


I can now confidently answer this question with "Yes".

2.1.0 includes a number of changes which all deal with unicode and other character encoding issues. I've had a number of developers try test this quite throroughly against various servers an clients with languages covering thai, danish, spanish and swedish. Thai was also tested with windows-874 encoding successfully.

Unless you specify otherwise using setCharset() Swift will automatically figure out if the email you're sending is UTF-8 or not.

The other change added apart from the encoding itself is to check for servers that support 8BITMIME and don't require the use of quoted-printable encoiding on top of the unicode. These servers will just take the unicode as is, the others will take it with QP encoding and the client decodes that again.

In a nutshell, UTF-8 is working great and you don't need to specify it ;)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 17, 2006 2:11 pm 
Offline
The Ninja Space Mod
User avatar

Joined: Fri Aug 05, 2005 1:53 pm
Posts: 6424
Location: Paradise, CA
d11... I just used this for the first time today. WOW. Freakin sweet. This is SOO much better than PHPMailer. WAY above and beyond my expectations. Nice work!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 17, 2006 2:12 pm 
Offline
Breakbeat Nuttzer
User avatar

Joined: Wed Mar 24, 2004 8:57 am
Posts: 13098
Location: Melbourne, Australia
The Ninja Space Goat wrote:
d11... I just used this for the first time today. WOW. Freakin sweet. This is SOO much better than PHPMailer. WAY above and beyond my expectations. Nice work!


Heh, thanks :)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 18, 2006 4:23 pm 
Offline
Breakbeat Nuttzer
User avatar

Joined: Wed Mar 24, 2004 8:57 am
Posts: 13098
Location: Melbourne, Australia
There are now Unit Tests included with Swift ... ermm... These are my first publically released units for anything before so feedback is good ;)


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 15, 2006 11:33 am 
Offline
Breakbeat Nuttzer
User avatar

Joined: Wed Mar 24, 2004 8:57 am
Posts: 13098
Location: Melbourne, Australia
FYI

Swift Mailer has been integrated into Symfony: http://www.symfony-project.com/trac/wiki/SymfonyPlugins (sfSwiftPlugin)

I believe there are plans to convert Symfony's sfMail to use Swift although following the Trac ticket for it seems have died thus far.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 01, 2006 11:30 am 
Offline
Breakbeat Nuttzer
User avatar

Joined: Wed Mar 24, 2004 8:57 am
Posts: 13098
Location: Melbourne, Australia
Since I'm guessing the SwiftMailer forum isn't one everybody flocks to I'd just like to draw your attention to a proposal and gather your thoughts:

http://forums.devnetwork.net/viewtopic.php?t=58112 (Replies in the linked thread only please) :)


Top
 Profile  
 
PostPosted: Tue Nov 07, 2006 3:15 pm 
Offline
Forum Newbie

Joined: Tue Nov 07, 2006 3:06 pm
Posts: 4
First of all thanks for the great library...

I am having a weird problem. I am sending emails with attachments.
(I used your example code as a base).

The attachments are not recognized by outlook or outlook express.

I bcc to myself (Mac Mail client) and I see the attachment fine.

Any thoughts on this...?

I let swift set the mime type (octet-stream) :

$mailer->addAttachment(file_get_contents($file), $this->current_doc);

Any help will be greatly appreciated.


Top
 Profile  
 
PostPosted: Tue Nov 07, 2006 3:23 pm 
Offline
Breakbeat Nuttzer
User avatar

Joined: Wed Mar 24, 2004 8:57 am
Posts: 13098
Location: Melbourne, Australia
Martinez wrote:
First of all thanks for the great library...

I am having a weird problem. I am sending emails with attachments.
(I used your example code as a base).

The attachments are not recognized by outlook or outlook express.

I bcc to myself (Mac Mail client) and I see the attachment fine.

Any thoughts on this...?

I let swift set the mime type (octet-stream) :

$mailer->addAttachment(file_get_contents($file), $this->current_doc);

Any help will be greatly appreciated.


Create a thread in this forum and post the code in question :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 53 posts ]  Go to page Previous  1, 2, 3, 4

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group