Hi friends,
i want to send a mail from smtp mail setup the main thing is i need to take a mail id from user setup table
PdfDocPath :='ABC.pdf';
Path := 'C:\\Temp'+PdfDocPath; // Directory + Path
CLEAR(ABC); // ABC is a Report 50088
ABC.USEREQUESTPAGE(FALSE); //// for filteration
IF NOT ABC.SAVEASPDF(Path) THEN
ERROR('PDF Creating Failed!\\ERROR:\\' + GETLASTERRORTEXT);
SMTP.CreateMessage('Jonas Wood','ashwini.e@sharpsyssoft.com','','Outstanding Amount','',TRUE) ;
SMTP.AddCC('ashwini.e@sharpsyssoft.com');
SMTP.AppendBody('Dear Sir / Madam,');
SMTP.AppendBody('<br><br>');
SMTP.AppendBody('Please find the Customer Outstading Amount in PDF Format:');
SMTP.AppendBody('<br><br>');
SMTP.AppendBody('Regards');
SMTP.AppendBody('<br>');
SMTP.AppendBody('Company Accounts Departments ');
SMTP.AddAttachment(Path,PdfDocPath);
SMTP.Send;
this is my code please tell me how to i take the email id from use setup table based on the condition.
Thank you
*This post is locked for comments