Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Using Net::SMTP to send pdf attachment

by Anonymous Monk
on Mar 16, 2018 at 15:01 UTC ( #1211045=note: print w/replies, xml ) Need Help??


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

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?

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

Replies are listed 'Best First'.
Re^3: Using Net::SMTP to send pdf attachment
by Jenda (Abbot) on Mar 16, 2018 at 17:13 UTC

    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://1211045]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2021-03-02 08:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favorite kind of desktop background is:











    Results (41 votes). Check out past polls.

    Notices?