SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Aug 2010
    Location
    Bangladesh
    Posts
    65
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question <b>send automated mail to the user when posted article</b>

    Hi,

    My friends, hope U all r good. I want to implement something as follows....

    My site is about writer and buyer. Buyer will post articles with all the additional requirements. Writer will see and can add to his queue and write.

    What I want to do now is :: when buyer submit articles, an automated email will goes to the writer whose profile matches the requirements posted by buyer..

    How can I send this? If I want to implement cron jobs, then may be there will be a repeatition,,, another way, if I send the mails to matched writer when buyer posted articles, then it will take so much time to view the next page after post.

    If anything not clear plz reply.

    THanks,
    Rashed

  2. #2
    From Italy with love silver trophybronze trophy
    guido2004's Avatar
    Join Date
    Sep 2004
    Posts
    9,400
    Mentioned
    147 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by rashidul View Post
    If I want to implement cron jobs, then may be there will be a repeatition
    Why would there be repititions?

  3. #3
    SitePoint Enthusiast
    Join Date
    Aug 2010
    Location
    Bangladesh
    Posts
    65
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I understand. I can implement this using cron jobs.

    I thought that if I sent email for the articles that not yet taken.. if after 30 second if send again then there will be repetition.

    Now I got the solution. If I implement as follows it will work:::
    I will sent email for those article that posted within last 30 secs and that not yet taken.

    thanks for ur quick help.

  4. #4
    From Italy with love silver trophybronze trophy
    guido2004's Avatar
    Join Date
    Sep 2004
    Posts
    9,400
    Mentioned
    147 Post(s)
    Tagged
    4 Thread(s)
    rashidul, or add a mailstatus field to your database. When you send the emails, change the status. Only send emails if the status is 'emails not sent yet' or something like that

  5. #5
    SitePoint Enthusiast
    Join Date
    Aug 2010
    Location
    Bangladesh
    Posts
    65
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Great thanks. It's better


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •