Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: Trying to send a nicely formatted email -> GMail

by thanos1983 (Parson)
on Apr 25, 2018 at 16:17 UTC ( [id://1213539]=note: print w/replies, xml ) Need Help??


in reply to Re: Trying to send a nicely formatted email -> GMail
in thread Trying to send a nicely formatted email -> GMail

Just a minor note here :)

The To       => 'gbecker@grumble.edu', should be To       => [ 'gbecker@grumble.edu' ], as it can be multiple recipients.

For example from Email::MIME::SYNOPSIS: To => [ 'user1@host.com', 'Name <user2@host.com>' ],.

BR / Thanos

Seeking for Perl wisdom...on the process of learning...not there...yet!

Replies are listed 'Best First'.
Re^3: Trying to send a nicely formatted email -> GMail
by pryrt (Abbot) on Apr 25, 2018 at 16:41 UTC

    Minor counter-note: the synopsis shows both arrayref and scalar:

    header_str => [ From => 'casey@geeknest.com', To => [ 'user1@host.com', 'Name <user2@host.com>' ], Cc => Email::Address::XS->new("Display Name \N{U+1F600}", 'use +r@example.com'), ], ... header_str => [ From => 'my@address', To => 'your@address', ],
    so either are presumably allowed. The important thing is that the From and the Subject are never shown as arrayref (and it doesn't make sense for more than one sender or more than one subject line)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1213539]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-03-29 10:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found