Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Using Net::SMTP to send pdf attachment

by Jenda (Abbot)
on Mar 16, 2018 at 14:10 UTC ( #1211038=note: print w/replies, xml ) Need Help??


in reply to Using Net::SMTP to send pdf attachment

Don't!

There really is no need to once again reimplement MIME! See Mail::Sender, Email::MIME, MIME::Entity, Email::Sender.

Jenda
Enoch was right!
Enjoy the last years of Rome.

  • Comment on Re: Using Net::SMTP to send pdf attachment

Replies are listed 'Best First'.
Re^2: Using Net::SMTP to send pdf attachment
by Anonymous Monk on Mar 16, 2018 at 15:01 UTC

    Thank you Jenda.

    I tried with Mail::Sender and yes, it works :) However, I can't seem to use other email for "from" other than the one I created for my website - maybe it's a restriction from my webhost?

      That's quite possible. What does the SMTP server respond when you try? You can instruct Mail::Sender to write the conversation into a log file.

      Does your webhost specify any credentials you might use to log in to the SMTP server for sending without these restrictions?

      You might try to connect directly the mail server where your mailbox is stored. You may try to

      nslookup set type=MX the.domain.in.your.mail
      and use the mail exchanger this displays as the SMTP server to send to your email with a different "From" address. Though the SMTP port may be blocked by your web host.

      Jenda
      Enoch was right!
      Enjoy the last years of Rome.

        Just checked with the webhost. Can't use any other email for "From" other than the one registered with them.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2021-02-27 04:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?