Jump to content

Recommended Posts

ok, this seems like a simple one, but for some reason, it will send the second email in the php (the confirmation email to the user, which is the variable $email which is delivered from a flash website), but it will not send the first email (the email to the company, which is the variable $emailFor, which is also delivered from flash). script attached.

Please help! Site went live yesterday, and for some reason this is not working!

<?  

/******************************************************
**
**   Flash Mx PHP Mailer
**
** By - David Khundiashvili
*******************************************************/

/******************************************************* 

Enter your site details below!

*******************************************************/

// Enter your contact email address here
$adminaddress = $emailFor; 

// Enter the address of your website here include http://www. 
$siteaddress ="http://www.emediagrp.com"; 

// Enter your company name or site name here 
$sitename = "emedia group"; 

/*******************************************************

No need to change anything below ... 

*******************************************************/

/*********************************************************************
	THIS IS THE AREA THAT SETS UP THE FORM 
	THAT WE RECEIVE WHEN AN EMAIL IS SENT
*********************************************************************/

$date = date("m/d/Y H:i:s");

if ($REMOTE_ADDR == "") $ip = "no ip";
else $ip = getHostByAddr($REMOTE_ADDR);


if ($action != ""): 
mail("$emailFo"r,"$subject",
"Following is an email message generated from the emedia group website from:
Name: $name
Company: $company
Email: $email
Phone: $phone
Address: $street
City: $city   State: $state   Zip: $zip
_____________________________________________________

$message



Logged Info :
------------------------------
Using: $HTTP_USER_AGENT
Hostname: $ip
IP address: $REMOTE_ADDR
Date/Time:  $date","FROM:$email"); 


/*********************************************************************
	THIS IS THE AREA THAT SETS UP THE FORM 
		THAT THE CUSTOMER RECIEVES
*********************************************************************/
mail("$email","Thank you for your email!", 
"Hi $name of $company,

Thank you for your interest in emedia group!

We have received your email, and if any communication is needed, we will be getting back with you very soon.

This is the information we received from you:

Name: $name
Company: $company
Email: $email
Phone: $phone
Address: $street
City: $city   State: $state   Zip: $zip
_______________________________________________

$message

If any of this information is incorrect,  please reply by phone or email.

$sitename
864-232-4604
866-877-RACE (7223)
$siteaddress","FROM:$emailFor"); 


/*below is not used
$sendresult = "Thank you for visiting <a href = \"$siteaddress\" target = \"_blank\"><u>$sitename</u></a>. You will receive a confirmation email shortly. ";
$send_answer = "answer=";
$send_answer .= rawurlencode($sendresult);
echo "$send_answer";
*/

endif;

?>

Link to comment
https://forums.phpfreaks.com/topic/67302-solved-php-mailer/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.