Jump to content

My E-mail Form is Not Working on Yahoo (Amateur)


nachapol

Recommended Posts

Hello, PHP Freaks,

 

So I have my website built with RapidWeaver, and built a PHP form page, and it works fine with a test host. However, I uploaded to Yahoo Small Business and the submissions aren't getting through. I heard that Yahoo is quite problematic when it comes to PHP...I called their help line and they told me that I needed to include the following in my form:

 

<form  name="Form0" method="POST" action="http://us.xx.px.webhosting.yahoo.com/forms?login=YahooID&to=mail@domianname.com&confirm=index.html&error=" onSubmit="return checkForm0()">

 

However, I have 2 php files, application.php and mailer.php.

 

application.php:

<?php
// Start session.
session_start();

// Set a key, checked in mailer, prevents against spammers trying to hijack the mailer.
$security_token = $_SESSION['security_token'] = uniqid(rand());

if ( ! isset($_SESSION['formMessage'])) {
	$_SESSION['formMessage'] = 'Fill in the form below to submit an application.';	
}

if ( ! isset($_SESSION['formFooter'])) {
	$_SESSION['formFooter'] = 'A scholarship is also available, please contact us for more details.';
}

if ( ! isset($_SESSION['form'])) {
	$_SESSION['form'] = array();
}

function check($field, $type = '', $value = '') {
	$string = "";
	if (isset($_SESSION['form'][$field])) {
		switch($type) {
			case 'checkbox':
				$string = 'checked="checked"';
				break;
			case 'radio':
				if($_SESSION['form'][$field] === $value) {
					$string = 'checked="checked"';
				}
				break;
			case 'select':
				if($_SESSION['form'][$field] === $value) {
					$string = 'selected="selected"';
				}
				break;
			default:
				$string = $_SESSION['form'][$field];
		}
	}
	return $string;
}
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<meta name="robots" content="all" />
	<meta name="generator" content="RapidWeaver" />

	<title>North Shore Culinary School | Application</title>
	<link rel="stylesheet" type="text/css" media="screen" href="../rw_common/themes/culinaryschool/styles.css"  />
	<!--[if IE 6]><link rel="stylesheet" type="text/css" media="screen" href="../rw_common/themes/culinaryschool/ie6.css"  /><![endif]-->
	<!--[if IE 7]><link rel="stylesheet" type="text/css" media="screen" href="../rw_common/themes/culinaryschool/ie7.css"  /><![endif]-->
	<link rel="stylesheet" type="text/css" media="screen" href="../rw_common/themes/culinaryschool/colourtag-page4.css"  />
	<link rel="stylesheet" type="text/css" media="print" href="../rw_common/themes/culinaryschool/print.css"  />
	<link rel="stylesheet" type="text/css" media="handheld" href="../rw_common/themes/culinaryschool/handheld.css"  />
	<link rel="stylesheet" type="text/css" media="screen" href="../rw_common/themes/culinaryschool/css/width/900.css" />
	<link rel="stylesheet" type="text/css" media="screen" href="../rw_common/themes/culinaryschool/css/header/sunflower.css" />
	<link rel="stylesheet" type="text/css" media="screen" href="../rw_common/themes/culinaryschool/css/icons/blue.css" />
	<link rel="stylesheet" type="text/css" media="screen" href="../rw_common/themes/culinaryschool/css/sidebar/sidebar_right.css" />




	<script type="text/javascript" src="../rw_common/themes/culinaryschool/javascript.js"></script>


<!--[if IE 6]><script type="text/javascript" charset="utf-8">
		var blankSrc = "../rw_common/themes/culinaryschool/png/blank.gif";
	</script>	
	<style type="text/css">
	img {
		behavior:	url("../rw_common/themes/culinaryschool/png/pngbehavior.htc");
	}
	</style><![endif]-->



</head>
<body>
<div id="top_bar">
<img src="../rw_common/themes/culinaryschool/images/body_top_bar.png" alt="" width="3000" height="8" />
</div>
<div id="container"><!-- Start container -->
<div id="top_swirl">
	<img src="../rw_common/themes/culinaryschool/images/top_swirl.png" alt="" width="222" height="140" />
</div>
<div id="pageHeader"><!-- Start page header -->
	<div id="logo_overlay"><img src="../rw_common/themes/culinaryschool/images/logo_grad_overlay.png" alt="" width="3000" height="175" /></div>
	<div id="logo"></div>
	<h1>North Shore Culinary School</h1>
	<h2>This is a complete program designed to train today's food service professionals for entry level jobs which may ladder to further opportunities.</h2>
</div><!-- End page header -->
<div id="contentContainer"><!-- Start main content wrapper -->
	<div id="navcontainer"><!-- Start Navigation -->
		<ul><li><a href="../index.html" rel="self">Home</a></li><li><a href="../about.html" rel="self">About</a></li><li><a href="../requirements.html" rel="self" class="currentAncestor">Curriculum</a><ul><li><a href="../curriculum/details.html" rel="self">Details</a></li><li><a href="../curriculum/calendar.html" rel="self">Calendar</a></li><li><a href="application.php" rel="self" id="current">Application</a></li></ul></li><li><a href="../contact.html" rel="self">Contact</a></li></ul>
	</div><!-- End navigation -->
	<div id="sidebarContainer"><!-- Start Sidebar wrapper -->
		<div id="sidebar"><!-- Start sidebar content -->
			<h1 class="sideHeader"></h1><!-- Sidebar header -->
			<!-- sidebar content you enter in the page inspector -->
			 <!-- sidebar content such as the blog archive links -->
		</div><!-- End sidebar content -->
	</div><!-- End sidebar wrapper -->
	<div id="content"><!-- Start content -->

<div class="message-text"><?php echo $_SESSION['formMessage']; unset($_SESSION['formMessage']); ?></div><br />

<form action="./application_files/mailer.php" method="post" enctype="multipart/form-data">
 <div>
	<label>First Name:</label> *<br />
	<input class="form-input-field" type="text" value="<?php echo check('element0'); ?>" name="form[element0]" size="40"/><br /><br />

	<label>Last Name:</label> *<br />
	<input class="form-input-field" type="text" value="<?php echo check('element1'); ?>" name="form[element1]" size="40"/><br /><br />

	<label>Sex:</label> *<br />
	<select name="form[element2]">			<option <?php echo check('element2', 'select','Male'); ?> value="Male">Male</option>
		<option <?php echo check('element2', 'select','Female'); ?> value="Female">Female</option>
	</select><br /><br />

	<label>Birthdate (DD/MM/YYYY):</label> *<br />
	<input class="form-input-field" type="text" value="<?php echo check('element3'); ?>" name="form[element3]" size="40"/><br /><br />

	<label>Date of Application (DD/MM/YYYY):</label> *<br />
	<input class="form-input-field" type="text" value="<?php echo check('element4'); ?>" name="form[element4]" size="40"/><br /><br />

	<label>Address:</label> *<br />
	<input class="form-input-field" type="text" value="<?php echo check('element5'); ?>" name="form[element5]" size="40"/><br /><br />

	<label>Apartment Number:</label> <br />
	<input class="form-input-field" type="text" value="<?php echo check('element6'); ?>" name="form[element6]" size="40"/><br /><br />

	<label>Postal Code:</label> *<br />
	<input class="form-input-field" type="text" value="<?php echo check('element7'); ?>" name="form[element7]" size="40"/><br /><br />

	<label>Home Phone Number:</label> *<br />
	<input class="form-input-field" type="text" value="<?php echo check('element8'); ?>" name="form[element8]" size="40"/><br /><br />

	<label>Cell Phone Number:</label> <br />
	<input class="form-input-field" type="text" value="<?php echo check('element9'); ?>" name="form[element9]" size="40"/><br /><br />

	<label>Fax:</label> <br />
	<input class="form-input-field" type="text" value="<?php echo check('element10'); ?>" name="form[element10]" size="40"/><br /><br />

	<label>E-mail:</label> *<br />
	<input class="form-input-field" type="text" value="<?php echo check('element11'); ?>" name="form[element11]" size="40"/><br /><br />

	<label>Alternate e-mail:</label> *<br />
	<input class="form-input-field" type="text" value="<?php echo check('element12'); ?>" name="form[element12]" size="40"/><br /><br />

	<label>BCID #:</label> <br />
	<input class="form-input-field" type="text" value="<?php echo check('element13'); ?>" name="form[element13]" size="40"/><br /><br />

	<label>BC Driver's License #:</label> <br />
	<input class="form-input-field" type="text" value="<?php echo check('element14'); ?>" name="form[element14]" size="40"/><br /><br />

	<label>Are you of First Nation or Inuit descent?</label> *<br />
	<select name="form[element15]">			<option <?php echo check('element15', 'select','Yes'); ?> value="Yes">Yes</option>
		<option <?php echo check('element15', 'select','No'); ?> value="No">No</option>
	</select><br /><br />

	<label>Were you born in Canada?</label> *<br />
	<select name="form[element16]">			<option <?php echo check('element16', 'select','Yes'); ?> value="Yes">Yes</option>
		<option <?php echo check('element16', 'select','No'); ?> value="No">No</option>
	</select><br /><br />

	<label>If not, what is your country of birth?</label> <br />
	<input class="form-input-field" type="text" value="<?php echo check('element17'); ?>" name="form[element17]" size="40"/><br /><br />

	<label>When did you arrive in Canada? (DD/MM/YYYY)</label> <br />
	<input class="form-input-field" type="text" value="<?php echo check('element18'); ?>" name="form[element18]" size="40"/><br /><br />

	<label>Elementary School Attended:</label> *<br />
	<input class="form-input-field" type="text" value="<?php echo check('element19'); ?>" name="form[element19]" size="40"/><br /><br />

	<label>High School Attended:</label> *<br />
	<input class="form-input-field" type="text" value="<?php echo check('element20'); ?>" name="form[element20]" size="40"/><br /><br />

	<label>DId you receive any extra learning support in school? (e.g. ESL)</label> *<br />
	<select name="form[element21]">			<option <?php echo check('element21', 'select','Yes'); ?> value="Yes">Yes</option>
		<option <?php echo check('element21', 'select','No'); ?> value="No">No</option>
	</select><br /><br />

	<label>If yes, please specify...</label> <br />
	<input class="form-input-field" type="text" value="<?php echo check('element22'); ?>" name="form[element22]" size="40"/><br /><br />

	<label>Do you have a computer workstation at home?</label> *<br />
	<select name="form[element23]">			<option <?php echo check('element23', 'select','Yes'); ?> value="Yes">Yes</option>
		<option <?php echo check('element23', 'select','No'); ?> value="No">No</option>
	</select><br /><br />

	<label>How will you be travelling to and from school?</label> *<br />
	<select name="form[element24]">			<option <?php echo check('element24', 'select','Car'); ?> value="Car">Car</option>
		<option <?php echo check('element24', 'select','Bus'); ?> value="Bus">Bus</option>
		<option <?php echo check('element24', 'select','Bike'); ?> value="Bike">Bike</option>
		<option <?php echo check('element24', 'select','Walking'); ?> value="Walking">Walking</option>
		<option <?php echo check('element24', 'select','Other'); ?> value="Other">Other</option>
	</select><br /><br />

	<label>Are you receiving any financial assistance? Please specify...</label> *<br />
	<input class="form-input-field" type="text" value="<?php echo check('element25'); ?>" name="form[element25]" size="40"/><br /><br />

	<label>Have you received a blood test?</label> *<br />
	<select name="form[element26]">			<option <?php echo check('element26', 'select','Yes'); ?> value="Yes">Yes</option>
		<option <?php echo check('element26', 'select','No'); ?> value="No">No</option>
	</select><br /><br />

	<label>Have you received a TB test?</label> *<br />
	<select name="form[element27]">			<option <?php echo check('element27', 'select','Yes'); ?> value="Yes">Yes</option>
		<option <?php echo check('element27', 'select','No'); ?> value="No">No</option>
	</select><br /><br />

	<label>Do you have any disabilities? Please specify...</label> *<br />
	<input class="form-input-field" type="text" value="<?php echo check('element28'); ?>" name="form[element28]" size="40"/><br /><br />

	<label>What is your cultural background?</label> *<br />
	<input class="form-input-field" type="text" value="<?php echo check('element29'); ?>" name="form[element29]" size="40"/><br /><br />

	<div style="display: none;">
		<label>Spam Protection: Please don't fill this in:</label>
		<textarea name="comment" rows="1" cols="1"></textarea>
	</div>
	<input type="hidden" name="form_token" value="<?php echo $security_token; ?>" />
	<input class="form-input-button" type="reset" name="resetButton" value="Reset" />
	<input class="form-input-button" type="submit" name="submitButton" value="Submit" />
</div>
</form>

<br />
<div class="form-footer"><?php echo $_SESSION['formFooter']; unset($_SESSION['formFooter']); ?></div><br />

<?php unset($_SESSION['form']); ?>
		<div class="clearer"></div>
	</div><!-- End content -->
</div><!-- End main content wrapper -->
</div><!-- End container -->
<div id="footer"><!-- Start Footer -->
<div id="footer_swirl">
	<img src="../rw_common/themes/culinaryschool/images/footer_swirl.png" alt="" width="502" height="69" />
</div>
<p>© 2010 Don Guthro</p>
<div id="breadcrumbcontainer"><!-- Start the breadcrumb wrapper -->

</div><!-- End breadcrumb -->
</div><!-- End Footer -->
</body>
</html>

 

mailer.php:

<?php
//start the session
session_start();

//////////////////////////////////////////////////////
// Begin variables to be written out by RapidWeaver //
//////////////////////////////////////////////////////

//set the return URL
$return_url = "../application.php";

//set the users email address
$email = "nachapol.d@gmail.com";

//array of fields in form. (In the format "field_name" => "field_label")
$form_fields = array(
"element0" => 'First Name:',
"element1" => 'Last Name:',
"element2" => 'Sex:',
"element3" => 'Birthdate (DD/MM/YYYY):',
"element4" => 'Date of Application (DD/MM/YYYY):',
"element5" => 'Address:',
"element6" => 'Apartment Number:',
"element7" => 'Postal Code:',
"element8" => 'Home Phone Number:',
"element9" => 'Cell Phone Number:',
"element10" => 'Fax:',
"element11" => 'E-mail:',
"element12" => 'Alternate e-mail:',
"element13" => 'BCID #:',
"element14" => 'BC Driver\'s License #:',
"element15" => 'Are you of First Nation or Inuit descent?',
"element16" => 'Were you born in Canada?',
"element17" => 'If not, what is your country of birth?',
"element18" => 'When did you arrive in Canada? (DD/MM/YYYY)',
"element19" => 'Elementary School Attended:',
"element20" => 'High School Attended:',
"element21" => 'DId you receive any extra learning support in school? (e.g. ESL)',
"element22" => 'If yes, please specify...',
"element23" => 'Do you have a computer workstation at home?',
"element24" => 'How will you be travelling to and from school?',
"element25" => 'Are you receiving any financial assistance? Please specify...',
"element26" => 'Have you received a blood test?',
"element27" => 'Have you received a TB test?',
"element28" => 'Do you have any disabilities? Please specify...',
"element29" => 'What is your cultural background?'
);

$required_fields = array("element0", "element1", "element2", "element3", "element4", "element5", "element7", "element8", "element11", "element12", "element15", "element16", "element19", "element20", "element21", "element23", "element24", "element25", "element26", "element27", "element28", "element29");

$mail_from_name 	= "element0";
$mail_from_email 	= "element11";
$mail_subject 		= "element4";

//uses the email address defined above as the from email.
$send_from_users_email = false;

//sets the PHP setting 'sendmail_from' for use on a windows server.
$windows_server = true;

// Set up the error and success messages.
$message_success = 'Thank you, your application has been sent.';
$message_unset_fields = "Fields marked with * are required.";

////////////////////////////////////////////////////
// End variables to be written out by RapidWeaver //
////////////////////////////////////////////////////

// Check key variable from form against session key.
if ( ! isset($_POST['form_token']) || $_POST['form_token'] !== $_SESSION['security_token']) {
  // Set a fixed error message if the keys don't match.
  redirect($return_url, 'We cannot verify that you are trying to send an email from this form. Please try again.');
}

// SPAM checking. If the "comment" form field has been filled out,
// send back to form asking to remove content and exit the script.
if ($_POST['comment']) {
  redirect($return_url, 'Please remove content from the last textarea before submitting the form again. This is to protect against SPAM abuse.');
}

/////////////////////////
// PROCESS FORM FIELDS //
/////////////////////////

$magic_quotes = (bool) get_magic_quotes_gpc();
foreach ($_POST['form'] as $key => $value) {
  if ($magic_quotes) {
    $value = stripslashes($value);
  }
  $_SESSION['form'][$key] = $value;
}


///////////////////////////
// CHECK REQUIRED FIELDS //
///////////////////////////

//if any of the required fields are empty
if (check_required_fields($required_fields) === false) {
  //return to form with error message.
  redirect($return_url, $message_unset_fields);
} else {

  ///////////////////////////////////
  // ALL IS OK, SETUP GLOBAL VAR'S //
  ///////////////////////////////////

  //check email address
  if ( ! check_email($email)) unset($email);

  //set mime boundry. Needed to send the email. Mixed seperates text from attachments.
  $mixed_mime_boundary = 'rms-mix-x'.md5(mt_rand()).'x';
  //alt seperates html from plain text.
  $alt_mime_boundary = 'rms-alt-x'.md5(mt_rand()).'x';

  //set the from address if user supplied email is invalid use form owners.
  $submitted_email = '';
  if (isset($_SESSION['form'][$mail_from_email])) {
    $submitted_email = $_SESSION['form'][$mail_from_email];
  }

  if (check_email($submitted_email) && $send_from_users_email === false) {
    $from = $reply_to = $_SESSION['form'][$mail_from_name].'<'.$submitted_email.'>';
  } else {
    $from = '<'.$email.'>';
    $reply_to = check_email($submitted_email) ? '<'.$submitted_email.'>' : $from;
  }

  //set the email subject
  $subject = '';
  if (isset($_SESSION['form'][$mail_subject])) {
    $subject = $_SESSION['form'][$mail_subject];
  }

  //email headers
  $headers  = "From: $from\r\n" .
              "Reply-to: $reply_to\r\n" .
              "MIME-Version: 1.0\r\nContent-Type: multipart/mixed; " .
              "boundary=$mixed_mime_boundary";



  ////////////////////////////
  // CONSTRUCT HTML CONTENT //
  ////////////////////////////

  //Construct HTML email content, looping through each form element

  //Note: When you get to a file attachment you need to use $_FILES['form_element']['name']
  //This will just output the name of the file. The files will actually be attached at the end of the message.

  //Set a variable for the message content
  $html_content = "<html>\r\n<head>\r\n<title>" .
                  safe_escape_string($subject) .
                  "</title>\r\n</head>\r\n<body>\r\n<p>\r\n";

  ////////////////////////////
  // CONSTRUCT TEXT CONTENT //
  ////////////////////////////

  //construct a plain text version of the email.
  $text_content = '';

  //build a message from the reply for both HTML and text in one loop.
  foreach ($form_fields as $field => $label) {
    $html_content .= '<b>' . safe_escape_string($label) . '</b> ';
    $text_content .= "$label ";
    if (isset($_FILES[$field])) {
      $string = (isset($_FILES[$field]['name'])) ? $_FILES[$field]['name'] : '';
    } else {
      $string = (isset($_SESSION['form'][$field])) ? $_SESSION['form'][$field] : '';
    }
    $html_content .= nl2br(safe_escape_string($string)) . "<br /><br />\r\n";
    $text_content .= "$string\r\n\r\n";
  }

  //close the HTML content.
  $html_content .= "</p>\r\n</body>\r\n</html>";

  /////////////////////////////
  // CONSTRUCT EMAIL MESSAGE //
  /////////////////////////////

  //Now we combine both HTML and plain text version of the email into one.
  //Creating the message body which contains a Plain text version and an HTML version,
  //users email client will decide which version to display
  $message = "\r\n--$mixed_mime_boundary\r\n" .
             "Content-Type: multipart/alternative; boundary=$alt_mime_boundary\r\n\r\n" .
             "--$alt_mime_boundary\r\n" .
             "Content-Type: text/plain; charset=UTF-8; format=flowed\r\n" .
             "Content-Transfer-Encoding: Quoted-printable\r\n\r\n" .
             "$text_content\r\n\r\n" .
             "--$alt_mime_boundary\r\n" .
             "Content-Type: text/html; charset=UTF-8\r\n" .
             "Content-Transfer-Encoding: Quoted-printable\r\n\r\n" .
             "$html_content\r\n\r\n" .
             "--$alt_mime_boundary--\r\n\r\n" .
             "\r\n\r\n--$mixed_mime_boundary";


  //////////////////////
  // FILE ATTACHMENTS //
  //////////////////////

  //loop through the $_FILES global array and add each attachment to the form.
  if (isset($_FILES)) {
    foreach ($_FILES as $attachment) {
      $filename = $attachment['name'];

      //if the file has been uploaded
      if ($attachment['error'] === UPLOAD_ERR_OK && is_uploaded_file($attachment['tmp_name'])) {
        $file = fopen($attachment['tmp_name'],'rb');
        $data = fread($file,filesize($attachment['tmp_name']));
        fclose($file);
        $data = chunk_split(base64_encode($data));

        $message .= "\r\nContent-Type: application/octet-stream; name=\"$filename\"" .
                    "\r\nContent-Disposition: attachment; filename=\"$filename\"" .
                    "\r\nContent-Transfer-Encoding: base64\r\n\r\n$data\r\n\r\n--$mixed_mime_boundary";
      } else if ($attachment['error'] !== UPLOAD_ERR_NO_FILE) {
        //try to provide a useful error message determined from the error code.
        switch ($attachment['error']) {
          case UPLOAD_ERR_INI_SIZE:
          case UPLOAD_ERR_FORM_SIZE:
            $error = "File $filename exceeds the " . ini_get('upload_max_filesize') . 'B limit for the server.';
            break;
          case UPLOAD_ERR_PARTIAL:
            $error = "Only part of the file $filename could be uploaded, please try again.";
            break;
          default:
            $error = "There has been an error attaching the file $filename, please try again.";
        }
        redirect($return_url, $error);
      }
    }
  }


  //finish off message
  $message .= '--';

  //for windows users.
  if ($windows_server === true) {
    ini_set('sendmail_from', $email);
  }

  //if the mail sending works
  if (@mail($email, $subject, $message, $headers)) {
    //set the success message
    $notice = $message_success;
    unset($_SESSION['form']);
  } else {
    $notice = "I'm sorry, there seems to have been an error trying to send your email. Please try again.";
  }

  //redirect to the form
  redirect($return_url, $notice);
}

//////////////////////
// GLOBAL FUNCTIONS //
//////////////////////

// Redirects back to the form, an optional session message can be defined.
function redirect($url, $message = NULL) {
  if ($message) {
    $_SESSION['formMessage'] = $message;
  }
  header('Location: ' . $url);
  exit;
}

// Function to escape data inputted from users. This is to protect against embedding
// of malicious code being inserted into the HTML email.
// Sample code: safe_escape_string($_POST['form_field'])
function safe_escape_string($string) {
  return htmlspecialchars($string, ENT_QUOTES);
}

// Function to check the validity of email address.
function check_email($email) {
  return (bool) preg_match('/^([a-z0-9_]|\-|\.)+@(([a-z0-9_]|\-)+\.)+[a-z]{2,4}$/i', $email);
}

// Function to check the required fields are filled in.
function check_required_fields($required_fields) {
  foreach ($required_fields as $field) {
    if (( ! isset($_SESSION['form'][$field]) || empty($_SESSION['form'][$field])) &&
      ( ! isset($_FILES[$field]) || empty($_FILES[$field]['name']))) {
      return false;
    }
  }
  return true;
}

 

Now I'm a little bombarded with this code, since I am an amateur web-builder and I don't have much experience modifying PHP. I was just wondering how I can integrate the code given to me into my existing PHP files. The website is www.northshoreculinaryschool.com and my form is under Curriculum > Application.

 

I can provide the files if anyone wishes.

 

Any help is greatly appreciated! If you can help me through this, you're a lifesaver!

Link to comment
Share on other sites

That line of code that was given to you negates the need for those PHP form parsing files. It pretty much sends your form results to the Yahoo form parsing script and granted you fill in your email address in that string, it would send you the results.

 

If they told you to do it that way, they may not support mail spooling on their server from customer's scripts. I'm not familiar with Yahoo's hosting, so I can't give a definite on that one.

Link to comment
Share on other sites

That line of code that was given to you negates the need for those PHP form parsing files. It pretty much sends your form results to the Yahoo form parsing script and granted you fill in your email address in that string, it would send you the results.

 

If they told you to do it that way, they may not support mail spooling on their server from customer's scripts. I'm not familiar with Yahoo's hosting, so I can't give a definite on that one.

 

So I'm guessing I'll need to get rid of the mailer.php somehow? How would I go about integrating that line into my application.php? Is that even possible?

 

Thanks again.

Link to comment
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.