Jump to content


PHP Sendmail Help!


2 replies to this topic

#1 Trix06

    Young Padawan

  • Members
  • Pip
  • 292 posts
  • Gender:Male
  • Location:NSW Australia
  • Interests:Web Design & Development, Graphic Design, Programming, Networking, Girls, The Beach, Amatuer Radio Communications and more.

Posted 15 October 2006 - 05:48 AM

G'day all,

I have always had a problem with sendmail scripts, I have played with a few different ones and the most common problem I have encountered was most php sendmail scripts only allows you to have 5 parameters. Why is this and how can we overcome this. I know it's possible, where can I find a solution?

Also this is one I'm trying to use now and its not working at all, doesn't even send a message to my email address:

<?php

mail("webmaster@jsweb-design.com", "$fname", "$lname", "$email", "$phone", "$question");

echo "Thank You. Your message has been sent. We will reply to it as soon as possible"

?>

Appreciate any help.

#2 Trix06

    Young Padawan

  • Members
  • Pip
  • 292 posts
  • Gender:Male
  • Location:NSW Australia
  • Interests:Web Design &amp; Development, Graphic Design, Programming, Networking, Girls, The Beach, Amatuer Radio Communications and more.

Posted 15 October 2006 - 06:06 AM

Thanks

#3 Mr. Matt

    Moderator

  • P2L Staff
  • PipPipPipPip
  • 1,945 posts
  • Gender:Not Telling

Posted 15 October 2006 - 10:03 AM

and there is the optional extra of having From on the end. So:

mail('bob@foobar.com', $subjectTitle, $message, 'From: matt@pixel2life.com');

More can be found here at PHP.Net

Matt





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users