trying to send email but getting unexpected t_variable

the mail() function

Moderators: macek, egami, gesf

Post Reply
rupali
New php-forum User
New php-forum User
Posts: 140
Joined: Thu Oct 13, 2011 10:32 pm
Location: Chandigarh, INDIA

Re: trying to send email but getting unexpected t_variable

Post by rupali » Sun Feb 26, 2012 6:55 pm

hello,

in mail function the name of variables are not correct you have missed underscore in to and subject variables, so correct with the below one :
mail($email_to, $email_subject, $email_message, $headers);

rupali
New php-forum User
New php-forum User
Posts: 140
Joined: Thu Oct 13, 2011 10:32 pm
Location: Chandigarh, INDIA

Re: trying to send email but getting unexpected t_variable

Post by rupali » Mon Feb 27, 2012 6:30 pm

hello,

There is no error !!!

i have tested your script on my system as well and no error in that line, the syntax of if statement is not correct may be because of that, this is not executing, you have missed the else statement after two else if's.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests