2015-12-10 61 views
0

我有兩個數據庫表,電子郵件和設備。發送電子郵件到特定的網段和框架

Email(User will subscribe and select what segment and framework they want) 
===== 
ID , EMAIL, NAME , SEGMENT ,FRAMEWORK 

Equipment(equipment name with all details) 
========= 
EQUIPMENT ID , COM_STATE , SEGMENT ,FRAMEWORK 

有許多segmentframework值:我怎麼能發送電子郵件到特定segmentframework

mail.To.Add(emailnam); #email to send 
mail.Body = (emailboyd); #email equipmentid with particular segment and framework 

這很難解釋。我嘗試加入表格,但很難將一封電子郵件與許多設備ID合併。

回答

0

您可以使用,如果用於電子郵件,然後收集所有information.it應該從數據庫容易 查詢,然後檢查

if(email=='') 
{ 
    if (segment='') 
{ } 
} 
相關問題