Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3987736
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T06:10:08+00:00 2026-05-20T06:10:08+00:00

I am trying to send mail through my Google Apps email account. This is

  • 0

I am trying to send mail through my Google Apps email account. This is setup on my own domain and is all working fine through the web interface and through outlook.

However, i’m trying to send an email from a webpage using C#, I get no exceptions and everything appears to go smoothly, but the emails never seem to arrive:

MailMessage msg = new MailMessage("no-reply@xxxx.co.uk", "dan@xxxx.co.uk");
    SmtpClient smtp = new SmtpClient("smtp.gmail.com", 587);
    smtp.DeliveryMethod = SmtpDeliveryMethod.Network;
    smtp.Credentials = new NetworkCredential("no-reply@xxxx.co.uk", "xxxxxxxxx");
    smtp.EnableSsl = true;
    msg.IsBodyHtml = true;
    msg.Body = body;

    smtp.Send(msg);

The body is a string which i’ve generated earlier in the code. As far as i’m aware, if there was a problem with actually connecting to the SMTP server at Gmail then I would get an exception thrown.

Any ideas what could cause this not to work? Only thing different I can see compared to other peoples examples is that I have set body as HTML and i’m sending from a Google Apps account rather than an @gmail.com account.

The google apps itself is all configured fully and working, i’ve set this up numerous times so I know it’s not likely to be a problem there.

I also tried sending on port 25, as that’s what you use when configuring Outlook to send from a Gmail account.

Same result for both, no exception thrown, but email never arrives. Both emails the sender and receiver are on my domain using Google Apps for Gmail.

EDIT:

Also I should mention that I have signed in using both accounts, and both have IMAP and POP enabled in their settings etc.

New findings

This is a strange one

If I send mail manually from:

no-reply@mydomain.com to dan@mydomain.com - Then it works

But if I send it through code this way...it doesn't work...

If I send the following through code it does work:

no-reply@mydomain.com to me@gmail.com or me@ntlworld.com - This works through code!

I would then be led to think that this means a problem with dan@mydomain.com receiving messages…But it receives any messages sent manually from any google, hotmail, or ntlworld email address i’ve tried.

So either Google Apps accounts can’t receive email sent through code (unlikely) or something else is at play here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T06:10:09+00:00Added an answer on May 20, 2026 at 6:10 am

    When you setup Google Apps, even if the MX records are all working correctly for sending mail manually to/from other accounts, there can still be problems.

    The answer is to wait 12-24 hours after setting up your MX Records, even if everything else is working fine.

    If you receive no exception, then to me this is the only answer at the moment.

    All is working correctly now. Even though all MX records were correct on my DNS and email appeared to be working, there were still changes going on in the background

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to send an e-mail with Codeigniter like this: $this->load->library('email'); $this->email->from(myemail@email.com); $this->email->reply_to(myemail@email.com); $this->email->to(myemail@email.com);
I am trying to send an e-mail using gmail account (Delphi 7, Indy 10)
I am trying to send an email in ASP.NET using system.net.mail the problem is
I am trying to send an HTML email using Perl. open(MAIL,|/usr/sbin/sendmail -t); ## Mail
I am trying to send mail through grails mail plugin. I configured according to
I'm trying to send an email via some C# ASP.NET code. This is being
I am trying to send a simple email through the following code: protected void
I'm trying to configure a dedicated server that runs ASP.NET to send mail through
Trying to send mail with the following script, I substitute $1 with the email
I have been trying to send out html emails through a PHP mail script

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.