By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,246 Members | 2,194 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,246 IT Pros & Developers. It's quick & easy.

php email & flash

P: n/a
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 = "na**@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");


Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hello,

on 04/26/2005 08:40 AM kyrbi said the following:
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 = "na**@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");


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
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.