Perl Mime::Lite question. Help please?

From: Zev Steinhardt (WayneS1068_at_yahoo.com)
Date: 08/24/04

  • Next message: Bill Karwin: "Re: Perl Mime::Lite question. Help please?"
    Date: 24 Aug 2004 07:45:11 -0700
    
    

    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 => 'me@mymail.com',
                            To => 'someone@hismail.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.com');

    However, if I change the From line to 'Wayne <me@myaddress.com>' it
    fails as a bad address. I've tried using send_by_sendmail as well as
    send_by_smtp and am nearly at my wits end. Does anyone have any
    ideas?

    Thanking you in advance,

    Zev Steinhardt


  • Next message: Bill Karwin: "Re: Perl Mime::Lite question. Help please?"

    Relevant Pages

    • Perl Mime::Lite question. Help please?
      ... I'm trying to use Mime::Lite to send out multipart messages. ... I want to display a "real name" along with the email address when I ... Thanking you in advance, ... Zev Steinhardt ...
      (comp.lang.perl)
    • Perl Mime::Lite question. Help please?
      ... I'm trying to use Mime::Lite to send out multipart messages. ... I want to display a "real name" along with the email address when I ... Thanking you in advance, ... Zev Steinhardt ...
      (comp.lang.perl.modules)
    • Re: Where Should I Get the Latest SLRN?
      ... support decoded display of multipart messages. ... Thomas Wiegner's minimal_multipart patch will probably display the ...
      (news.software.readers)
    • Input type File: "Browse" in other languages
      ... What options do I have to make the "Browse" button display in other ... Thanking you in anticipation. ...
      (comp.lang.javascript)
    • Displaying buddy list on a dialog
      ... I am new to MFC programming so please help me out ... that group there is list of people in that group.I want to display ... Mike ... Thanking You in Anticipation ...
      (microsoft.public.vc.mfc)