i m using windows, xampp, with appache sever.
plz tell me from the first how to send mail in php on localhost ...
this is really pizzing me ...
plz its very urgent plz help me
thank you...
moon_isha1
0
Newbie Poster
Recommended Answers
Jump to Postmailing in php is very simple, php provide the mail() function that does everything for us -
to = 'to@test.com'; $subject = 'subject'; $message = 'hello, how are you'; $headers = 'From: test@test.com' . "\r\n" . 'Reply-To: test@test.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, …
Jump to PostWhat error do you get ? Did you install an smtp server, or did you change the httpd.conf to specify an smtp mail server ?
Jump to Postapart from above also post your code, what you did
Jump to Postposting for others too, so that it can get faster.
here is your php -<? $to = "moonisha1@gmail.com"; $from = $_REQUEST['email'] ; $name = $_REQUEST['name'] ; $headers = "From: $from"; $subject = "enquiry"; $fields = array(); $fields{"name"} = "name"; $fields{"add"} = "address"; $fields{"email"} = "email"; $fields{"ph"} …
Jump to Posthey there's nothing wrong with your code. I got this below echo, means you mailed successfully =>
Array ( [req] => fsdf [name] => dfs [add] => dsfs [ph] => dsfs [mobile] => sdf [email] => dfds [city] => fdsf [zip] => dsfs [country] => dsf [submit] …
All 21 Replies
network18
15
Practically a Master Poster
moon_isha1
0
Newbie Poster
moon_isha1
0
Newbie Poster
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
network18
15
Practically a Master Poster
network18
15
Practically a Master Poster
network18
15
Practically a Master Poster
moon_isha1
0
Newbie Poster
network18
15
Practically a Master Poster
moon_isha1
0
Newbie Poster
moon_isha1
0
Newbie Poster
network18
15
Practically a Master Poster
network18
15
Practically a Master Poster
network18
15
Practically a Master Poster
network18
15
Practically a Master Poster
network18
15
Practically a Master Poster
moon_isha1
0
Newbie Poster
network18
15
Practically a Master Poster
network18
15
Practically a Master Poster
moon_isha1
0
Newbie Poster
network18
15
Practically a Master Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.