Jump to content

[SOLVED] PHP mailer


vinnybear

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.