php - Mailing code giving an error -
this question has answer here:
- php parse/syntax errors; , how solve them? 12 answers
i new php & have tried out code in php sending mail user simple means, facing issues code giving error..!! please me.
php
$to = ' '". $_session['email'] ."' '; $subject = 'your vault number'; $message = 'your vault number '". $_session['vault_no'] ."' '; $headers = 'from: innovation@miisky.com' . "\r\n" . 'reply-to: innovation@miisky.com' . "\r\n" . 'x-mailer: php/' . phpversion(); mail($to, $subject, $message, $headers);
you have syntax error in string assignment:
$to = ' '". $_session['email'] ."' '; ^ here ^ , here
you don't need delimiters part of final string,
$to = $_session['email'];
is enough, $_session['email']
string.
Comments
Post a Comment