Send mail different pdf file attached at a time Asp.net C#
send mail same time each employees separate pdf file attached. if any ideas pleas reply. in c# asp.net
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Joginder BangerPosted Dec 30, 2014, 7:01 AM
you want send the mail every employ behalf on email id and attache also related pdf file.
Simple make a function.
pubile void Sendmail()
{
DataTable dt= new DataTable();
dt="assign the data get from table";
if(dt.Rows.count>0)
{
for(int i=0;i
string Email Id=dt.Rows[i]["Emailcolumnname"].tostring();
String Attach =assign here
}sendmailfunction(email,Attach);
}
}
public void sendmailfuncation(string Email ,String Attachpath)
{
do stuff here.........
}
I hope you get some idea...