Page 1 of 1

Send data via email

Posted: Wed Sep 23, 2009 2:36 am
by Arsench2000
Hello world,

I have a DB in mysql, and want to create a code that will select all this DB data ( there are 10 records) and send it via email (created send email in php).

Anyone have a such example please ?Could you help me =?

Thanks in advance.

Re: Send data via email

Posted: Wed Sep 23, 2009 5:49 am
by jackpf
There are lots of examples on google.

Re: Send data via email

Posted: Wed Sep 23, 2009 5:52 am
by Arsench2000
jackpf wrote:There are lots of examples on google.
thank for advice, but Ive asked for any example.

have a nice day

Re: Send data via email

Posted: Wed Sep 23, 2009 12:14 pm
by Mirge
Arsench2000 wrote:
jackpf wrote:There are lots of examples on google.
thank for advice, but Ive asked for any example.

have a nice day
Do you know how to connect to mysql in PHP? Pull data, etc? And then use PHP's mail() function to email the data?

This is pretty trivial, a simple Google search would have gotten you examples, as jackpf suggested.

Re: Send data via email

Posted: Fri Sep 25, 2009 4:22 am
by Arsench2000
Mirge wrote:
Arsench2000 wrote:
jackpf wrote:There are lots of examples on google.
thank for advice, but Ive asked for any example.

have a nice day
Do you know how to connect to mysql in PHP? Pull data, etc? And then use PHP's mail() function to email the data?

This is pretty trivial, a simple Google search would have gotten you examples, as jackpf suggested.
Hello, I know all that u said, but when runing the while loop for gettng all data it send many times the same email, otherwise I have resolved it and now dont need more advices that cant help, why you dont go to work as a politic? there are more blah blah blah and little work, its your place. Dont respond me more please, I cant lose my time to reading your "useful" advices.

Re: Send data via email

Posted: Fri Sep 25, 2009 4:26 am
by jackpf
Well don't post here then.

Re: Send data via email

Posted: Fri Sep 25, 2009 4:47 am
by r4r4
mail ( "me@mysite.com", "Contact Us Form", "This is an email from your site", "From: you@yoursite.com" )

Re: Send data via email

Posted: Fri Sep 25, 2009 11:15 am
by Mirge
Arsench2000 wrote:Hello, I know all that u said, but when runing the while loop for gettng all data it send many times the same email, otherwise I have resolved it and now dont need more advices that cant help, why you dont go to work as a politic? there are more blah blah blah and little work, its your place. Dont respond me more please, I cant lose my time to reading your "useful" advices.
Oh I understand now. Basically what you want is for me to say "Hey here you go buddy. I've just written your script for you because I don't care if you actually learn anything or not."

Not happening.