我有两个数据库表,电子邮件和设备。
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
有许多segment
和framework
值:如何向特定segment
和framework
发送电子邮件?
mail.To.Add(emailnam); #email to send
mail.Body = (emailboyd); #email equipmentid with particular segment and framework
很难解释。我尝试连接表,但很难将一个电子邮件与许多设备ID合并。
答案 0 :(得分:0)
你可以使用if for email然后收集所有信息。这应该很容易 从数据库查询然后检查
if(email=='')
{
if (segment='')
{ }
}