Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / April 2008

Tip: Looking for answers? Try searching our database.

Question about sending email in asp.net web application

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
gnewsgroup - 08 Apr 2008 18:24 GMT
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.From = new MailAddress("johndoe@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.com
feedback@mydomain.com

But, I cannot authenticate neither of these against gmail smtp server,
so I have to use gnewsgroup@gmail.com to get authenticated, but then,
recipients will see that my email is from gnewsgroup@gmail.com instead
of from info@mydomain.com.  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.com?

Thank you.
Juan T. Llibre - 08 Apr 2008 20:21 GMT
Would setting up your Email domain through GoogleApps help ?

http://www.google.com/a/help/intl/en/index.html

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/
======================================
>I am using Peter Bromberg's code to send email through gmail smtp
> service in my asp.net web application.  Thanks, Peter.
[quoted text clipped - 28 lines]
>
> Thank you.
gnewsgroup - 08 Apr 2008 21:09 GMT
> Would setting up your Email domain through GoogleApps help ?
>
[quoted text clipped - 4 lines]
> 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.com.  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.
DownlodComponent - 09 Apr 2008 15:23 GMT
Hello
i am using google applications and host my domain email with Gmail  .
I have a user name called support and i am able to authenticate and
send email .
Can you post your code including user name also  ?   Do not forget to
remove the password

http://www.codeexplore.com/
Make money writing articles

> > Would setting up your Email domain through GoogleApps help ?
>
[quoted text clipped - 13 lines]
> It seems that one can get authenticated by gmail smtp only if he uses
> the explicit gmail (i.e. usern...@gmail.com) credentials.
gnewsgroup - 09 Apr 2008 18:18 GMT
> Hello
> i am using google applications and host my domain email with Gmail  .
[quoted text clipped - 5 lines]
> http://www.codeexplore.com/
> Make money writing articles

Hey, that sounds exciting to me.  Please take a look at the code I use
at the following link.  I think it's nicer to for eye to put it on a
webpage instead of here at this newsgroup.

http://gnewsgroup.googlepages.com/sendemailviagmailsmtp

That's the code that works.  I haven't been able to succeed with my
custom domain email through smtp.gmail.com.  Please do share how you
had it work. Thanks a lot!
gnewsgroup - 09 Apr 2008 18:20 GMT
> Hello
> i am using google applications and host my domain email with Gmail  .
[quoted text clipped - 5 lines]
> http://www.codeexplore.com/
> Make money writing articles

One thing I need to add is that I am only use the free google apps, I
am not paying anything.  Don't know if this makes a difference.
Peter Bromberg [C# MVP] - 08 Apr 2008 20:26 GMT
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

> I am using Peter Bromberg's code to send email through gmail smtp
> service in my asp.net web application.  Thanks, Peter.
[quoted text clipped - 28 lines]
>
> Thank you.
gnewsgroup - 08 Apr 2008 21:11 GMT
On Apr 8, 3:26 pm, Peter Bromberg [C# MVP]
<pbromb...@yahoo.NoSpamMaam.com> wrote:
> 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
[quoted text clipped - 3 lines]
> 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@gmail.com instead of info@mydomain.com.
gnewsgroup - 08 Apr 2008 21:28 GMT
> On Apr 8, 3:26 pm, Peter Bromberg [C# MVP]
>
[quoted text clipped - 13 lines]
> But, still, the recipient can see that this email is from
> gnewsgr...@gmail.com instead of i...@mydomain.com.

Looks like SendMail for Windows can do that.  49 bucks a copy.
gnewsgroup - 08 Apr 2008 21:24 GMT
On Apr 8, 3:26 pm, Peter Bromberg [C# MVP]
<pbromb...@yahoo.NoSpamMaam.com> wrote:
> 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
[quoted text clipped - 3 lines]
> 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.com instead of someone@gmail.com.

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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.