Send SMTP Mail Message: Index (zero based) must be greater than or equal to zero and less than the size of the argument list. - Body contains String.Format(mailcontent, transaction number) Please help.
Your SMTP body part throwing this error. check to make sure value are passed or not in below mentioned variable
mailcontent, transaction number
Or Confirm once your html variable value passed like below
{0} {1}Thanks,
Rajkumar
assigned value for Tranaction number is:
String.Format(“ {0} {1} {2} {3} ”, varSNo, row.item(“ORDER_NUMBER”).ToString, row.item(“HOLD_NAME”).ToString, row.item(“RELEASED_FLAG”).ToString)
Email body is:
table, th, td {1} border: 1px solid black; {2}Status of Hold(s)
{0}
S.NO. | Order No | Hold Applied | Release Status |
---|