Dear Members,
Please help me to resolve below script. The script is used to send the attachment in the mail with all the details. However in one of the incidents, the attachment in the mail was blank. Now the client is after me to get it resolved ASAP. So prompt response would be highly appreciated. Please find the script below:-
if (condition ='Y') then
-- for sending the sumaary mail with reespect to abc_1 and xyz_1
l_write_line := '(echo To: '||recipient_list|| '; echo Subject: '||subject_line|| '; echo MIME-Version: 1.0; echo '||''''|| 'Content-Type: multipart/mixed; boundary="-q1w2e3r4t5"' ||'''' || '; echo; echo ' ||''''||'---q1w2e3r4t5'||'''' || '; echo Content-Type: text/html; echo Content-Disposition: inline; cat '||path_of_report|| '; echo '||'''' || '---q1w2e3r4t5' ||'''' || '; echo ' ||''''|| 'Content-Type: application; name="GEPI_AUDIT_SUMMARY_DETAILS.xls"'||'''' || '; echo Content-Type: text/html; echo ' ||''''|| 'Content-Disposition: attachment; filename="GEPI_AUDIT_SUMMARY_DETAILS.xls"'||''''|| '; cat '||path_where_report_will_be_attached|| '; echo '||''''||'---q1w2e3r4t5--'||''''||' ) | /usr/sbin/sendmail -t';
else
-- for just audit summary wrt movement name
l_write_line := '(echo To: '||recipient_list|| '; echo Subject: '||subject_line|| '; echo MIME-Version: 1.0; echo Content-Type: text/html; echo Content-Disposition: inline; cat '||path_of_report|| '; ) | /usr/sbin/sendmail -t';
end if;
Thanking you in anticipation.
Regards,
SKO_TC
---------- Post updated at 10:02 AM ---------- Previous update was at 09:04 AM ----------
Dear Members,
It would be great if this gets resolved as early as possible. Please let me know if you want more details.
Regards,
SKO_TC