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
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Joginder BangerRank #360 · 7K reputationPosted Dec 30, 2014, 2:01 AM EST
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...