I have a program that will browse out to get a file and then save the file somewhere else. How do I use SaveFileDialog1 and FolderBrowserDialog1?
I really need a book that is for beginners, got any ideas?
I have created a report using a stored procedure.
When the report is ran, the Enter parameter screen has a "Set to null value" checkbox. How do I prevent this checkbox for showing. Other reports I created not using a stored procedure do not have that "Set to null value" checkbox on the Enter...
I found my problem.
code causing problem:
myAttachment = new mailattachment(Server.MapPath
(attachname.Request.Path))
Removed the .request.path
myAttachment = new mailattachment(Server.MapPath
(attachname))
I can now send an email with or without attachments.
Yes. I moved the code into the try and now I just get the "Unable to send e-mail" message.
Try
'storing attachment name
attachname = txtFile.PostedFile.FileName
'getting the file name and storing it in the server
' path and then attaching it to the 'mail.
If...
Getting an error "Invalid mail attachment" when I modified the code below:
<%@ import Namespace="System.Web.Mail" %>
<%@ import Namespace="System.IO" %>
Sub buttonSend_Click(sender As Object, e As EventArgs)
SmtpMail.SmtpServer="server name goes here"
Dim emailMessage As MailMessage...
Below is the code used to allow users to send e-mails. Now I need to modifiy the code to allow users the ability to send emails with or without attachments. How do I do this?
<%@ import Namespace="System.Web.Mail" %>
<script runat="server">
Sub buttonSend_Click(sender As Object, e As...
I have a form that works sending e-mails in aspx. I need to also give the user the ability to send attachments. The user wants the email to get delivered with or without attachments. Got any ideas? Here is the code I need to modify:
<%@ import Namespace="System.Web.Mail" %>
<script...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.