the dot in sender

[email protected] (Jakub Krężel) Sat, 26 Nov 2011 22:10:16 +0100
Newsgroups php.pear.webmaster
Message-ID <[email protected]>
Hello,

I have a problem with sending the e-mail.
Everything works fine, but when I trying to send e-mail with the dot in 
the sender field, the e-mail don't go out.

Look at this:
     $From = "Sklep Orange pl  samsung-mobile pl <[email protected]>";
working fine

     $From = "Sklep Orange.pl  samsung-mobile.pl <[email protected]>";
dont working

What's wrong?!

This is the script:


     $subject = "temat test";


     $mailmsg = 'testowo';

     $From = "Sklep Orange.pl  samsung-mobile.pl <[email protected]>";
  $To = $email;


     $recipients = $email;
     $headers["From"] = $From;
     $headers["To"] = $To;
     $headers["Subject"] = $subject;
     $headers["Reply-To"] = "[email protected]";
     $headers["Content-Type"] = "text/html; iso-8859-2";
     $headers["Return-path"] = "[email protected]";

     $smtpinfo["host"] = "----------";
     $smtpinfo["port"] = "25";
     $smtpinfo["auth"] = true;
     $smtpinfo["username"] = "----------";
     $smtpinfo["password"] = "------------";

     $mail_object =& Mail::factory("smtp", $smtpinfo);

     $mail_object->send($recipients, $headers, $mailmsg);

-- 
---
Pozdrawiam,
Jakub Krężel
[email protected]