|
|
![]() |
| Thread Tools | Search this Thread |
#1
| |||
| |||
Problem of email alert in PHP I facing a huge problem with my site that provides an email alert. Whenever a user registers for e-mail alert, I get his email address and the application searches it in this form: PHP Code: 1 - I do a loop to retrieve requests from the table t_alert_email 2 - I do another nested loop to retrieve the references of addresses corresponding to these requests 3 - I still do a nested loop, in which I compare the references retrieved in step 2, with my t_addr table (table in which all the addresses are stored) according to the date. 4 - I do a loop to email the references retrieved in step 3 to the corresponding email. My code: PHP Code: |
#2
| |||
| |||
Re: Problem of email alert in PHP Your problem lies in your code, Quote:
I would say include this statement in your loop where you retrieve the addresses, something like this: PHP Code: |
#3
| |||
| |||
Re: Problem of email alert in PHP I agree with XSI. Also I would like to add to this is that try to execute once and send your mail because it don't work always . You must place your "mail($address_email_alert, $subject, $message, $header);" at the end of the first loop that manages emails. And you defined $address_email_alert in your third loop, there is no logic defining it there because $results_extraction_affairs will be empty. One more thing, you didn't specified the destination email address? |
![]() |
|
Tags: alert, email, php |
Thread Tools | Search this Thread |
|
![]() | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
AVAST popup Trojan alert redirBA-inf and Malware alert script-inf | Wajid^ali | Networking & Security | 6 | 06-06-2011 01:38 AM |
UPS email virus - ALERT | Xeusion | Networking & Security | 12 | 17-11-2010 04:37 AM |
How to stop my blackberry phone from beeping / Alert on every email | Kingfisher | Portable Devices | 3 | 13-08-2009 07:07 PM |
Solving a problem with Red Alert 3 | Shaji | Video Games | 0 | 06-02-2009 03:24 PM |