Weird problem caused by space characters

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
Shenz
Forum Newbie
Posts: 16
Joined: Sat Nov 25, 2006 10:47 am

Weird problem caused by space characters

Post by Shenz »

For this problem, I would like to refer to these two topics:
viewtopic.php?p=333263#333263
viewtopic.php?p=346010#346010

I still have the same problems :s
I can bypass it by using Easyswift but I would like to use the Swift-class because it's easier in use.


I also would like to make a suggestion for the page http://swiftmailer.org/wikidocs/v3/recipients
Change

Code: Select all

if ($swift->send($message, new Swift_Address("foo@bar.tld", "Foo Bar"), new Swift_Address("me@mydomain.com"))) echo "Sent";
to

Code: Select all

if ($swift->send($message, new Swift_Address("recipient@address.tld", "Recipient"), new Swift_Address("sender@address.tld"))) echo "Sent";
Many thanks.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Hi I'm terribly sorry, I just found your post whilst going through these threads adding [STATUS] tags to the titles.

Is this still not working? Can you try 3.0.2 and get back to me. I haven't actually added anything to fix it. I'm just a little confused as to what's causing it. You can email me the exact source code through the contact page on the website if you like.
Post Reply