Connecting Tech Pros Worldwide Forums | Help | Site Map

Question about sending email in asp.net web application

gnewsgroup
Guest
 
Posts: n/a
#1: Apr 8 '08
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
Guest
 
Posts: n/a
#2: Apr 8 '08

re: Question about sending email in asp.net web application


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/
======================================
"gnewsgroup" <gnewsgroup@gmail.comwrote in message
news:8a6995d8-7933-4d4d-89b9-fc6e1024a29d@z38g2000hsc.googlegroups.com...
Quote:
>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.
>
>

=?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
Guest
 
Posts: n/a
#3: Apr 8 '08

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:
Quote:
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.
>
>
>
gnewsgroup
Guest
 
Posts: n/a
#4: Apr 8 '08

re: Question about sending email in asp.net web application


On Apr 8, 3:21 pm, "Juan T. Llibre" <nomailrepl...@nowhere.comwrote:
Quote:
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/
======================================
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.
gnewsgroup
Guest
 
Posts: n/a
#5: Apr 8 '08

re: Question about sending email in asp.net web application


On Apr 8, 3:26 pm, Peter Bromberg [C# MVP]
<pbromb...@yahoo.NoSpamMaam.comwrote:
Quote:
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@gmail.com instead of info@mydomain.com.
gnewsgroup
Guest
 
Posts: n/a
#6: Apr 8 '08

re: Question about sending email in asp.net web application


On Apr 8, 3:26 pm, Peter Bromberg [C# MVP]
<pbromb...@yahoo.NoSpamMaam.comwrote:
Quote:
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.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.
gnewsgroup
Guest
 
Posts: n/a
#7: Apr 8 '08

re: Question about sending email in asp.net web application


On Apr 8, 4:11 pm, gnewsgroup <gnewsgr...@gmail.comwrote:
Quote:
On Apr 8, 3:26 pm, Peter Bromberg [C# MVP]
>
<pbromb...@yahoo.NoSpamMaam.comwrote:
Quote:
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...@gmail.com instead of i...@mydomain.com.
Looks like SendMail for Windows can do that. 49 bucks a copy.
Closed Thread