Click here to Skip to main content
15,921,774 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

i have 2 table let us say customer and queuemail. i have to retrieve all email id of that column from customer table and inserted into queuemail table with additional columns as mentioned below. when a user in customer table registered in before today’s date on i.e,[CreatedOnUtc] field then i want to send message to all the users.

Please help me out on this. i dont want gmail pattern answers.
this is for my application itself not globally.

Queuemail table
SELECT TOP 1000 [Id]
,[Priority]
,[From]
,[FromName]
,[To]
,[ToName]
,[CC]
,[Bcc]
,[Subject]
,[Body]
,[CreatedOnUtc]
,[SentTries]
,[SentOnUtc]
,[EmailAccountId]
FROM [QueuedEmail]

customer table
SELECT TOP 1000 [Id]
,[CustomerGuid]
,[Username]
,[Email]
,[Password]
,[PasswordFormatId]
,[PasswordSalt]
,[AdminComment]
,[LanguageId]
,[CurrencyId]
,[AffiliateId]
,[Active]
,[Deleted]
,[IsSystemAccount]
,[SystemName]
,[LastIpAddress]
,[CreatedOnUtc]
,[LastLoginDateUtc]
FROM [Customer]
Posted
Updated 4-Jul-12 1:19am
v2
Comments
[no name] 4-Jul-12 7:33am    
"i dont want gmail pattern answers.
this is for my application itself not globally."

This makes no sense whatsoever. And you didn't bother even asking a question.
bbirajdar 4-Jul-12 7:58am    
Did you try searching with the world famous google search engine at www.google.com ?

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900