Go Back   Cloud Computing > Support > MySQL Issues.
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 05-23-11, 06:13
BOD Member
 
Join Date: Apr 2011
Posts: 82
Default How to send email via stored procedure in MySQL?

Hi

Can anyone tell me how to send email from stored procedure in MySQL?
Reply With Quote
  #2 (permalink)  
Old 05-23-11, 06:16
BOD Member
 
Join Date: Nov 2010
Posts: 81
Default

According to personal experience, the simplest method would be:

Quote:
1.Just create a table to keep emails such as (ID, Email, Subject, Body, Sent mail Flag,etc.)
2.Use trigger to write to this table
3.You have to process (Unix cron job etc....) that polls this table looking for any new entries ie. Where not sent.
4.You would also have a time showing so it will display when the record was added and when it was sent.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 00:50.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.