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: [email protected]");[/CODE]Cheers, Daniel Link to comment https://forums.phpfreaks.com/topic/20281-mail-problem/ 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. Link to comment https://forums.phpfreaks.com/topic/20281-mail-problem/#findComment-89285 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 Link to comment https://forums.phpfreaks.com/topic/20281-mail-problem/#findComment-89289 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] Link to comment https://forums.phpfreaks.com/topic/20281-mail-problem/#findComment-89290 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: [email protected]"; mail($to, $subject, $message, $headers);[/CODE]- Cheers, Daniel Link to comment https://forums.phpfreaks.com/topic/20281-mail-problem/#findComment-89298 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"; Link to comment https://forums.phpfreaks.com/topic/20281-mail-problem/#findComment-89299 Share on other sites More sharing options...
ahmed17 Posted September 10, 2006 Share Posted September 10, 2006 [code]<?php// email address here$to= "[email protected]";// The subject$subject = "Enter your subject here";// The message$message = "Enter your message here";$from="[email protected]";mail($to, $subject, $message, "From: $from");?>[/code] you can do test to ensure data is sent (using if ) Link to comment https://forums.phpfreaks.com/topic/20281-mail-problem/#findComment-89302 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.