2
votes

Hi I have built a website and I would like to send & receive emails to and from my existing yahoo account.

Using the following code

        const string smtpHostAddress = "smtp.mail.yahoo.com";
        const string adminEmailAddress = "[email protected]";
        const string adminEmailPassword = "password";

                //FINALLY LETS CREATE SMTP OBJECT TO SEND THE EMAILS TO ADMIN AND THE USER
                var smtp = new SmtpClient
                {
                    Host = smtpHostAddress,
                    Port = 465,
                    UseDefaultCredentials = false,
                    Credentials = new System.Net.NetworkCredential
                        (adminEmailAddress, adminEmailPassword),
                    EnableSsl = true
                };


                //SEND THE EMAILS OUT
                smtp.Send(toUserMailMessage);
                smtp.Send(toAdminMailMessage);

I am able to send the email to the recipient successfully but I never get the message that was sent into my inbox.

The error i receive is System.Net.Mail.SmtpException: Mailbox name not allowed. The server response was: From address not verified - see http://help.yahoo.com/l/us/yahoo/mail/original/manage/sendfrom-07.html

To identify ports etc I have followed the information outlined here http://www.serversmtp.com/en/smtp-yahoo. I have also set teh 'Allow apps that use less secure sign-in' feature in account security to true.

Ive also tried port 587.

Any ideas?

Paul

1
The first link directs you to a forum. Did you search that forum for your "Mailbox name not allowed" error? Try google.com/search?q=yahoo+smtp+553&ie=&oe= - Shannon Holsinger
Hi and thanks for your response, Yes ofc i have searched but i am still struggling hence me asking the question on here. - Paul
They spell out what you need to do (see my answer below). - Shannon Holsinger
Awesome ill look into this. Thank you very much for taking the time out to help - Paul
No worries - Good luck. Don't forget to select an answer if your issue is resolved so this doesn't remain an open question. - Shannon Holsinger

1 Answers

1
votes

Cause

Yahoo's mail service is rejecting your Email. The external Internet Protocol (IP) Address of your sending mail server appears to be on a Spamhaus Blacklist used by Yahoo's mail service.

Solution

Request removal of your IP address from Spamhaus's Blacklist service by going to the URL below:

http://www.spamhaus.org/lookup.lasso

Further information can be found at the following Yahoo article:

550 5.7.1 [BL23] Connections not accepted from IP addresses on Spamhaus XBL http://help.yahoo.com/l/us/yahoo/mail/postmaster/errors/550-bl23.html