PHP email

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Yangtze
Forum Newbie
Posts: 3
Joined: Tue Mar 30, 2004 12:21 pm

PHP email

Post by Yangtze »

First of all, I did tried this:
http://www.php.net/manual/en/ref.mail.php

But I could not find the solution.


I want to send out the results generated from the MySQL database.
For example:
Recoard #1, Regal China, 4 nights, $514, 5 star, Check Availability

Recoard #2, Victoria, 4 nights, $431, 5 star, Check Availability

when a visitor click the link "check availability" after the record he is interested in, it will direct visitors to a new page "display.php", it has more information of the record he/she chose.

I want to add a form in the "display.php" page, like the html feedback form.
However in the form I want to add into the "display.php", visitors will no longer need to input informatin that are generated from the database.

He need to add his/her contact info. and a short message, then press "submit".

What I will receive is not only contact info. and the possible message left by the visitor, but also information generated from the database.

So I can know which availability information he/she is asking for.

I was completely new to PHP and MySQL one month ago, with great effort of myself and help from you guys, I have managed to create a nice searchable and editable database.
And now I need the help from you again.

Any hint would be highly appreciated.
Yangtze
Forum Newbie
Posts: 3
Joined: Tue Mar 30, 2004 12:21 pm

Post by Yangtze »

Is there some where on the web tutorials about my question?

I tried "email php", "form php email", "php result form" etc. at G.

Could't find what I want

:oops:
magicrobotmonkey
Forum Regular
Posts: 888
Joined: Sun Mar 21, 2004 1:09 pm
Location: Cambridge, MA

Post by magicrobotmonkey »

check out phpmailer. its simple!!
Yangtze
Forum Newbie
Posts: 3
Joined: Tue Mar 30, 2004 12:21 pm

Any tutorial?

Post by Yangtze »

Hi I searched "phpmailer" at G, I can't find any useful information.

Would you please offer me more information?
Thanks
anotherJean
Forum Newbie
Posts: 22
Joined: Tue Mar 30, 2004 3:59 pm

Post by anotherJean »

Well ....mayb I didn't get it ...but it seems to be the basic stuff you demand. the reference you've posted describes exactly what you want.

Just look to the examples and adjust the variables to yours.
Post Reply