| | |
My first post - help with Email
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Nov 2007
Posts: 1
Reputation:
Solved Threads: 0
Hey guys
I'm new to this so here goes ......
I run a forum (phpBB3) and am now trying to get an contact us section on the home page.
I have no real PHP knowledge and am trying to get my head round how it all works.
Can I use the existing sendmail function in the contact us page and just construct the email I want to send using a form or will I have to write a new php page for send mail?
I have looked over loads of site and they all seem to give me this ....
"mail("$to", "$subject", "$email", "$message");"
Does this code simply bring up the users email program (i.e. Outlook) and load the mail into that? This is not the disired effect, I want it to send an email directly. I have a hsot that supports this so it should be possible.
I was going to use this kind of thing ...
<form name="emai" action="submit.php">
But couldn't find the original php code.
Can anyone point me in the right direction?
I'm new to this so here goes ......
I run a forum (phpBB3) and am now trying to get an contact us section on the home page.
I have no real PHP knowledge and am trying to get my head round how it all works.
Can I use the existing sendmail function in the contact us page and just construct the email I want to send using a form or will I have to write a new php page for send mail?
I have looked over loads of site and they all seem to give me this ....
"mail("$to", "$subject", "$email", "$message");"
Does this code simply bring up the users email program (i.e. Outlook) and load the mail into that? This is not the disired effect, I want it to send an email directly. I have a hsot that supports this so it should be possible.
I was going to use this kind of thing ...
<form name="emai" action="submit.php">
But couldn't find the original php code.
Can anyone point me in the right direction?
•
•
•
•
I have looked over loads of site and they all seem to give me this ....
"mail("$to", "$subject", "$email", "$message");"
Does this code simply bring up the users email program (i.e. Outlook) and load the mail into that?
php Syntax (Toggle Plain Text)
<? $header = "From: Myself <myself@billgates.com>\r\n"; mail("your@email.com", "testmail", "this is the contents", $header); ?>
Regards Niek
When Autumn Falls [ http://www.whenautumnfalls.co.uk ] &&
Designdotworks [ http://www.designdotworks.co.uk ] Web / Graphic / Software Design
Designdotworks [ http://www.designdotworks.co.uk ] Web / Graphic / Software Design
![]() |
Similar Threads
- cant open email. (JavaScript / DHTML / AJAX)
- New Email Format (DaniWeb Community Feedback)
- Email piping to script problem (PHP)
- problem w/installing kazaa v.2.6 (Windows NT / 2000 / XP)
Other Threads in the PHP Forum
- Previous Thread: how to send attachment file
- Next Thread: Blog from scratch permalinks and rss
| Thread Tools | Search this Thread |
apache api array basic beginner binary broken cache cakephp checkbox class cms code computing confirm cron curl customizableitems database date delete display dynamic echo email error external file files filter folder form forms forum function functions gc_maxlifetime google headmethod host howtowriteathesis href htaccess html iframe image include insert ip javascript joomla limit link login mail malfunction memmory memory menu mlm multiple mysql navigation oop parsing paypal pdf php phpmysql problem query question radio random recursion remote script search select server sessions sms snippet source space sql syntax system table thesishelp trouble tutorial update upload url validator variable video web youtube






