SMTP 450 when sending mail with Net::SMTP

The SMTP 450 error occurs whenever there is an issue with the DNS routing on the recipient's SMTP server. For example, you may run into this error if: The recipient server cannot find the email address on its server. The recipient mail server rejected your request as your email content did not pass through its filter.

SMTP 450 when sending mail with Net::SMTP

Just posting this as an answer instead so that it can be accepted as the answer, as requested by triplee.

Something might be wrong in your domain setup.

also add $smtp->datasend("\n"); underneath $smtp->datasend("Subject: Test message\n"); in a new line, else it will not show mesage text.

like this.

    $smtp->datasend("Subject: Test message\n");
    $smtp->datasend("\n");
    $smtp->datasend("Just a test message.\n");

Click Here to Visit

What's Your Reaction?

like
0
dislike
0
love
0
funny
0
angry
0
sad
0
wow
0