I have a database application that is submitted to an Access database. What
I want is when the form is submitted to automatically send an email to
multiple persons with the info from the form. This could be as an
attachement or plain text. I wouldn't care if it was like the mailto. I'm
clueless on how to do this.
Any help would be greatly appreciated. 6 2819
Look at the System.Web.Mail namespace
it's pretty easy, check out: http://www.aspheute.com/english/20000918.asp
basically create a new MailMessage, set all the properties (To, From,
Subject, Body) and use the Attachments.Add to point to the file to attach.
before doing a SmtpMail.Send though, you might need to do
SmtpMail.SmtpServer ="SMTP_SERVER_ADDRESS"
I think by default it looks for an smtp server on the same machine as your
web site, which is probably what you want.
Karl
--
MY ASP.Net tutorials http://www.openmymind.net/
"havenoclue" <ha********@discussions.microsoft.com> wrote in message
news:69**********************************@microsof t.com... I have a database application that is submitted to an Access database. What I want is when the form is submitted to automatically send an email to multiple persons with the info from the form. This could be as an attachement or plain text. I wouldn't care if it was like the mailto. I'm clueless on how to do this. Any help would be greatly appreciated.
Thanks for your quick response karl.
Forgive me but I'm new to this stuff. I've looked at this before and didn't
really know how to implement this code. Is this from the CodeBehind or the
html
output?
"Karl Seguin" wrote: Look at the System.Web.Mail namespace
it's pretty easy, check out: http://www.aspheute.com/english/20000918.asp
basically create a new MailMessage, set all the properties (To, From, Subject, Body) and use the Attachments.Add to point to the file to attach.
before doing a SmtpMail.Send though, you might need to do SmtpMail.SmtpServer ="SMTP_SERVER_ADDRESS"
I think by default it looks for an smtp server on the same machine as your web site, which is probably what you want.
Karl
-- MY ASP.Net tutorials http://www.openmymind.net/ "havenoclue" <ha********@discussions.microsoft.com> wrote in message news:69**********************************@microsof t.com...I have a database application that is submitted to an Access database. What I want is when the form is submitted to automatically send an email to multiple persons with the info from the form. This could be as an attachement or plain text. I wouldn't care if it was like the mailto. I'm clueless on how to do this. Any help would be greatly appreciated.
that sample is in the HTML view, but you can easily do this from the
codebehind in the button click event
--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com
"havenoclue" wrote: Thanks for your quick response karl. Forgive me but I'm new to this stuff. I've looked at this before and didn't really know how to implement this code. Is this from the CodeBehind or the html output?
"Karl Seguin" wrote:
Look at the System.Web.Mail namespace
it's pretty easy, check out: http://www.aspheute.com/english/20000918.asp
basically create a new MailMessage, set all the properties (To, From, Subject, Body) and use the Attachments.Add to point to the file to attach.
before doing a SmtpMail.Send though, you might need to do SmtpMail.SmtpServer ="SMTP_SERVER_ADDRESS"
I think by default it looks for an smtp server on the same machine as your web site, which is probably what you want.
Karl
-- MY ASP.Net tutorials http://www.openmymind.net/ "havenoclue" <ha********@discussions.microsoft.com> wrote in message news:69**********************************@microsof t.com...I have a database application that is submitted to an Access database. What I want is when the form is submitted to automatically send an email to multiple persons with the info from the form. This could be as an attachement or plain text. I wouldn't care if it was like the mailto. I'm clueless on how to do this. Any help would be greatly appreciated.
I tried the code behind and got
COMException (0x80040213): The transport failed to connect to the server
Dim email As New System.Web.Mail.MailMessage
email.To = " "
email.From = " "
email.Body = " "
email.Subject = " "
email.BodyFormat = Web.Mail.MailFormat.Text
System.Web.Mail.SmtpMail.SmtpServer = "SmtpServerName"
System.Web.Mail.SmtpMail.Send(email)
When I use my own server domain it gives me
550 5.7.1 Unable to relay for " "
"Curt_C [MVP]" wrote: that sample is in the HTML view, but you can easily do this from the codebehind in the button click event
-- Curt Christianson site: http://www.darkfalz.com blog: http://blog.darkfalz.com "havenoclue" wrote:
Thanks for your quick response karl. Forgive me but I'm new to this stuff. I've looked at this before and didn't really know how to implement this code. Is this from the CodeBehind or the html output?
"Karl Seguin" wrote:
Look at the System.Web.Mail namespace
it's pretty easy, check out: http://www.aspheute.com/english/20000918.asp
basically create a new MailMessage, set all the properties (To, From, Subject, Body) and use the Attachments.Add to point to the file to attach.
before doing a SmtpMail.Send though, you might need to do SmtpMail.SmtpServer ="SMTP_SERVER_ADDRESS"
I think by default it looks for an smtp server on the same machine as your web site, which is probably what you want.
Karl
-- MY ASP.Net tutorials http://www.openmymind.net/ "havenoclue" <ha********@discussions.microsoft.com> wrote in message news:69**********************************@microsof t.com... >I have a database application that is submitted to an Access database. >What > I want is when the form is submitted to automatically send an email to > multiple persons with the info from the form. This could be as an > attachement or plain text. I wouldn't care if it was like the mailto. > I'm > clueless on how to do this. > Any help would be greatly appreciated.
Where is your smtp serve rrunning?
As I said in my original post, you'll likely have to specify the address of
the SMTP server via SmtpMail.SmtpServer
IIS has an smtp server built-in, perhaps you need to start the service?
(simple mail transfer protocol I believe it's called), and point your
SmtpServer to 127.0.0.1 (local)
karl
--
MY ASP.Net tutorials http://www.openmymind.net/
"havenoclue" <ha********@discussions.microsoft.com> wrote in message
news:A5**********************************@microsof t.com... I tried the code behind and got COMException (0x80040213): The transport failed to connect to the server
Dim email As New System.Web.Mail.MailMessage email.To = " " email.From = " " email.Body = " " email.Subject = " " email.BodyFormat = Web.Mail.MailFormat.Text System.Web.Mail.SmtpMail.SmtpServer = "SmtpServerName" System.Web.Mail.SmtpMail.Send(email)
When I use my own server domain it gives me 550 5.7.1 Unable to relay for " " "Curt_C [MVP]" wrote:
that sample is in the HTML view, but you can easily do this from the codebehind in the button click event
-- Curt Christianson site: http://www.darkfalz.com blog: http://blog.darkfalz.com "havenoclue" wrote:
> Thanks for your quick response karl. > Forgive me but I'm new to this stuff. I've looked at this before and > didn't > really know how to implement this code. Is this from the CodeBehind or > the > html > output? > > "Karl Seguin" wrote: > > > Look at the System.Web.Mail namespace > > > > it's pretty easy, check out: > > http://www.aspheute.com/english/20000918.asp > > > > basically create a new MailMessage, set all the properties (To, From, > > Subject, Body) and use the Attachments.Add to point to the file to > > attach. > > > > before doing a SmtpMail.Send though, you might need to do > > SmtpMail.SmtpServer ="SMTP_SERVER_ADDRESS" > > > > I think by default it looks for an smtp server on the same machine as > > your > > web site, which is probably what you want. > > > > Karl > > > > -- > > MY ASP.Net tutorials > > http://www.openmymind.net/ > > "havenoclue" <ha********@discussions.microsoft.com> wrote in message > > news:69**********************************@microsof t.com... > > >I have a database application that is submitted to an Access > > >database. > > >What > > > I want is when the form is submitted to automatically send an email > > > to > > > multiple persons with the info from the form. This could be as an > > > attachement or plain text. I wouldn't care if it was like the > > > mailto. > > > I'm > > > clueless on how to do this. > > > Any help would be greatly appreciated. > > > > > >
Thanks Karl and Curt
I have it now. Just have more problems.
"Karl Seguin" wrote: Where is your smtp serve rrunning?
As I said in my original post, you'll likely have to specify the address of the SMTP server via SmtpMail.SmtpServer
IIS has an smtp server built-in, perhaps you need to start the service? (simple mail transfer protocol I believe it's called), and point your SmtpServer to 127.0.0.1 (local)
karl
-- MY ASP.Net tutorials http://www.openmymind.net/ "havenoclue" <ha********@discussions.microsoft.com> wrote in message news:A5**********************************@microsof t.com...I tried the code behind and got COMException (0x80040213): The transport failed to connect to the server
Dim email As New System.Web.Mail.MailMessage email.To = " " email.From = " " email.Body = " " email.Subject = " " email.BodyFormat = Web.Mail.MailFormat.Text System.Web.Mail.SmtpMail.SmtpServer = "SmtpServerName" System.Web.Mail.SmtpMail.Send(email)
When I use my own server domain it gives me 550 5.7.1 Unable to relay for " " "Curt_C [MVP]" wrote:
that sample is in the HTML view, but you can easily do this from the codebehind in the button click event
-- Curt Christianson site: http://www.darkfalz.com blog: http://blog.darkfalz.com "havenoclue" wrote:
> Thanks for your quick response karl. > Forgive me but I'm new to this stuff. I've looked at this before and > didn't > really know how to implement this code. Is this from the CodeBehind or > the > html > output? > > "Karl Seguin" wrote: > > > Look at the System.Web.Mail namespace > > > > it's pretty easy, check out: > > http://www.aspheute.com/english/20000918.asp > > > > basically create a new MailMessage, set all the properties (To, From, > > Subject, Body) and use the Attachments.Add to point to the file to > > attach. > > > > before doing a SmtpMail.Send though, you might need to do > > SmtpMail.SmtpServer ="SMTP_SERVER_ADDRESS" > > > > I think by default it looks for an smtp server on the same machine as > > your > > web site, which is probably what you want. > > > > Karl > > > > -- > > MY ASP.Net tutorials > > http://www.openmymind.net/ > > "havenoclue" <ha********@discussions.microsoft.com> wrote in message > > news:69**********************************@microsof t.com... > > >I have a database application that is submitted to an Access > > >database. > > >What > > > I want is when the form is submitted to automatically send an email > > > to > > > multiple persons with the info from the form. This could be as an > > > attachement or plain text. I wouldn't care if it was like the > > > mailto. > > > I'm > > > clueless on how to do this. > > > Any help would be greatly appreciated. > > > > > > This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: dcass |
last post by:
My company wants to implement a document web server to eliminate some
paper. Has anyone used a product or developed code that can notify
users (via email) when new documents have been posted?
...
|
by: dmiller23462 |
last post by:
Does anyone see anything OUTRIGHT that I can fix on this....I'm a
virgin ASP'er and I'm trying to produce an email from a form
submission button....This is just my little "template" for future use...
|
by: Piotr Kurpiel |
last post by:
Hi,
I am creating a site where I need to refer to another external file
(aspx).
I create the form and works fine. But as soon as I try to submit the
form automatically (with form.submit()) I get...
|
by: Stanley |
last post by:
Hi,
I'd like to write a HTML page which can help me directly log in my
Yahoo!mail or Gmail account without typing user name and password.
Basically, I want to set up a link, click it and pop up...
|
by: raqfg |
last post by:
Hi.
I am trying to test out the automatic maintanance with notification
feature of DB2 v8.2. I have enabled the auto maint with notification.
The problem I am facing is that I only get email...
| |
by: James Thomas |
last post by:
Hello -
I have a web application done in ASP .NET and SQL Server that tracks
certain things for users. Currently, they must log on to be notified
when the items they have stored are getting...
|
by: grpmangr |
last post by:
hi
Is ther anyway i can automatically fill out forms and submit them thru
java?
supposing i hav a normal txt file that contains all data that needs to
be filed out into the form, is there anyway...
|
by: Dave |
last post by:
I have a form on my ASP 3.0 web site and I need to monitor submissions.
Is it possible to generate an email upon form submission?
If so, how do I invoke the email functionality from an ASP 3.0...
|
by: Homer |
last post by:
Hi,
I just got a requirement from my HR department to automate their form
submission process and integrate it into the Intranet project that I
had just completed Phase 1 of. Because of the...
|
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,...
|
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,...
| |
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...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 ...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |