473,779 Members | 1,884 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Perl Mime::Lite question. Help please?

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(
From => 'm*@mymail.com' ,
To => 's******@hismai l.com',
Subject => $subject,
Type =>'multipart/alternative'
);
### Attach a part... the make the message a multipart
automatically:
$msg->attach(Type =>'text/plain',
Data =>$text_letter
);

$msg->attach(Type =>'text/html',
Data =>$html_letter
);

MIME::Lite->send('smtp', $MAIL_RELAY, Timeout=>$MAIL_ TIMEOUT) ||
die "Could not send mail!!";

$msg->send_by_smtp(' my.mailrelay.co m');
However, if I change the From line to 'Wayne <me@myaddress.c om>' it
fails as a bad address. I've tried using send_by_sendmai l as well as
send_by_smtp and am nearly at my wits end. Does anyone have any
ideas?

Thanking you in advance,

Zev Steinhardt
Jul 19 '05 #1
1 5391
Wa********@yaho o.com (Zev Steinhardt) wrote in message news:<41******* *************** ****@posting.go ogle.com>...
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

---------------

Lite is very fussy about the format of the recipients.... try something like this:

$Recipient = "\"$RealName\"\ <$email\>";

d
Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1907
by: WhiteShepherd | last post by:
Here's a question for people in the know. On PHP there is a global option to turn on Zlib compression to save bandwidth. On perl is there anything similar? I currently run Ikonboard via Active Perl (for win32) and was wondering how hard it would be to enable Zlib for this application or global for perl?
1
1612
by: jack | last post by:
I don't want to pester, but i have just one more follow up to this script I'm writing: The files I'm pulling has bylines in them. If I do this: ($byline, $title) = $_ =~ /By\s?(.*)<br><br>(+)<br><br>.*$/; #($firstgraph) = $_ =~ /<p>(.*)<br><br>(+)<br><br>.*$/; print "By: $byline\n\n"; print "Title: $title\n";
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
2935
by: Tom | last post by:
How do i run a batch file from a perl script? thanks in advance Tom
0
2897
by: JD | last post by:
Hi, I've searched for several weeks, and I've found code that should allow me to post from my perl script. I continue to fail, though. Admittedly, I am not good with OOP (other than VB). I'm trying to post so as to process credit card info, and authorize.net states that I must POST with a query string (?), but don't use GET. In short, I've tried: use CGI; use LWP::UserAgent; use HTTP::Request; use HTTP::Status; $cgi = new CGI;...
6
1705
by: amerar | last post by:
Hi All, I have a form that uses Javascript to validate some fields. Whe the user selects to submit the form with certain values selected, I want to be able to execute a Perl script, query the MySQL database to get my resuts and return an ALERT box to the user if his form input was invalid. Problem is, I do not want to change the screen. I just want the dialog to pop up. I am very good at Perl, but I'm less than a novice at
1
1367
by: M.N.A.Smadi | last post by:
hi guys; sorry for sending a perl question here, but python guy "HAD TO" look at perl code; how can i split a string that contains white spaces and '_' any clue? thanks
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
1
2562
by: jcor | last post by:
Hi, I'm trying to create a script that send a file in attachment of a mail: my code is something like this: #set up email my $to = "xxx\@xxxxxx.com"; my $from = "xxx\@xxxxx.com.br"; my $subject = "ficheiro audio "; my $message = "ficheiro audio "; my $path = "/home/user/Desktop/outputs/20080101_titulo-teste.mp3";
0
9632
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9471
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
10136
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...
1
10071
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9925
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
8958
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...
1
7478
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6723
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();...
3
2867
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.