Drezard Posted September 10, 2006 Share Posted September 10, 2006 Whats wrong with this function?[CODE]mail("$email1" "@" "$email2", "Sellyourownhome.com.au activate your account", "Welcome to Sell your own home The easiest and cheapest way to sell your own home" <br> <br> <a href="localhost/activate.php"> <br> <br> "Thanks", "From: Help@sellyourownhome.com.au");[/CODE]Cheers, Daniel Quote Link to comment Share on other sites More sharing options...
redarrow Posted September 10, 2006 Share Posted September 10, 2006 you tell me what wrong my golden ball has run out of power sorry. Quote Link to comment Share on other sites More sharing options...
Drezard Posted September 10, 2006 Author Share Posted September 10, 2006 If you mean the error here it is:[QUOTE]Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in C:\Program Files\xampp\htdocs\newuser.php on line 63[/QUOTE]Thanks, Daniel Quote Link to comment Share on other sites More sharing options...
ronverdonk Posted September 10, 2006 Share Posted September 10, 2006 Make it[code]$to= "$email1@$email2";mail($to, ................... [/code] Quote Link to comment Share on other sites More sharing options...
Drezard Posted September 10, 2006 Author Share Posted September 10, 2006 Now the $message part (3rd parameter) wont work. Whats wrong in it?[CODE] $to = "$email1@$email2"; $subject = "Sellyourownhome.com.au activate your account"; $message = "Welcome to Sell your own home The easiest and cheapest way to sell your own home <br> <br> <a href="localhost/activate.php"> <br> <br> Thanks"; $headers = "From: Help@sellyourownhome.com.au"; mail($to, $subject, $message, $headers);[/CODE]- Cheers, Daniel Quote Link to comment Share on other sites More sharing options...
alpine Posted September 10, 2006 Share Posted September 10, 2006 You must escape double quotes if used within double quotes,$message = "Welcome to Sell your own home The easiest and cheapest way to sell your own home <br> <br> <a href=[b][color=red]\[/color][/b]"localhost/activate.php[b][color=red]\[/color][/b]"> <br> <br> Thanks"; Quote Link to comment Share on other sites More sharing options...
ahmed17 Posted September 10, 2006 Share Posted September 10, 2006 [code]<?php// email address here$to= "email@example.com";// The subject$subject = "Enter your subject here";// The message$message = "Enter your message here";$from="your_email_here@test.com";mail($to, $subject, $message, "From: $from");?>[/code] you can do test to ensure data is sent (using if ) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.