|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Sending emails from DB
Hi,
I'm having some trouble trying to send mail out when I retrieve the emails from a DB. I really don't know whats going on, but I have tested this on 'normal' email and this works fine but when it comes to a email from a DB it doesn't work. PHP Code:
The problem I'm trying to get around is the $to variable, the line of code beneath works well, so I don't know how to get round the problem. Do you think I should create some sort of function? Any suggestions? Thanks |
|
#2
|
||||
|
||||
|
Have you verified that $DBemail is getting set properly? Try doing a print statement before sending the mail. Also, you don't need to put the variable in double quotes. I don't know that it'll hurt anything, but it's unnecessary and seems a little weird.
|
|
#3
|
|||
|
|||
|
Thanks...
Hi dhouston,
I've tried all sorts believe you me!! I've approached this a different way, by getting all the emails into an array and then creating a function to send them off... have a look... PHP Code:
Works okay... ![]() |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Sending emails from DB |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|