Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re^2: Email an Attachment via Gmail

by anujsethi91 (Initiate)
on Apr 08, 2013 at 04:39 UTC ( #1027425=note: print w/ replies, xml ) Need Help??

in reply to Re: Email an Attachment via Gmail
in thread Email an Attachment via Gmail

thank you it worked perfectly!! but now that its detecting the module, i am stuck at a new problem. my code is the same as above but now its showing :: 'Can't locate object method "new" via package "Email::Send::SMTP::Gmail" <perhaps you forgot to load "Email::Send::SMTP::Gmail"> at line 5' please help

Comment on Re^2: Email an Attachment via Gmail
Replies are listed 'Best First'.
Re^3: Email an Attachment via Gmail
by davido (Archbishop) on Apr 08, 2013 at 05:03 UTC

    Back to my original question of you: What do you see when you type:

    cpan install Email::Send::SMTP::Gmail


      its installed now, but im getting a different problem now, i just asked above

        Lol... I think that Email::Send::SMTP::Gmail has a bug on the first line in v0.43. And taking a closer look at the module's test suite does nothing to instill confidence in the module; there are essentially no tests other than "Does the module load? Yes."

        I can't right now, but try changing line one of the module from package Gmail; to package Email::Send::SMTP::Gmail;, and if that fixes your issue, file a bug report. ;)


      Is there a way to send several attachments in the same email?

        Since the field for sending attachments is called -attachments (a plural), I assumed so, so I checked the documentation at Email::Send::SMTP::Gmail and found the examples provided therein to be pretty straightforward.

        So the answer to your question is 'Yes.', and the support for that answer is in the module's documentation.


        See MIME::Lite for how to create multiple attachments. You can then send the created message through whatever means you find suitable.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2015-11-27 18:53 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (731 votes), past polls