[FX.php List] RE: Filemaker French character and PHP mail function

Dominique Uris dominique at macsol.ca
Thu Jan 28 09:34:03 MST 2010


Thanks Dale and Leo,
I have downloaded swiftmailer and I will give it a try.
Thanks,
Dominique

> I second the recommendation of using SwiftMailer. It solved many of  
> these same problems when we switched to it.
> Dale
>
>  --
> Dale Bengston
> Streamline Studio, LLC
> www.streamline-studio.com
>
> On Jan 27, 2010, at 12:19 PM, Leo R. Lundgren wrote:
>
> > This might not be the answer you are looking for, but I highly  
> recommend that you start using a decent library that is designed to  
> handle these specific tasks *for* you, instead of trying to manually  
> do things that have only minimal support in PHP.
> >
> > So in short, download SwiftMailer and get going. It's at www.swiftmailer.org 
>  and here's a small quick intro: http://swiftmailer.org/docs/message-quickref
> >
> > Regarding the encoding, it is UTF-8 by default in SM.
> >
> > To comment on the code you pasted, it looks like you are doing a  
> huge amount of work just to send a mail. What I mean by that is the  
> "prefabricated" mail body that you are using. It will be soo much  
> simpler with a real mailing library.
> >
> > In any case, it looks like the mail contents itself explicitly  
> says that it is iso-8859-1. Maybe that is your problem, that  
> nomatter what you do, the mail contents still says this, and the  
> mail client lives by it. If there are further issues I would guess  
> they're related to files not being saved as UTF-8 or something.
> >
> >
> > 27 jan 2010 kl. 15.01 skrev Dominique Uris:
> >
> >> Hi List,
> >>
> >> I'm trying to sent some french character as csv file email  
> attachment. I'm able to sent the email attachment correctly but all  
> the french character get translated to other character like "ç" to  
> "ç" , etc. I tried using php function "mb_convert_encoding"  
> without any success using the line $string =  
> mb_convert_encoding($input_string, "iso-8859-1", "UTF-8");
> >>
> >> I have to say I copied my code to sent email with attachment from  
> the internet, because I was on a short schedule so maybe there also  
> something wrong in the code...
> >>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20100128/7eaaa94e/attachment.html


More information about the FX.php_List mailing list