473,408 Members | 1,759 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

error with module Mime::LITE

63
Hi, I'm trying to create a script that send a file in attachment of a mail:

my code is something like this:
Expand|Select|Wrap|Line Numbers
  1. #set  up email
  2.     my  $to = "xxx\@xxxxxx.com";
  3.         my  $from = "xxx\@xxxxx.com.br";
  4.         my  $subject = "ficheiro audio ";
  5.     my  $message = "ficheiro audio ";
  6.         my  $path = "/home/user/Desktop/outputs/20080101_titulo-teste.mp3";
  7.  
  8. # send email
  9.      &email($to, $from, $subject, $message, $path);
  10.  
  11. ub email{
  12.     print "estou dentro de email";
  13.  # get incoming parameters
  14.  ($to, $from, $subject, $message, $path) = @_;
  15.  
  16.  
  17.  # create a new message
  18.  $msg = MIME::Lite->new(
  19.   From => $from,
  20.   To => $to,
  21.   Subject => $subject,
  22.   Data => $message,
  23.   Type => 'text/plain'
  24. );
  25.  $msg->attach(
  26.           Type => 'audio/x-mp3',
  27.           Disposition => 'attachment',
  28.           Path => $path); 
  29.  
  30.  # send the email
  31.  MIME::Lite->send('smtp','smtp.mail.yahoo.com.br', 
  32.           Timeout => 60, Debug =>1,
  33.              AuthUser=>'tvnet_parceiros_audio', AuthPass=>'*****');
  34.  
  35. $msg->send();
  36. };
  37.  
The problem is tha I get an error in the Debug:

MIME::Lite::SMTP=GLOB(0x87c5f90)>>> MTIzNDU2
MIME::Lite::SMTP=GLOB(0x87c5f90)<<< 535 authorization failed (#5.7.0)
SMTP auth() command failed:
authorization failed (#5.7.0)

The weird thing is that if I use another account (yahoo and everything the same) but older it works perfectly.
This account I'm trying was created yesterday.
Someone knows what's happening with my smtp authorization?

thanks for any help,

Joćo
Aug 27 '08 #1
1 2541
KevinADC
4,059 Expert 2GB
The error does not appear to be coming from the module. The error is the smtp server, but I have no idea why that is.
Aug 27 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: John B. Kim | last post by:
I am working on the code below: ****************************************************** use strict; use MIME::Lite; use Net::SMTP; my $from = 'steve@earthlink.net'; my @addweek1 =...
1
by: Zev Steinhardt | last post by:
I'm trying to use Mime::Lite to send out multipart messages. So far, it all seems to work well except for one small part. I want to display a "real name" along with the email address when I...
2
by: mshngo | last post by:
Hi, I am having the following trouble in compiling DLL on windows. Suppose I want to compile module A into a DLL library, and I want to declare an external interger n in A. My intention is to...
3
by: ramyaamar | last post by:
Hii friends I m new to perl...Just started learning....I want to know how to send an simple email in perl... I have activex perl and downloaded MIME::LITE and Mail:Mailer modules.... Can...
1
by: krsna | last post by:
hi, I am an beginner in Perl. As i was trying to deploy a already existing module in my system. It throws the following error. Premature end of script headers: index.cgi Can't locate...
1
by: munisams | last post by:
Can anyone tell me Is there any python module available which functionally equivalent to Perl's MIME::Lite?? I am searching for a python MIME module which has following features: 1. Able to send...
0
by: cbeels | last post by:
The client code is #install SOAP-Lite and MIME-tools packages use SOAP::Lite 'trace', 'debug'; #override version SOAP::Lite->soapversion('1.2'); #override credentials sub...
10
by: happyse27 | last post by:
Hi All, I got this apache errors(see section A1 and A2 below) when I used a html(see section b below) to activate acctman.pl(see section c below). Section D below is part of the configuration...
5
by: xmaverick | last post by:
Hello, I'm a newbie to perl and i'd like some assistance trying to figure out how to send an attachment using MIME::Lite. I have searched the net far and wide and have used and modify different...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.