Connecting Tech Pros Worldwide Forums | Help | Site Map

php email & flash

kyrbi
Guest
 
Posts: n/a
#1: Jul 17 '05
hi, using flash and php script I try to send mail from my website (linux
hosting)

The script is working but if I enable the marked lines (//....) the
script doesn't want to send mail .....

any idea?

name, subject, message & email are vars from the flash (post)
_parent.loadVariables("form.php", "POST");
Thanks!


$to = "naam@mydomain.com";
$msg = "Mail afkamstig van: " ;
$msg .= "$name\n\n";
//$msg .= "Emailadres: ";
//$msg .= "$email\n";
//$msg .= "Boodschap: ";
//$msg .= "\n\n";
$msg .= "$message\n\n";

mail($to, $subject, $msg, "From: Mijn web site\nReply-To: $email\n");







mlemos
Guest
 
Posts: n/a
#2: Jul 17 '05

re: php email & flash


Hello,

on 04/26/2005 08:40 AM kyrbi said the following:[color=blue]
> hi, using flash and php script I try to send mail from my website (linux
> hosting)
>
> The script is working but if I enable the marked lines (//....) the
> script doesn't want to send mail .....
>
> any idea?
>
> name, subject, message & email are vars from the flash (post)
> _parent.loadVariables("form.php", "POST");
> Thanks!
>
>
> $to = "naam@mydomain.com";
> $msg = "Mail afkamstig van: " ;
> $msg .= "$name\n\n";
> //$msg .= "Emailadres: ";
> //$msg .= "$email\n";
> //$msg .= "Boodschap: ";
> //$msg .= "\n\n";
> $msg .= "$message\n\n";
>
> mail($to, $subject, $msg, "From: Mijn web site\nReply-To: $email\n");[/color]

I am not sure that is your problem, but in general body text must be
encoded with quoted-printable encoding to make sure than any non-ASCII
characters (8 bit) are encoded using only ASCII characters.

You may want to try this class if you don't know how to encode message
bodies using quoted-printable:

http://www.phpclasses.org/mimemessage


--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
Closed Thread