Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

c# - Relay email directly to smtp server

Posted on 2014-02-19
5
Medium Priority
?
772 Views
Last Modified: 2014-02-27
Hi,

I'm trying to redirect emails into Google Mail without changing the domain names MX records.

In my C# application how do I deliver mail directly to "aspmx.l.google.com" without looking up the actual MX records of the recipient domain name.

Is this possible?
0
Comment
Question by:mhdi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 13

Expert Comment

by:ktaczala
ID: 39872418
you need to be able to access a SMTP Server such as exchange or gmail,  then use the system.net.mail namespace
0
 

Author Comment

by:mhdi
ID: 39872424
How do I ask the SMTP server to deliver the emails directly to a server (without looking up the recipient domain MX records)?
0
 
LVL 13

Expert Comment

by:ktaczala
ID: 39872451
You have to setup the system.net.mail credentials

See here for a tutorial:
http://www.rebex.net/support/tutorial/mail-message/default.aspx
0
 

Accepted Solution

by:
mhdi earned 0 total points
ID: 39880197
0
 

Author Closing Comment

by:mhdi
ID: 39891399
This is the answer I was looking for.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
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…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

636 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