I have a requirement to attach the file in the email and also need to have the hyperlink mentioned in the email.
I have tried with the code mentioned below. But the hyperlink is not being populated as expected instead its prefixed with some URL and suffixed by some URL.
Could you please correct me?
HELO ABC.COM
MAIL FROM: <abc@xyz.com>
RCPT TO: <pqt@xyz.com>
DATA
FROM: <abc@xyz.com>
TO: <pqt@xyz.com>
SUBJECT: LINE REJECTIONS
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="MIME"
--MIME
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hi,
Please refer the attached file for details.
http://www.xyz.com
Regards,
Balesh.
Content-Type: text/plain;
Content-Disposition: attachment; filename="xyz.txt"
MAIL FROM: <abc@xyz.com>
RCPT TO: <pqt@xyz.com>
DATA
FROM: <abc@xyz.com>
TO: <pqt@xyz.com>
SUBJECT: LINE REJECTIONS
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="MIME"
--MIME
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hi,
Please refer the attached file for details.
http://www.xyz.com
Regards,
Balesh.
Content-Type: text/plain;
Content-Disposition: attachment; filename="xyz.txt"
******************************** Bottom of Data ****************************************************