Link to home
Start Free TrialLog in
Avatar of Bruce Gust
Bruce GustFlag for United States of America

asked on

What have I got to do to get this email script to work?

When I use the following script, I get the email but there's two things that need to change:

First off, I need a correct "From." Right now, it just says "Apache."

The other thing I want to do is incorporate some HTML within the body of the email itself. I know this requires some headers and I've played with some stuff, but I just need a mind greater than my own to show me how to change what I have so it accommodates the "from" as well as some HTML content.

Thanks!

Here's my script:

$admin_email = "bruce.gust@verizonwireless.com, bruce@brucegust.com";
$email = "bruce@brucegust.com";
$subject = "bring it!";
 $comment = "I'm hoping that this works!";
  
  //send email
  mail($admin_email, $headers, $subject, $comment, "From:" . $email);

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial