473,785 Members | 2,618 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP / Send Mail Question

I am having an e-mail being sent from a form submitting on a web page.

Right now, it is just a generic name (not a valid e-mail address) in the
Mail From box. "Web Server Request". How can I add a reply to piece to
this, so when a user clicks on Reply, it sends it to a valid e-mail address.

Thank you


Jul 19 '05 #1
9 1687
Assign the .From a valid address.
--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"dthmtlgod" <dt*******@yaho o.com> wrote in message
news:O1******** *****@TK2MSFTNG P11.phx.gbl...
I am having an e-mail being sent from a form submitting on a web page.

Right now, it is just a generic name (not a valid e-mail address) in the
Mail From box. "Web Server Request". How can I add a reply to piece to
this, so when a user clicks on Reply, it sends it to a valid e-mail
address.

Thank you

Jul 19 '05 #2
What mail component are you using?

Ray at work

"dthmtlgod" <dt*******@yaho o.com> wrote in message
news:O1******** *****@TK2MSFTNG P11.phx.gbl...
I am having an e-mail being sent from a form submitting on a web page.

Right now, it is just a generic name (not a valid e-mail address) in the
Mail From box. "Web Server Request". How can I add a reply to piece to
this, so when a user clicks on Reply, it sends it to a valid e-mail
address.

Thank you

Jul 19 '05 #3
CDONTS. .
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:Ob******** *****@TK2MSFTNG P12.phx.gbl...
What mail component are you using?

Ray at work

"dthmtlgod" <dt*******@yaho o.com> wrote in message
news:O1******** *****@TK2MSFTNG P11.phx.gbl...
I am having an e-mail being sent from a form submitting on a web page.

Right now, it is just a generic name (not a valid e-mail address) in the
Mail From box. "Web Server Request". How can I add a reply to piece to
this, so when a user clicks on Reply, it sends it to a valid e-mail
address.

Thank you


Jul 19 '05 #4
Are you on an NT server? If not, you should be using CDO instead of CDONTS.
http://www.aspfaq.com/show.asp?id=2026 But, either way, you can set the
..From field as Curt suggested or set the Reply-To address of either mail
object.

CDONTS:

oYourCDONTSMail Object.Value("R eply-To") = "so*****@somewh ere.kom"

CDO:

oYourCDOMailObj ect.ReplyTo = "so*****@somewh ere.kom"

Ray at work

"dthmtlgod" <dt*******@yaho o.com> wrote in message
news:%2******** *******@TK2MSFT NGP12.phx.gbl.. .
CDONTS. .
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:Ob******** *****@TK2MSFTNG P12.phx.gbl...
What mail component are you using?

Ray at work

"dthmtlgod" <dt*******@yaho o.com> wrote in message
news:O1******** *****@TK2MSFTNG P11.phx.gbl...
>I am having an e-mail being sent from a form submitting on a web page.
>
> Right now, it is just a generic name (not a valid e-mail address) in
> the
> Mail From box. "Web Server Request". How can I add a reply to piece
> to
> this, so when a user clicks on Reply, it sends it to a valid e-mail
> address.
>
> Thank you
>
>
>
>



Jul 19 '05 #5
Thanks

"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:eT******** ******@TK2MSFTN GP12.phx.gbl...
Are you on an NT server? If not, you should be using CDO instead of CDONTS. http://www.aspfaq.com/show.asp?id=2026 But, either way, you can set the
.From field as Curt suggested or set the Reply-To address of either mail
object.

CDONTS:

oYourCDONTSMail Object.Value("R eply-To") = "so*****@somewh ere.kom"

CDO:

oYourCDOMailObj ect.ReplyTo = "so*****@somewh ere.kom"

Ray at work

"dthmtlgod" <dt*******@yaho o.com> wrote in message
news:%2******** *******@TK2MSFT NGP12.phx.gbl.. .
CDONTS. .
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:Ob******** *****@TK2MSFTNG P12.phx.gbl...
What mail component are you using?

Ray at work

"dthmtlgod" <dt*******@yaho o.com> wrote in message
news:O1******** *****@TK2MSFTNG P11.phx.gbl...
>I am having an e-mail being sent from a form submitting on a web page.
>
> Right now, it is just a generic name (not a valid e-mail address) in
> the
> Mail From box. "Web Server Request". How can I add a reply to piece
> to
> this, so when a user clicks on Reply, it sends it to a valid e-mail
> address.
>
> Thank you
>
>
>
>



Jul 19 '05 #6
Ray, so should this work? The replyto isn't taking. Message does send OK.

<!--
METADATA
TYPE="typelib"
UUID="CD000000-8B95-11D1-82DB-00C04FB1625D"
NAME="CDO for Windows 2000 Library"
-->
<%
Set cdoConfig = CreateObject("C DO.Configuratio n")

With cdoConfig.Field s
.Item(cdoSendUs ingMethod) = cdoSendUsingPor t
.Item(cdoSMTPSe rver) = "EXCSERV01"
.Update
End With

Set cdoMessage = CreateObject("C DO.Message")
With cdoMessage
Set .Configuration = cdoConfig
.From = "Automation_Ser ver"
.To = "va***@hfd. com"
.Subject = "Sample CDO Message"
.TextBody = "This is a test for CDO.message"
.Replyto = "Sy******@haywe ed.com"
.Send
End With
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:eT******** ******@TK2MSFTN GP12.phx.gbl...
Are you on an NT server? If not, you should be using CDO instead of CDONTS. http://www.aspfaq.com/show.asp?id=2026 But, either way, you can set the
.From field as Curt suggested or set the Reply-To address of either mail
object.

CDONTS:

oYourCDONTSMail Object.Value("R eply-To") = "so*****@somewh ere.kom"

CDO:

oYourCDOMailObj ect.ReplyTo = "so*****@somewh ere.kom"

Ray at work

"dthmtlgod" <dt*******@yaho o.com> wrote in message
news:%2******** *******@TK2MSFT NGP12.phx.gbl.. .
CDONTS. .
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:Ob******** *****@TK2MSFTNG P12.phx.gbl...
What mail component are you using?

Ray at work

"dthmtlgod" <dt*******@yaho o.com> wrote in message
news:O1******** *****@TK2MSFTNG P11.phx.gbl...
>I am having an e-mail being sent from a form submitting on a web page.
>
> Right now, it is just a generic name (not a valid e-mail address) in
> the
> Mail From box. "Web Server Request". How can I add a reply to piece
> to
> this, so when a user clicks on Reply, it sends it to a valid e-mail
> address.
>
> Thank you
>
>
>
>



Jul 19 '05 #7
Put the valid e-mail address in the .From not the .ReplyTo

--
http://www.aspfaq.com/
(Reverse address to reply.)


"dthmtlgod" <dv******@twcny .rr.com> wrote in message
news:eA******** ******@TK2MSFTN GP09.phx.gbl...
Ray, so should this work? The replyto isn't taking. Message does send OK.
<!--
METADATA
TYPE="typelib"
UUID="CD000000-8B95-11D1-82DB-00C04FB1625D"
NAME="CDO for Windows 2000 Library"
-->
<%
Set cdoConfig = CreateObject("C DO.Configuratio n")

With cdoConfig.Field s
.Item(cdoSendUs ingMethod) = cdoSendUsingPor t
.Item(cdoSMTPSe rver) = "EXCSERV01"
.Update
End With

Set cdoMessage = CreateObject("C DO.Message")
With cdoMessage
Set .Configuration = cdoConfig
.From = "Automation_Ser ver"
.To = "va***@hfd. com"
.Subject = "Sample CDO Message"
.TextBody = "This is a test for CDO.message"
.Replyto = "Sy******@haywe ed.com"
.Send
End With
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:eT******** ******@TK2MSFTN GP12.phx.gbl...
Are you on an NT server? If not, you should be using CDO instead of

CDONTS.
http://www.aspfaq.com/show.asp?id=2026 But, either way, you can set the
.From field as Curt suggested or set the Reply-To address of either mail
object.

CDONTS:

oYourCDONTSMail Object.Value("R eply-To") = "so*****@somewh ere.kom"

CDO:

oYourCDOMailObj ect.ReplyTo = "so*****@somewh ere.kom"

Ray at work

"dthmtlgod" <dt*******@yaho o.com> wrote in message
news:%2******** *******@TK2MSFT NGP12.phx.gbl.. .
CDONTS. .
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in message news:Ob******** *****@TK2MSFTNG P12.phx.gbl...
> What mail component are you using?
>
> Ray at work
>
> "dthmtlgod" <dt*******@yaho o.com> wrote in message
> news:O1******** *****@TK2MSFTNG P11.phx.gbl...
> >I am having an e-mail being sent from a form submitting on a web page.> >
> > Right now, it is just a generic name (not a valid e-mail address) in> > the
> > Mail From box. "Web Server Request". How can I add a reply to piece> > to
> > this, so when a user clicks on Reply, it sends it to a valid e-mail
> > address.
> >
> > Thank you
> >
> >
> >
> >
>
>



Jul 19 '05 #8
What "isn't taking" about it? If you receive the message, then your ASP
code should be fine. Are you saying that when you reply to the message, it
is not addressed to your reply-to account? Are both of those e-mail
accounts defined in your Exchange server? What I mean is that where I am, I
have multiple e-mail SMTP e-mail addresses setup for myself on my Exchange
server. So, if I set a reply-to address to be one of my alternate e-mail
accounts, Outlook will still resolve that address to be "Costanzo, Ray" when
I go to reply. To test accurately, I'd have to set a reply-to address of
so*****@someoth erdomain.kom.

Ray at work

"dthmtlgod" <dv******@twcny .rr.com> wrote in message
news:eA******** ******@TK2MSFTN GP09.phx.gbl...
Ray, so should this work? The replyto isn't taking. Message does send
OK.

<!--
METADATA
TYPE="typelib"
UUID="CD000000-8B95-11D1-82DB-00C04FB1625D"
NAME="CDO for Windows 2000 Library"
-->
<%
Set cdoConfig = CreateObject("C DO.Configuratio n")

With cdoConfig.Field s
.Item(cdoSendUs ingMethod) = cdoSendUsingPor t
.Item(cdoSMTPSe rver) = "EXCSERV01"
.Update
End With

Set cdoMessage = CreateObject("C DO.Message")
With cdoMessage
Set .Configuration = cdoConfig
.From = "Automation_Ser ver"
.To = "va***@hfd. com"
.Subject = "Sample CDO Message"
.TextBody = "This is a test for CDO.message"
.Replyto = "Sy******@haywe ed.com"
.Send
End With
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:eT******** ******@TK2MSFTN GP12.phx.gbl...
Are you on an NT server? If not, you should be using CDO instead of

CDONTS.
http://www.aspfaq.com/show.asp?id=2026 But, either way, you can set the
.From field as Curt suggested or set the Reply-To address of either mail
object.

CDONTS:

oYourCDONTSMail Object.Value("R eply-To") = "so*****@somewh ere.kom"

CDO:

oYourCDOMailObj ect.ReplyTo = "so*****@somewh ere.kom"

Ray at work

"dthmtlgod" <dt*******@yaho o.com> wrote in message
news:%2******** *******@TK2MSFT NGP12.phx.gbl.. .
> CDONTS. .
>
>
> "Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
> message news:Ob******** *****@TK2MSFTNG P12.phx.gbl...
>> What mail component are you using?
>>
>> Ray at work
>>
>> "dthmtlgod" <dt*******@yaho o.com> wrote in message
>> news:O1******** *****@TK2MSFTNG P11.phx.gbl...
>> >I am having an e-mail being sent from a form submitting on a web
>> >page.
>> >
>> > Right now, it is just a generic name (not a valid e-mail address) in
>> > the
>> > Mail From box. "Web Server Request". How can I add a reply to
>> > piece
>> > to
>> > this, so when a user clicks on Reply, it sends it to a valid e-mail
>> > address.
>> >
>> > Thank you
>> >
>> >
>> >
>> >
>>
>>
>
>



Jul 19 '05 #9
That I did not catch.

Yes, in order for the SMTP server to be willing to send your message, at
least as far as MS SMTP, you need a valid .From address. You can do that as
"Automation Server <va***@address. kom>" if you still want the "Automation
Server" to appear as the name.

The .ReplyTo is only necessary if you want the .From not to be the .ReplyTo.
If .ReplyTo is not specified, .From is what will be replied to.

Ray at work

"Aaron [SQL Server MVP]" <te*****@dnartr eb.noraa> wrote in message
news:OS******** ******@TK2MSFTN GP12.phx.gbl...
Put the valid e-mail address in the .From not the .ReplyTo

--
http://www.aspfaq.com/
(Reverse address to reply.)


"dthmtlgod" <dv******@twcny .rr.com> wrote in message
news:eA******** ******@TK2MSFTN GP09.phx.gbl...
Ray, so should this work? The replyto isn't taking. Message does send

OK.

<!--
METADATA
TYPE="typelib"
UUID="CD000000-8B95-11D1-82DB-00C04FB1625D"
NAME="CDO for Windows 2000 Library"
-->
<%
Set cdoConfig = CreateObject("C DO.Configuratio n")

With cdoConfig.Field s
.Item(cdoSendUs ingMethod) = cdoSendUsingPor t
.Item(cdoSMTPSe rver) = "EXCSERV01"
.Update
End With

Set cdoMessage = CreateObject("C DO.Message")
With cdoMessage
Set .Configuration = cdoConfig
.From = "Automation_Ser ver"
.To = "va***@hfd. com"
.Subject = "Sample CDO Message"
.TextBody = "This is a test for CDO.message"
.Replyto = "Sy******@haywe ed.com"
.Send
End With
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:eT******** ******@TK2MSFTN GP12.phx.gbl...
> Are you on an NT server? If not, you should be using CDO instead of

CDONTS.
> http://www.aspfaq.com/show.asp?id=2026 But, either way, you can set
> the
> .From field as Curt suggested or set the Reply-To address of either
> mail
> object.
>
> CDONTS:
>
> oYourCDONTSMail Object.Value("R eply-To") = "so*****@somewh ere.kom"
>
> CDO:
>
> oYourCDOMailObj ect.ReplyTo = "so*****@somewh ere.kom"
>
> Ray at work
>
>
>
> "dthmtlgod" <dt*******@yaho o.com> wrote in message
> news:%2******** *******@TK2MSFT NGP12.phx.gbl.. .
> > CDONTS. .
> >
> >
> > "Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in > > message news:Ob******** *****@TK2MSFTNG P12.phx.gbl...
> >> What mail component are you using?
> >>
> >> Ray at work
> >>
> >> "dthmtlgod" <dt*******@yaho o.com> wrote in message
> >> news:O1******** *****@TK2MSFTNG P11.phx.gbl...
> >> >I am having an e-mail being sent from a form submitting on a web page. > >> >
> >> > Right now, it is just a generic name (not a valid e-mail address) in > >> > the
> >> > Mail From box. "Web Server Request". How can I add a reply to piece > >> > to
> >> > this, so when a user clicks on Reply, it sends it to a valid
> >> > e-mail
> >> > address.
> >> >
> >> > Thank you
> >> >
> >> >
> >> >
> >> >
> >>
> >>
> >
> >
>
>



Jul 19 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
3097
by: Tom Petersen | last post by:
Ok, I'm 99.9999999999999999999% sure there haven't been any code changes, since the date stamps of the code are older than any email 'failures' The email piece quit working using the mail.send. If there haven't been any changes made to previously working code, where do I look for the problem now? I restarted the SMTPservice in IIS. Our real email is hosted remotely, I checked with the admin and she said no changes were made, i.e., not...
3
3350
by: Erik T. Nomad | last post by:
I've created a link that will enable the reader of any page on my website to click it, enter an e-mail address, and have it arrive in that inbox with a hyperlink to the site. However, I'm wondering if there's a way to customize it further, such that the hyperlink they are sent is the web address of the page the "send to friend" link was on. I don't want to convert my entire site over to .asp, so having a pop-up .asp page seems to make...
3
3036
by: RN | last post by:
I am tired of sending mail from the built-in SMTP service for so many reasons (errors are nondescriptive in the event log, it doesn't let me control which IP address it sends from, and it identifies itself as the computer name which is not in domain.com format, triggering spam filter problems). Instead, I want to have my code send through an SMTP server of a company that we pay for mail service. But they require a username and password....
1
1306
by: alexmaster_2004 | last post by:
Hi There i'm using System.Web.Mail to send email message. but i have a problem with it. the emails that i send is in Turkish Language. so when i send the email the receipt can't be able to raed the message. i have tried to use the BodyEncoding property of the MailMessage class but it didn't make any changes(mainly it made it worst). So i want to know how i make it possible to send this mail in Turkish. Thanks
2
3501
by: Ryan | last post by:
Hi, I receive an access denied error (see below) when attempting to send an email with BodyFormat=MailFormat.Html from an asp.net page. Exactly the same code works fine in a console application, and also succeeds from the asp.net page with BodyFormat=MailFormat.Text. I've recently upgraded from W2K SP4 to WinXP SP2 and am using .Net Framework v1.1 SP1. The code worked fine under W2K SP4.
2
2962
by: Cimento Cola | last post by:
Hello all. Hope anyone can help me! I have this form, with: Please choose your file: (browse) The main purpose is the user to select a local file and then when he submits a mail should be sent with that doc as attachment! When the user submits i have a new asp from where the mail is sent. I´ve
3
5412
by: Frank | last post by:
I am attempting to develop a solution where I handle bounced e-mails. I wish to field all bounced emails in a custom email account such a bounced@mycompany.com From the aricle at http://www.systemwebmail.com/faq/2.7.aspx, I gather I could use: mail.Headers.Add( "Reply-To", "alternate_email@mycompany.com" ); When I test this from a test web app, I don't seem to field a bounced email
0
2410
by: howardr101 | last post by:
Hi, Have hunted around on the groups and can't find anything, hence. I've tried this against 2 mail servers (mailtraq and hmailserver) and it occus with both. The problems seems to be that when the SMTPClient attaches to the server and the server sends it greeting message, if anything other than +OK is received by the client it throws an exception and falls over.
5
4100
by: pat | last post by:
Hi, i'am using an ac2K progrom which sends automaticle emails with an attachment. Since last week , a error occurs with number 2293. Our mail program is Outlook 2003. It's probably a matter of safety in outlook, but i didn't saw an answer to prevent this error on theweb. Where can i configure the safetyitem that Outlook sees the mail not langer
3
3466
by: Prasad | last post by:
Hi all, I had to write a page in ASP which sends an email. I googled and was able to write the following code: <html> <body> <% Set Mail = Server.CreateObject("CDONTS.NewMail") Mail.To = "XXXXXXXXXXXX@XXXXXX.COM"
0
9645
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9481
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10341
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10095
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7502
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6741
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5513
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4054
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2881
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.