Learn how to a build a cloud-first strategyRegister Now


PHPform to actually send an email and then depending on whether email is sent or not the Processor.php is displayed

Posted on 2007-10-02
Medium Priority
Last Modified: 2007-10-03
Hi again
I have a form with action processor.php. and containg multiple selects.
Processor.php just refines the form and says "Thank you,you have ordered so many $bulbs of $bname"
What i need is to use the form to actually send an email and then depending on whether email is sent or not the Processor.php is displayed. Just something simple.
Much appreciated in advance.
Question by:LeighJor
LVL 19

Accepted Solution

Michael701 earned 2000 total points
ID: 20004119
well mail returns a boolean

$mail_sent=mail("joecool@example.com", "My Subject", "Line 1\nLine 2\nLine 3");
if ($mail_sent)
  echo "email has been sent";

Author Comment

ID: 20012177
so simple: both the answer and moi ;-)

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Australian government abolished Visa 457 earlier this April and this article describes how this decision might affect Australian IT scene and IT experts.
When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Suggested Courses
Course of the Month21 days, 1 hour left to enroll

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question