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.