sending does not work
Status: Inactive
Brought to you by:
lizardo
I get the following error message when I am trying to use sendymail. Problem with the new yahoo mail?
Aug 11 19:46:47 [9010] Starting SendYmail 0.5.8
Aug 11 19:46:47 [9010] Parsing message from standard input...
Aug 11 19:46:47 [9010] Authenticating user "szazharminchet"...
Aug 11 19:46:49 [9010] Accessing Yahoo! Mail main page...
Aug 11 19:46:50 [9010] Composing message...
Aug 11 19:46:52 [9010] Error: Form "Compose" not found at /usr/bin/sendymail.pl line 284, <STDIN> line 12.
Aug 11 19:46:52 [9010] Removing temporary files...
Best regards:
Arpad Lukacs
Logged In: NO
I switched back to yahoo mail classic interface and it still does not work, although now I get a different error message:
Aug 20 09:30:02 [8608] Starting SendYmail 0.5.8
Aug 20 09:30:02 [8608] Parsing message from standard input...
Aug 20 09:30:02 [8608] Authenticating user "szazharminchet"...
Aug 20 09:30:04 [8608] Accessing Yahoo! Mail main page...
Aug 20 09:30:05 [8608] Composing message...
Aug 20 09:30:05 [8608] Error: Could not access http://us.mc520.mail.yahoo.com/ym/Compose: 404 Not Found
Aug 20 09:30:05 [8608] Removing temporary files...
Some field names have changed, apply the following patch:
--- sendymail-0.5.8/sendymail.pl 2005-08-04 06:11:06.000000000 +0200
+++ /home/abaumann/scripts/sendymail.pl 2009-02-23 14:34:24.000000000 +0100
@@ -271,7 +271,7 @@
Log("Composing message...");
my $base_url = $response->base()->scheme() . "://" . $response->base()->host();
- $response = ${$args{"lwp_ua"}}->get($base_url . "/ym/Compose");
+ $response = ${$args{"lwp_ua"}}->get($base_url . "/mc/compose");
Http_error($response) unless $response->is_success;
if (!$response->content =~ /AttachFiles\(\)/) {
@@ -284,17 +284,17 @@
die "Form \"Compose\" not found" unless @forms;
my $form = shift @forms;
- $form->value("To", $args{"to"});
- $form->value("Cc", $args{"cc"});
- $form->value("Bcc", $args{"bcc"});
+ $form->value("to", $args{"to"});
+ $form->value("cc", $args{"cc"});
+ $form->value("bcc", $args{"bcc"});
$form->value("Subj", $args{"subject"});
- $form->value("Body", $args{"body"});
+ $form->value("Content", $args{"body"});
Attach_files(
lwp_ua => $args{"lwp_ua"},
html_form => \$form,
attachments => $args{"attachments"}) if @{$args{"attachments"}};
Log("Sending message...");
- $form->value("SEND", "Send");
+ $form->value("send", "Send");
$response = ${$args{"lwp_ua"}}->request($form->click);
Http_error($response) unless $response->is_success;
if ($config{"debug"}) {
Basic sending works, didn't test attachments and all the other options yet.
BTW, is this project still actively developed?