[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 815
  • Last Modified:

c# - Relay email directly to smtp server

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
mhdi
Asked:
mhdi
  • 3
  • 2
1 Solution
 
ktaczalaCommented:
you need to be able to access a SMTP Server such as exchange or gmail,  then use the system.net.mail namespace
0
 
mhdiAuthor Commented:
How do I ask the SMTP server to deliver the emails directly to a server (without looking up the recipient domain MX records)?
0
 
ktaczalaCommented:
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
 
mhdiAuthor Commented:
0
 
mhdiAuthor Commented:
This is the answer I was looking for.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now