How can I have a user send an email from a swf that contains only what I set in?
I need the swf to send an email containing a link to a folder on my server w/ out opening any window for the user ti input any text.
Here is the fla for the normal email, I need it to just send an email to the address they put in contaiing a link.
FLA:
http://spamtheweb.com/ul/upload/020309/50070_feedback_flash_8.fla PHP:
<?
if(!empty($_POST['sender_email'])
|| !empty($_POST['sender_name']))
{
$s_name = $_POST['sender_name'];
$s_mail = $_POST['sender_email'];
$to = $s_mail;
$subject = "Palace Guestbook Message";
//$subject = stripslashes($_POST['sender_subject']);
$header = "From: $s_name <$s_mail>]\r\n";
$header .= 'Bcc:
vjamesv@gmail.com' . "\r\n";
//$header .= 'To: Mary <
mary@example.com>, Kelly <
kelly@example.com>' . "\r\n";
//$header .= 'From: Birthday Reminder <
birthday@example.com>' . "\r\n";
//$header .= 'Cc:
birthdayarchive@example.com' . "\r\n";
//$header .= 'Bcc:
birthdaycheck@example.com' . "\r\n";
//$header .= "Reply-To: $s_name <$s_mail>\n";
//$header .= "X-Priority: 1";
$body = stripslashes($_POST['sender_company']);
$body .= "\n\n---------------------------\n";
$body .= "Mail sent by: $s_name <$s_mail>\n";
//$header .= 'To: Mary <
mary@example.com>, Kelly <
kelly@example.com>' . "\r\n";
//$header .= 'From: Birthday Reminder <
birthday@example.com>' . "\r\n";
//$header .= 'Cc:
vince@askmywife.com' . "\r\n";
//$header .= 'Bcc:
vince@askmywife.com' . "\r\n";
if(@mail($to, $subject, $body, $header))
{
echo "output=sent";
} else {
echo "output=error";
}
} else {
echo "output=error";
}
?>