Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

emailing in php

Status
Not open for further replies.
use the mail call.. the syntax is like

mail(receipient_email, subject, body message, mail headers)

The mail header is optional. You can specific the sender email address there like "From: smile@smile.com
 
Ya, there is...
If they submit a form to finish the order, then you need to add this -- ie.

<form name="something" method="POST" action="">
<input type="hidden" name="order" value="TRUE">
</form>

<?

if($_POST[value]) {
mail('your@email.com', 'New Order', 'I need to check my orders');
}

?>
 
looks good, just remember to put quotes around like "From: smile@smile.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top