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 2795
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: lllomh |
last post by:
Define the method first
this.state = {
buttonBackgroundColor: 'green',
isBlinking: false, // A new status is added to identify whether the button is blinking or not
}
autoStart=()=>{
|
by: DJRhino |
last post by:
Was curious if anyone else was having this same issue or not....
I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM)
The start time is equivalent to 19:00 (7PM) in Central...
|
by: Aliciasmith |
last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
|
by: NeoPa |
last post by:
Hello everyone.
I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report).
I know it can be done by selecting :...
|
by: NeoPa |
last post by:
Introduction
For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM)
Please note that the UK and Europe revert to winter time on...
|
by: nia12 |
last post by:
Hi there,
I am very new to Access so apologies if any of this is obvious/not clear.
I am creating a data collection tool for health care employees to complete. It consists of a number of...
|
by: isladogs |
last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, Mike...
| |