Question about sending email in asp.net web application

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • gnewsgroup

    Question about sending email in asp.net web application

    I am using Peter Bromberg's code to send email through gmail smtp
    service in my asp.net web application. Thanks, Peter.

    The problem with gmail smtp is that gmail will overwrite the sender's
    address with whichever the gmail smtp server authenticates. In other
    words, even if you say

    mailMessage.Fro m = new MailAddress("jo hndoe@somewhere .com");

    But, if you authenticate yourself through "janedoe@gmail. com",

    Then the sender address will be overwritten as "janedoe@gmail. com".

    I understand that this makes perfect anti-spamming sense.

    Here is my situation. I have domain mydomain.com, and I am using the
    google apps email service with this mydomain.com. So, I have email
    addresses like

    info@mydomain.c om
    feedback@mydoma in.com

    But, I cannot authenticate neither of these against gmail smtp server,
    so I have to use gnewsgroup@gmai l.com to get authenticated, but then,
    recipients will see that my email is from gnewsgroup@gmai l.com instead
    of from info@mydomain.c om. This is very unprofessional, isn't it?

    So, here is the question, I don't have a mail server on mydomain.com,
    is there a work around to send mail and recipient would see that the
    email is from info@mydomain.c om?

    Thank you.


  • Juan T. Llibre

    #2
    Re: Question about sending email in asp.net web application

    Would setting up your Email domain through GoogleApps help ?






    Juan T. Llibre, asp.net MVP
    asp.net faq : http://asp.net.do/faq/
    foros de asp.net, en español : http://asp.net.do/foros/
    =============== =============== ========
    "gnewsgroup " <gnewsgroup@gma il.comwrote in message
    news:8a6995d8-7933-4d4d-89b9-fc6e1024a29d@z3 8g2000hsc.googl egroups.com...
    >I am using Peter Bromberg's code to send email through gmail smtp
    service in my asp.net web application. Thanks, Peter.
    >
    The problem with gmail smtp is that gmail will overwrite the sender's
    address with whichever the gmail smtp server authenticates. In other
    words, even if you say
    >
    mailMessage.Fro m = new MailAddress("jo hndoe@somewhere .com");
    >
    But, if you authenticate yourself through "janedoe@gmail. com",
    >
    Then the sender address will be overwritten as "janedoe@gmail. com".
    >
    I understand that this makes perfect anti-spamming sense.
    >
    Here is my situation. I have domain mydomain.com, and I am using the
    google apps email service with this mydomain.com. So, I have email
    addresses like
    >
    info@mydomain.c om
    feedback@mydoma in.com
    >
    But, I cannot authenticate neither of these against gmail smtp server,
    so I have to use gnewsgroup@gmai l.com to get authenticated, but then,
    recipients will see that my email is from gnewsgroup@gmai l.com instead
    of from info@mydomain.c om. This is very unprofessional, isn't it?
    >
    So, here is the question, I don't have a mail server on mydomain.com,
    is there a work around to send mail and recipient would see that the
    email is from info@mydomain.c om?
    >
    Thank you.
    >
    >

    Comment

    • =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=

      #3
      RE: Question about sending email in asp.net web application

      I haven't tried using the ReplyTo property to see if that would help, but in
      a pinch you could always invite your "selves" to get their own unique gmail
      addresses and use the correct one for each.
      -- Peter
      Site: http://www.eggheadcafe.com
      UnBlog: http://petesbloggerama.blogspot.com
      Short Urls & more: http://ittyurl.net


      "gnewsgroup " wrote:
      I am using Peter Bromberg's code to send email through gmail smtp
      service in my asp.net web application. Thanks, Peter.
      >
      The problem with gmail smtp is that gmail will overwrite the sender's
      address with whichever the gmail smtp server authenticates. In other
      words, even if you say
      >
      mailMessage.Fro m = new MailAddress("jo hndoe@somewhere .com");
      >
      But, if you authenticate yourself through "janedoe@gmail. com",
      >
      Then the sender address will be overwritten as "janedoe@gmail. com".
      >
      I understand that this makes perfect anti-spamming sense.
      >
      Here is my situation. I have domain mydomain.com, and I am using the
      google apps email service with this mydomain.com. So, I have email
      addresses like
      >
      info@mydomain.c om
      feedback@mydoma in.com
      >
      But, I cannot authenticate neither of these against gmail smtp server,
      so I have to use gnewsgroup@gmai l.com to get authenticated, but then,
      recipients will see that my email is from gnewsgroup@gmai l.com instead
      of from info@mydomain.c om. This is very unprofessional, isn't it?
      >
      So, here is the question, I don't have a mail server on mydomain.com,
      is there a work around to send mail and recipient would see that the
      email is from info@mydomain.c om?
      >
      Thank you.
      >
      >
      >

      Comment

      • gnewsgroup

        #4
        Re: Question about sending email in asp.net web application

        On Apr 8, 3:21 pm, "Juan T. Llibre" <nomailrepl...@ nowhere.comwrot e:
        Would setting up your Email domain through GoogleApps help ?
        >

        >
        Juan T. Llibre, asp.net MVP
        asp.net faq :http://asp.net.do/faq/
        foros de asp.net, en español :http://asp.net.do/foros/
        =============== =============== ========
        Well, I am already using the gmail apps with my own email domain like
        info@mydomain.c om. In other words, I log onto google's apps site and
        check my email. Although it is really gmail, but I have my own
        domain.

        But, I cannot authenticate my custom domain email against gmail smtp.
        It seems that one can get authenticated by gmail smtp only if he uses
        the explicit gmail (i.e. username@gmail. com) credentials.

        Comment

        • gnewsgroup

          #5
          Re: Question about sending email in asp.net web application

          On Apr 8, 3:26 pm, Peter Bromberg [C# MVP]
          <pbromb...@yaho o.NoSpamMaam.co mwrote:
          I haven't tried using the ReplyTo property to see if that would help, but in
          a pinch you could always invite your "selves" to get their own unique gmail
          addresses and use the correct one for each.
          -- Peter
          Site:http://www.eggheadcafe.com
          UnBlog:http://petesbloggerama.blogspot.com
          Short Urls & more:http://ittyurl.net
          >

          Well, I did try the ReplyTo property. It helps in that when the user
          hits the Reply button, the ReplyTo email address will automatically
          jump to the To: field.

          But, still, the recipient can see that this email is from
          gnewsgroup@gmai l.com instead of info@mydomain.c om.

          Comment

          • gnewsgroup

            #6
            Re: Question about sending email in asp.net web application

            On Apr 8, 3:26 pm, Peter Bromberg [C# MVP]
            <pbromb...@yaho o.NoSpamMaam.co mwrote:
            I haven't tried using the ReplyTo property to see if that would help, but in
            a pinch you could always invite your "selves" to get their own unique gmail
            addresses and use the correct one for each.
            -- Peter
            Site:http://www.eggheadcafe.com
            UnBlog:http://petesbloggerama.blogspot.com
            Short Urls & more:http://ittyurl.net
            >
            OK, the thing is, I would like to let the user see that s/he received
            the email from info@mydomain.c om instead of someone@gmail.c om.

            How does the SMTP service that comes with IIS work? I tried it a long
            time ago, but it was not successful, and had to give it up.

            Comment

            • gnewsgroup

              #7
              Re: Question about sending email in asp.net web application

              On Apr 8, 4:11 pm, gnewsgroup <gnewsgr...@gma il.comwrote:
              On Apr 8, 3:26 pm, Peter Bromberg [C# MVP]
              >
              <pbromb...@yaho o.NoSpamMaam.co mwrote:
              I haven't tried using the ReplyTo property to see if that would help, but in
              a pinch you could always invite your "selves" to get their own unique gmail
              addresses and use the correct one for each.
              -- Peter
              Site:http://www.eggheadcafe.com
              UnBlog:http://petesbloggerama.blogspot.com
              Short Urls & more:http://ittyurl.net
              >
              Well, I did try the ReplyTo property. It helps in that when the user
              hits the Reply button, the ReplyTo email address will automatically
              jump to the To: field.
              >
              But, still, the recipient can see that this email is from
              gnewsgr...@gmai l.com instead of i...@mydomain.c om.
              Looks like SendMail for Windows can do that. 49 bucks a copy.

              Comment

              Working...