Virtual Mechanics: Community Forums and FAQs
Virtual Mechanics: Community Forums and FAQs
WebDwarf, SiteSpinner, SiteSpinner Pro 'How do I...'
Sendmail.php|
Go
![]() |
New
![]() |
Find
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
|
Junior Mechanic |
I have created a form & sendmail.php which work (sort of).
I receive the email, but only 2 fields appear in the email. Here is my script. <?php $ForwardTo="murray@bizcomservices.com.au"; $name=$_REQUEST["name"]; $Company=$_REQUEST["Company"]; $email=$_REQUEST["email"]; $comments=$_REQUEST["comments"]; mail($ForwardTo,$name,$Company,$email,$comments); header ("Location :ThankYou.html"); ?> Only the Name & Company are in the email. Can anyone suggest a solution ? Thanks |
||
|
|
Guru 'Geezer' Mechanic |
See this previous response about the PHP mail() function: http://virtualmechanics.infopo...=239100341#239100341
|
|||
|
|
Junior Mechanic |
Larryd,
Thanks. I have pored over this post or ges and shuffled things around in my script but the end result is the same. The script functions, the thankyou page appears and I get the email. BUT the Subject is NAME The COMPANY is inthe email body But no email address or Comments come through. Don't know ehat else to try.. {sigh} |
|||
|
|
Honorary 'Aussie' Mechanic |
Had a quick look at your code, and all seems to be okay.
The only thing I can suggest is checking your capitalizing. You may find that “Company” is not the same as “company” or whatever. |
|||
|
Guru 'Power' Mechanic![]() |
Following Larry's example in the other post, try this:
mail($ForwardTo, "Subject Line", $name, "From: $email"); As you also have Company and Comments to add, you are running out of space in the mail function parameters. To add those fields and any others, I suggest the joining together (concatenation) method of the tutorials described here. Copy the way the example fills out the $details field. |
|||
|
| Powered by Eve Community |
| Please Wait. Your request is being processed... |
|

