
nagarajsh
New User
Jul 31, 2009, 2:49 PM
Post #3 of 5
(1978 views)
|
|
Re: [KevinR] want link to be sent in mail body that will open file on remote system
[In reply to]
|
Can't Post
|
|
Hi Kevin, here is part of my script, use SendMail; $smtpserver = "120.12.145.41"; $smtpport = 25; $sender = "Naga<math\@yahoo.com>"; $recipient = "ABC<math1\@yahoo.com>"; $sm = new SendMail($smtpserver,$smtpport); $sm->setDebug($sm->ON); $sm->From($sender); $sm->Subject("Reports Link"); $sm->To($recipient); $sm->setMailBody("please click the following link to get the reports\n\n <a href=""\\\\111.1.34.100\\ABC\\Reports\\BCD\\Details\\MNO\$latest_bb_xls">click here</a>"); if ($sm->sendMail() != 0) { print $sm->{'error'}. "\n"; exit -1; } print "Done\n"; exit 0; When i run this, i get mail and the it displays "please click the following link to get the reports\n\n <a href=""\\\\111.1.34.100\\ABC\\Reports\\BCD\\Details\\MNO\$latest_bb_xls">click here</a>" :(
|