Sending e-mails from web server to users (e-mails that don’ t have to be responded)

Hi,

 

I have an offer details page where user can send an e-mail to user who has published the offer. To send this e-mail, user has to fill a little form with its name, e-mail address, telephone number and message, after that click send button. Then with a little of ASP.NET code (using MailMessage() class) and querying the database, the e-mail is sent to user who has published the offer.     

 

My doubt or question is: How can I avoid that users who receives these e-mails from other users interested in his/her offer, responds or send e-mails to my server address instead of writing a new e-mail message and sending it to correct user’ s e-mail (which is in the message header)? Since these e-mails are sent from my server address.

 

I saw many times news letters and other automated e-mail communications from web sites that says: This e-mail was generated automatically, don’ t reply it. Or something like that. Have those servers some system to avoid replies? Which is the normal way to deal with server messages that they do not have to be responded?

 

Thank you


Cèsar
0
cesark
1/3/2006 7:26:22 PM
asp.net.getting-started 91979 articles. 4 followers. Follow

14 Replies
953 Views

Similar Articles

[PageSpeed] 55

cesark wrote:

This e-mail was generated automatically, don’ t reply it. Or something like that. Have those servers some system to avoid replies?

There is absolutely nothing one can do from stopping the user from hitting "reply", the text they add is simply saying: "if you reply, no one will get it", which:

cesark wrote:

Which is the normal way to deal with server messages that they do not have to be responded?

One way is to set the "from" address from an email account on the domain that:
(1) No one accesses
(2) Deletes the message immediately (better way)


"If you make it idiot proof, they'll build a better idiot"
0
MorningZ
1/3/2006 7:57:46 PM
For stuff like that, I use a sender address of no-reply@domain.com (where domain.com is replaced with your domain), or set the from address to a real address and change the reply-to email to the above.
Ryan Olshan
ASPInsider | Microsoft MVP, ASP.NET
http://ryanolshan.com

How to ask a question
0
StrongTypes
1/3/2006 8:51:12 PM

My doubt or question is: How can I avoid that users who receives these e-mails from other users interested in his/her offer, responds or send e-mails to my server address instead of writing a new e-mail message and sending it to correct user’ s e-mail (which is in the message header)? Since these e-mails are sent from my server address.

For that, insert the other user's email in the REPLY-TO header or even the FROM header.  Check the properties you can use on system.web.mail.

I saw many times news letters and other automated e-mail communications from web sites that says: This e-mail was generated automatically, don’ t reply it. Or something like that. Have those servers some system to avoid replies? Which is the normal way to deal with server messages that they do not have to be responded?

The impolite way is to use a non-existent but still valid email address.  The user gets a non-deliverable message in return.  A more polite method is to use an autoresponder address, which merely repeats the message that this is not an email address thta receives mail, and then might list valid contact information.

Jeff

 


Please: Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post solved your issue.
0
jeff
1/3/2006 10:07:09 PM

For that, insert the other user's email in the REPLY-TO header or even the FROM header.  Check the properties you can use on system.web.mail.

But can I really change the reply-to or FROM header?If so, this is not 'true' of who really sends the e-mail (my server).

The impolite way is to use a non-existent but still valid email address.  The user gets a non-deliverable message in return.  A more polite method is to use an autoresponder address, which merely repeats the message that this is not an email address thta receives mail, and then might list valid contact information.

That way is very interesting.. (the more polite way). This autoresponder functionality can be set easily with in simple Microsoft Outlook (client e-mail program) like mine? 

Thank you to all


Cèsar
0
cesark
1/3/2006 11:16:26 PM

>>For that, insert the other user's email in the REPLY-TO header or even the FROM header.  Check the properties you can use on system.web.mail.

>But can I really change the reply-to or FROM header?If so, this is not 'true' of who really sends the e-mail (my server).

The REPLY-TO is the proper place to make the change.  The FROM header won't matter though, the true sender is in the headers added by your SMTP server anyway.

> That way is very interesting.. (the more polite way). This autoresponder functionality can be set easily with in simple Microsoft Outlook (client e-mail program) like mine? 

It could, but normally you would use an autoresponder account.  That requires a server that can send autoresponses, not the basic SMTP server that ships with Windows.

Jeff

 


Please: Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post solved your issue.
0
jeff
1/4/2006 3:50:39 AM

Hi Jeff, and thanks.

Only to clarify things and to understand exactly your suggestion:

 

What do you mean exactly with ‘REPLY-TO header’? Do you mean the part of the header added by me ‘manually’ like in this example?

 

-Headers added by SMTP server-

From: my_server_address@my_domain.com

To: some_user@who_published_an_offer.com

CC:

Subject: Offer Messages - mydomain.com

 

-Headers added ‘manually’ in the e-mail body-

User Name: Frank Smith

Reply-To: user_who@sent_this_e_mail.com

Telephone: 555…

 

User message goes here… blah, blah, blah, ..

 

 

 

If so, if user wants to reply to Frank Smith he/she has to write a new message and copy the ‘Replay-To’ address to the new message? Or can I make the Replay-To address a link so that the user only has to click the e-mail address to replay, or something like that? (Now the Reply-To Address I added appears as plain text, it isn' t a link)

 

 

This is my code to send the e-mail:

 

  Dim E_mail As New MailMessage()

  E_mail.To = returned_e_mail.Parameters("@E_mail").Value

  E_mail.From =  """My Domain "" <user_messages@push.mydomain.com>"

  E_mail.Subject = "Offer Messages – mydomain.com"

  Dim myHeader As New StringBuilder

   If name.Text() <> "" Then

    myHeader.Append("User Name: " & name.Text() & Environment.NewLine)

   End If

   myHeader.Append("Reply-To: " & user_e_mail.Text() & Environment.NewLine)

   If telephone.Text() <> "" Then

    myHeader.Append("Telephone: " & telephone.Text() & Environment.NewLine)  

   End If

  E_mail.Body = myHeader.ToString() + Environment.NewLine + body_message.Text()

  E_mail.Priority = MailPriority.Normal

               

   try

    SmtpMail.SmtpServer = "smtp_adress"

            SmtpMail.Send(E_mail)

            message.Text() = "E-mail sent."

    catch exc as Exception        

        message.Text() = “Error."

   End Try                         

 


Cèsar
0
cesark
1/4/2006 9:06:20 AM

Why are you guys talking about chaning the "From header"?

If the email initally comes from an email address to where replies to go nowhere, then thats it!  no need to worry about manipulating headers or that jazz....

So you'd:
- Create an email account: no-reply@domain.com
- Create a processing rule that "any email coming in for no-reply gets deleted"
- Code your email so:
   mail.From = New EmailAddress("no-reply@domain.com", "UNMONITORED EMAIL ACCOUNT")

Done....


"If you make it idiot proof, they'll build a better idiot"
0
MorningZ
1/4/2006 10:43:22 AM

Dim myHeader As New StringBuilder
   If name.Text() <> "" Then 
    myHeader.Append("User Name: " & name.Text() & Environment.NewLine)
   End If
   myHeader.Append("Reply-To: " & user_e_mail.Text() & Environment.NewLine)
   If telephone.Text() <> "" Then
    myHeader.Append("Telephone: " & telephone.Text() & Environment.NewLine)   
   End If 
  E_mail.Body = myHeader.ToString() + Environment.NewLine + body_message.Text()

This doesn't create a header.  It adds what you need in headers into the body text.  Take a look at:

http://www.systemwebmail.com/faq/2.7.aspx

Take a look at the example code for other sections as well.

Jeff


Please: Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post solved your issue.
0
jeff
1/4/2006 3:35:21 PM
MorningZ wrote:

Why are you guys talking about chaning the "From header"?

If the email initally comes from an email address to where replies to go nowhere, then thats it!  no need to worry about manipulating headers or that jazz....

So you'd:
- Create an email account: no-reply@domain.com
- Create a processing rule that "any email coming in for no-reply gets deleted"
- Code your email so:
   mail.From = New EmailAddress("no-reply@domain.com", "UNMONITORED EMAIL ACCOUNT")

Done....

That's not all the original poster asked.  He also has email generated from an app that he wants the receiver of the email to reply to the user who generated the message, not the system itself.

Jeff


Please: Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post solved your issue.
0
jeff
1/4/2006 3:36:28 PM

Yeah, that’s very good!

I implemented this: (In bold)

 

Dim E_mail As New MailMessage()

  E_mail.To = returned_e_mail.Parameters("@E_mail").Value

  E_mail.From =  """My Domain "" <user_messages@push.mydomain.com>"

  E_mail.Subject = "Offer Messages – mydomain.com"

  Dim myHeader As New StringBuilder

   If name.Text() <> "" Then

    myHeader.Append("User Name: " & name.Text() & Environment.NewLine)

   End If

   myHeader.Append("E-mail: " & user_e_mail.Text() & Environment.NewLine)

   If telephone.Text() <> "" Then

    myHeader.Append("Telephone: " & telephone.Text() & Environment.NewLine)  

   End If

  E_mail.Body = myHeader.ToString() + Environment.NewLine + body_message.Text()

  E_mail.Headers.Add("Reply-To", "" & user_e_mail.Text() & "")

  E_mail.Priority = MailPriority.Normal

               

   try

    SmtpMail.SmtpServer = "smtp_adress"

            SmtpMail.Send(E_mail)

            message.Text() = "E-mail sent."

    catch exc as Exception        

        message.Text() = “Error."

   End Try                         

 

I also need to write some user information about user who sent the e-mail (as you saw: User Name, E-mail and Telephone), so that who receives the e-mail sees at a first glance some friendly and contact information about the sender. I though that a good place for that would be at the top of the body message. What do you think about this? Is the system I use (StringBuilder class) the best way to do it? Now I have a problem with ‘User Name’ and ‘E-mail’, which appears in one only string instead of as a list, the information appears thus:

 

User Name: Frank Smith E-mail: user_who@sent_this_e_mail.com

Telephone: 555…

 

And here the message body.

 

And it must be:

User Name: Frank Smith

E-mail: user_who@sent_this_e_mail.com

Telephone: 555…

 

And here the message body.


Cèsar
0
cesark
1/4/2006 5:38:10 PM

Hey Jeff, now it works, and I don' t know why...

Thank you very much for all your aid!


Cèsar
0
cesark
1/4/2006 9:43:28 PM

You need to build in returns with both a HTML <br> and a VbCrLf to ensure mail clients will see it whether it's HTML or text.

Jeff


Please: Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post solved your issue.
0
jeff
1/5/2006 12:26:32 PM

Most probably you are right, but I don’ t know how to add Html ‘<br>’ spaces in the e-mail body with my current code. And by the way, what is ‘VbCrLf’? Now my built e-mail is in text format, isn’ t it? And all the e-mail clients will see it, won’ t it?

 

Do you know some free article or reference about this matter?

 

Thanks

 


Cèsar
0
cesark
1/5/2006 3:57:00 PM

If you're not sending HTML messages, don't worry about the <br>.  VbCrLf is a Visual Basic Carriage Return and Line Feed.  /n in the C# world.

Jeff


Please: Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post solved your issue.
0
jeff
1/5/2006 6:49:42 PM
Reply:

Similar Artilces:

Why do Sending SMTP Authenticated E-mail succeed using SmtpMail.Send() function but fail using SmtpClient.send() function ? Bugs in System.Net.Mail.SmtpClient when send a Authenticated E-mail?
I click btnOK button, the email can send OK, but click btnFail button,  the following error is displayed! why ? you can test the section code. The SMTP, username, password are valid!  Many thanks! "Syntax error, command unrecognized. The server response was: authentication failed,decode user password error" I have tested some other SMTP, somes is OK. I think there are some bugs with System.Net.Mail.SmtpClient when send a Authenticated E-mail with some SMTP!   //------------------------------------------.ASPX Code----------------------------------------...

Integrated E-Mail Client: Send and Receive plaintext E-Mails next to encrypted E-Mails
<DIV style="font-family:Arial, sans-serif; font-size:10pt;">Integrated E-Mail Client: Send and Receive plaintext E-Mails next to encrypted E-Mails<BR>https://twitter.com/GoldBugIM/status/559122664800133120<BR><BR>At least it is an open source solution and not proprietary like<BR>https://www.scryptguard.de/scryptguard-email-verschluesselung/<BR><BR>Does this work with Tor?<BR>Regards John<BR><BR>&nbsp;<BR><HR>Are you a Techie? Get Your Free Tech Email Address Now! Visit http://www.TechEmail.com</DIV> ...

I can,t get my e-mail, what is it, I point and push e-mail nothing comes up.
Name: vivian linahen Email: vivianatmycomspandotcom Product: Firefox Summary: I can,t get my e-mail, what is it, I point and push e-mail nothing comes up. Comments: I used my e-mail yesterday, now it will not come up what gives? Browser Details: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.7) Gecko/20070914 Firefox/2.0.0.7 ...

an e-mail send from my e-mail address to myself?
today i'm received an e-mail send from my own e-mail address with an attachment ( *.z ), but not send by me. how come this can happen. i'm only using online web e-mail service. Virus scan result show me this message : Virus scanning not supported for this type of file.  what is your opinion?Thanks & Regards--"Don't just always label good or bad about something, always have something is invisible from nude eyesight. " You've been spoofed. If you don't know how this can happen, what are you doing here? Seriously, delete it, why even worry about it? War doesn't determine who is rig...

moving archive e-mails from one user to another users e-mail
I have two user one person has a lot of archived e-mails which the other person needs. I would like to avoid forwarding 800 or more emails to this person. Is there a way to move the c:\email\archive\*.* folders from one user to the other uses hard drive and bring up the data as archive information or the like. If you have an idea that will help. Thank you, John johneddy.fonseca@state.tn.us wrote: >I have two user one person has a lot of archived e-mails which the other >person needs. I would like to avoid forwarding 800 or more emails to this >...

Send HTML e-mail or text e-mail
I'd like to send a user an HTML e-mail if they are capable of it, but if not, send them a text e-mail.  How can I do this? Hi,  I don't think there is a way to detect this.  The mail server doesn't care if it is html or text.  It is the client that usually limits if it can read html or text.  Here's a link for sending both a html and text version http://dotnetdud.blogspot.com/2008/05/create-html-message-with-embedded.html I hope this helpsMike Douglasblog - http://www.CodeSmartNotHard.comWebSite - http://www.DOITConsultants.com...

Can I block all e-mails coming into a user but only allow one account e-mail the user?
Not sure is possible, but I was asked by an administrator. Jon Street Network Administrator Greater Johnstown School District CNE, ASE, CCA, A+ 518-762-5972 I also need to block all outgoing from same user. I only want him to receive mail from only one user. Jon Street Network Administrator Greater Johnstown School District CNE, ASE, CCA, A+ 518-762-5972 On Mon, 17 Mar 2008 19:20:03 +0000, Jon Street wrote: > Not sure is possible, but I was asked by an administrator. You can block incoming and/or outgoing Internet messages for a user by using the class of service ...

.net 2 beta 2 - System.Net.Mail
Hi guysI'm using the System.Net.Mail namespace in .net version 2, beta 2, to send out some HTML formatted e-mails.However, for some reason when the e-mail are sent out some of the full stops from the e-mail are removed.For example, part of the e-mail contains this code<img src="http://www.avonandsomerset.police.uk/images/grey_box_bottom.gif" alt="">But this is what the code is like when the e-mail source code is viewed<img src="http://www.avonandsomerset.police.uk/images/grey_box_bottomgif" alt="">Is this a known bug in beta 2? If so, where can I view a list of known bugs an...

Someone using my e-mail address to send me e-mail
I use Outlook Express and I am getting spam e-mails sent to my hotmail e-mail address from what appears to be my own e-mail address. If I put in a rule blocking my own e-mail address I won't get any mail. Does anyone know how to block spam e-mail when spamers use your own e-mail address in the From: area to send you spam. Occasionally I blind copy myself to save a copy of my e-mail so I can't block myself solely on my e-mail address. Is there a way to block messages using the From: field in conjunction with an IP address that is not mine? Hope I described this problem corre...

Internet E-mail going out from account that is not sending e-mail
I have a user that we are seeing approx 15 e-mails an hour trying to go out to the internet even though she is not sending these messages. Her computer was turned off and I blocked all internet e-mail usage on the GWIA for her account. If I try to send a message to the internet from her account I get access denied message so I know the block on the GWia is working. They are all going to the same address externally. This is a Groupwise 6.5 sp2 system. Any suggestions? Look for pktscan102 @ support.novell.com Launch it @ the gwia-server, and look @ the tracefile with eth...

Primary/Main e-mail address and additional e-mail address during composing e-mails in SM2...
Hi! Some of my addressbooks have two e-mail addresses for the same contact/person. In v1.1.18, I would type in a name and SM would show me both names to pick. In v2, it doesn't let me pick and always use the primary/main one. How can I make this behavior happen in v2 like in v1.1.18? Thank you in advance. :) -- "Ladies and gentlemen, hoboes and tramps...Crosseyed Mosquitoes and bow-legged ants...I've come to tell you the story..." --Bob Holman /\___/\ / /\ /\ \ Phil/Ant @ http://antfarm.ma.cx (Personal Web Site) | |o o| | Ant's Qua...

Send e-mail without the sender beeing an e-mail address
Hello, Is it possible to send an e-mail using the System.Net.Mail.MailMessage and the sender not beeing an e-mail address but just a string? When I try do to so I get the following error: The specified string is not in the form required for an e-mail address Is it possible to set the sender's name besides it's e-mail address so that this is what will be diplayed? Thank you got that, thanks ias0nas, The from address must be a valid email address, so it must contain an @.  However, if you create a MailAddress object, you'll see that the constructor accepts a Display Name.  ...

e-mail:) i try to send e-mail but i have problem :) help me pls
hi friends i want to send e-mail from my web site that work on my computer. i have no domain and hostname.. there is error message at code line smtp.send (mail).. i have added system.net in add reference of web site menu and i have wrote code below.. should i install a file related to smtp or install dll file ? how can i do this ? or what is problem ? if this code run my computer, will this code run on domain or host ?    i wait for your help. best regards :) Imports System.Net.MailPartial Class _Default Inherits System.Web.UI.PageProtected Sub Page_Load(ByVal sender As ...

How to send an e-mail based on e-mail address in a column in gridview?
 I have created a gridview that calls a stored proc, the gridview returns 9 columns, in column 5 the e-mail addressesof customers are stored, I would like to be able when you select a row from the gridview and by clicking on a button ora hyperlink that my mail client starts together with the e-mail address that is stored in column 5.Can anybody pleese give me some hints or help on how to accomplish this?Many thanks.    rik b Clean solution would be to use a ItemTemplate column and within that use a LinkButton that's databound to your email field.  Edited to say...

Web resources about - Sending e-mails from web server to users (e-mails that don’ t have to be responded) - asp.net.getting-started

How Facebook Responded To ‘Craigslist Killer’ Subpoena
Have you ever wondered exactly what information Facebook turns over when complying with a request from law enforcement? The Boston Phoenix obtained ...

Politics of the Day: How the Internet Responded to Hillary Clinton’s Campaign Announcement
Hillary Clinton finally made her big announcement on Sunday, and it turns out she isn’t releasing a new line of pant suits after all, she is ...

Amy Schumer could have responded better to claims of 'lazy' racism
In her strong respones, Schumer unwittingly models herself on the men is is supposed to be different from.

Looking back, I wish I responded to more of her texts. Maybe then she wouldn't have been gay the whole ...
I'll never forget her parting words to me: “I'm gay. I have always been and that's why we’ve never had sex”. I just think maybe if I had been ...

How Australia responded to Europe's refugee crisis 66 years ago
First published in&nbsp;The Sydney Morning Herald&nbsp;on March 15, 1949


Tim Cook responded to Apple Store staff complaints about bag check policy, asking execs “Is this true?” ...
... Check out 9to5Mac for more breaking coverage of AAPL Company , Apple Store , and Apple Inc . What do you think? Discuss "Tim Cook responded ...

What Happened When A Scorpio Responded To The ‘No Scorpios’ Job Listing?
A brave Scorpio stands up for his rights in the face of anti-Scorpio bigotry.

Chris Brown Accused Of Battery In Las Vegas; Has Not Responded To Police
Singer Chris Brown faces another battery accusation just days after he performed at an after-party to the weekend's much hyped boxing match, ...

How Under Armour Responded to Its Biggest PR Crisis
Under Armour in its 18 years has had to deal with crisis communications from time to time. But earlier this year, it faced its biggest communications ...

Resources last updated: 12/6/2015 2:12:24 PM