Solved

c# - Relay email directly to smtp server

Posted on 2014-02-19
5
650 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 12

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 12

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

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

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

Suggested Solutions

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

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