Good Morning,
I have made a perl script which reads email addresses and Text Message to be
sent using Net::SMTP.
The input file is a simple text file with "NAME<TAB>Message\n" format...i.e
Name and Messages are tab seperated and each record is in a newline.
My code does $smtp->datasend("$message") but I can't figure out a way to put
newlines in the email.
For eg, consider the message being as:
Hello ABC,\n Nice to Meet you.\nRegards,\nXYZ.
I want this to appear in email as :
Hello ABC,
Nice to Meet you.
Regards,
XYZ.
But I can't get these \n converted to newlines.
Where is the problem, scanning the data from text file or while sending the
email data?
How can I solve it?
TIA,
Kasp
--
Perl is designed to give you several ways to do anything, so
consider picking the most readable one.
-- Larry Wall