Send data via 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
Arsench2000
Forum Commoner
Posts: 38
Joined: Sat Sep 15, 2007 8:18 pm

Send data via email

Post 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.
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: Send data via email

Post by jackpf »

There are lots of examples on google.
Arsench2000
Forum Commoner
Posts: 38
Joined: Sat Sep 15, 2007 8:18 pm

Re: Send data via email

Post by Arsench2000 »

jackpf wrote:There are lots of examples on google.
thank for advice, but Ive asked for any example.

have a nice day
User avatar
Mirge
Forum Contributor
Posts: 298
Joined: Thu Sep 03, 2009 11:39 pm

Re: Send data via email

Post 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.
Arsench2000
Forum Commoner
Posts: 38
Joined: Sat Sep 15, 2007 8:18 pm

Re: Send data via email

Post 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.
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: Send data via email

Post by jackpf »

Well don't post here then.
r4r4
Forum Newbie
Posts: 11
Joined: Thu Jul 02, 2009 12:01 am

Re: Send data via email

Post by r4r4 »

mail ( "me@mysite.com", "Contact Us Form", "This is an email from your site", "From: you@yoursite.com" )
User avatar
Mirge
Forum Contributor
Posts: 298
Joined: Thu Sep 03, 2009 11:39 pm

Re: Send data via email

Post 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.
Post Reply