473,789 Members | 2,926 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

error with module Mime::LITE

63 New Member
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::SMT P=GLOB(0x87c5f9 0)>>> MTIzNDU2
MIME::Lite::SMT P=GLOB(0x87c5f9 0)<<< 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 2562
KevinADC
4,059 Recognized Expert Specialist
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
7022
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 = qw(michael@earthlink.net jennifer@aol.com ); my $Fnameweek1 = 'JNIssue11.pdf';
1
5392
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 send out the emails. Unfortuantely, whenever I do so, it gets bounced by the program as an invalid email address. For example, this works: $msg = MIME::Lite->new(
2
1876
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 have n actually defined in another module B, and I want to compile B into an executable, which will dynamically load module A at run-time. Such reference can then be resolved when B loads A. Is there a way to achieve this? Right now when I tried...
3
2021
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 anyone tell me how to write the coding!! Thanks in Advance!!!
1
3092
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 CGI/Lite.pm in @INC (@INC contains: C:/usr/site/lib C:/usr/lib .) at C:/apache/win32 binary/htdocs/MediaStrategyForGOM/index.cgi line 3.\r BEGIN failed--compilation aborted at C:/apache/win32 binary/htdocs/MediaStrategyForGOM/index.cgi line 3.\r It...
1
2740
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 multi-attached docs. 2. Able to set priority to mail. 3. Able to send inline images. Please suggest some python modules which satisfies above requirements. Thanks, Srini
0
3313
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 SOAP::Transport::HTTP::Client::get_basic_credentials {
10
6981
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 of section c. Not sure where went wrong as the web page displayed internal server error. Also, what is the error 543? and error 2114. Where to find the list of errors in websites as it is not the standard apache error. I could not find...
5
7834
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 examples of attachment scripts. Unfortunately, i have had no luck trying to execute my script. Every time i attempt to execute the script i receive the following response: Global symbol "$msg" requires explicit package name at attach1.pl line...
0
9511
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10410
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10200
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9984
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9020
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6769
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5418
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5551
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3701
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.