Solved

Cant send email to aol account from smtp relay server

Posted on 2013-11-08
2
611 Views
Last Modified: 2014-11-12
I have a small program that sends email using the local smtp relay server.
I can send email to any other domain name (ie..yahoo or gmail or any other account)...but whenever i try to send the email to any valid (aol email) ...i dont see anything in the inbox.

but when i send it through my outlook or any gmail website itself...the message goes to the aol inbox.

any particular reason why it is behaving like this?


thanks
Albin


  string sMessage;
            SmtpClient smtpClient = new SmtpClient();
            MailMessage message = new MailMessage();
            try
            {

                //you can provide invalid from address. but to address Should be valil
                MailAddress fromAddress = new MailAddress("agorkhali@factortrust.com", "Albin");
                //smtpClient.Host = "192.168.100.11";

                smtpClient.Host = "192.168.200.50";
                smtpClient.Port = 25;
                //smtpClient.Port = 587;
                //smtpClient.EnableSsl = true;

                //smtpClient.UseDefaultCredentials = true; 
                //smtpClient.Credentials = nc;
                message.From = fromAddress;
            
                message.To.Add("gorkhalia@aol.com"); //Recipent email 
                message.Subject = "test smtp email";
                message.Body = "This is a test email through smtp client";
                message.IsBodyHtml = true;

                //smtpClient.EnableSsl = true; 
                smtpClient.DeliveryMethod = SmtpDeliveryMethod.Network;
                smtpClient.Send(message);
                sMessage = "Email sent.";
            }
            catch (Exception ex)
            {
                sMessage = "Coudn't send the message!\n " + ex.Message;
            }

Open in new window

0
Comment
Question by:agorkhali
2 Comments
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 39635206
It could be because you are sending from a private IP address "192.168.200.50" instead of a known public IP address.  That is often taken as a sign of spam.  In addition, if AOL does a reverse lookup on your domain in the From address, it is clear that it's not the IP address associated with the factortrust.com mail servers.
0
 
LVL 23

Expert Comment

by:ormerodrutter
ID: 39638829
You can ask your ISP to add a RDNS (Reverse DNS) record to your domain/IP.

In that way when AOL does a reverse lookup you have a fully valid RDNS record.
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
As cyber crime continues to grow in both numbers and sophistication, a troubling trend of optimization has emerged over the last year.
This Micro Tutorial will demonstrate using Google Doc how to import live data to another spreadsheet in Google Spreadsheets using the IMPORTRANGE function.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question