On April 27, 2024, our Sign-in and Create Account options will be unavailable from 9am-12pm ET. During this maintenance window, developer account access and free trial registration will be unavailable.
iw_sendmail
The mail script which is shipped with Interwoven doesnt seem to run on win2k.
I had to change the code to use Net:MTP and Net::Cmd instead of the Mail::Mailer module.
The default script wasn't giving any errors while running , but it didnt send mails either !!!
After my modifications IT WORKS !!!
I had to change the code to use Net:MTP and Net::Cmd instead of the Mail::Mailer module.
The default script wasn't giving any errors while running , but it didnt send mails either !!!
After my modifications IT WORKS !!!
Tagged:
Comments
-
The following was the modification i made ...
rest of the stuff was prettymuch the same with minor project specific mods...
add use Net:MTP and use Net::Cmd instead of Mail::Mailer
my(%headers) = ('To' => $opts{t},
'Cc' => $opts{c},
);
my @lists = ();
my @to_list = ();
my $count = 0;
my $counter = 0;
foreach my $k (sort(keys(%headers)))
{
my @temp_addr = ();
foreach my $e (@{$headers{$k}})
{
@temp_addr = split(/\s*,\s*/, $e);
for(my $i=0;$i<=scalar(@temp_addr);$i++)
{
$lists[$count] = $temp_addr[$i];
$to_list[$counter] .= $temp_addr[$i].",";
$count++;
}
$counter++;
}
}
$smtp->mail($opts{f});
for(my $i=0;$i<scalar(@lists);$i++)
{
$smtp->to($lists[$i]);
}
$smtp->data();
$smtp->datasend("To: $to_list[1]\n");
$smtp->datasend("From: $opts{f}\n");
$smtp->datasend("Cc: $to_list[0]\n");
$smtp->datasend("Subject: $subject\n");
$smtp->datasend("\n");
$smtp->datasend("$message\n");
$smtp->dataend();
$smtp->quit;
$task->CallBack(0, "Completed Deployment");Edited by pandit on 01/29/02 12:18 PM (server time).
Categories
- All Categories
- Cloud Editions
- 1 Thrust Services
- cat as link
- 1 Core SaaS Application development
- 10 Developer Announcements
- 15 General Questions
- 33.4K TeamSite
- 141 Application Governance & Archiving
- 15.2K Designing Analytics Reports
- 1K DevShare Downloads
- Core SaaS Applications
- nested parent
- 4.3K Developing Analytics Applications
- 8.8K Documentum Developer Forum
- Media Management developer
- 159 Transactional Content Processing (TCP)
- 1.7K Web Experience Management
- 55 Tempo Social
- 1 XM Fax