Jump to content

PHP for Mail


MarkT

Recommended Posts

Hello,

I'm trying to fetch email addresses from a database, which I'm using a MYSQLI Select for.

 

I want to select email addresses based from a form, and then send an email to those addresses,

can anyone provide code?

 

How to echo those addresses in the 'to' part of PHP Mail.

Link to comment
Share on other sites

 

I'm trying to fetch email addresses from a database, which I'm using a MYSQLI Select for.

AND

 

I want to select email addresses based from a form, and then send an email to those addresses,

 

Am not really getting you, which one do you want?

Link to comment
Share on other sites

Likely he wants to get the WHERE clause of the query from a form.

 

As in, select a user from a dropdown on a form for example, and then it would send an email to that user, as opposed to having all the email addresses available on the site itself.

 

To the OP, where is your code? What have you tried and what are you stuck on?

Edited by thescientist
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...