Attach Link Within E-mail
How do you send a link to a Web page within an e-mail message which was sent using a send_mail function(consisting of the object CDO.Message)?
View RepliesHow do you send a link to a Web page within an e-mail message which was sent using a send_mail function(consisting of the object CDO.Message)?
View RepliesI'm trying to get my users to attach a local file to the mail they sending me from my page.
My form code is: ....
I'm sending an email in ASP using CDONTS and I'm trying to attach a file from the user's machine (i.e. client side) and right now it works... BUT what im doing now is having the user upload the file and it is saved on the server in the temp directory, then once the email is sent, the file is deleted.
So here's the question... Is there a way to attach a file using only the file info and data - i.e. without saving the file to the server. I have a pure asp upload include file that will let me view a file's data in binray format and I was wondering how I could use this to attach the file.
So to reiterate, can I attach a file that is not saved on the server... any takers?
I have created an asp form which I want to use to retrieve attachment from my site users. I am using Aspupload Component on sever to upload attach file on server at specific location. Although I am able to upload attach file on server. Also I created to retrieve attachment from mail its not working.
Can any one help me out to make form or code to retrieve uploaded file as attachment through mail.
Here is file where user fill his information and attach his CV....
I am writing a system from which I would like user to be a ble to send e-mail that contain in the body a link to an asp file which also have a variable added to the end of the link.
example URL
the trouble is using mailto the body only displays
URL
I have tried replaceing ? and = with the ISO values but it still won't work.
I need to know how to write a link that will e-mail html code. If it's possible, I want to have the user click on a link and have Outlook open up with a title (this part already works) and the body filled with html code that I push in. Here is my current code:
response.redirect "mailto:?subject=" & session("screenname") & "Report&Body=" & session("msgblock")
The session values are from a previous asp page that links to this page when you click an the e-mail link.
The session values both show up when I put in a response.write and the title (which is not html, just text) works in the response.redirect -- Outlook opens just fine. The problem is with the msgblock which is in html. Do I need to write a script so that Outlook knows to format for html? Any ideas?
I'm looking to distribute links to a site by mail, and then identify the users following those links. (ie. embedding user id in the url, and retrieving that data)
I think Dev sheds activate account feature does what I need, as does similar features of other sites, so I would think this is pretty standardized. Unfortunately, I can't figure out what I need to feed the search engines in order to elicit a tutorial....
I just coded a page and I'm getting an error on line 3, which is the
attach line. According to the references I have, this is the correct
way to do it. Am I missing something? Let me know what you think.
Here's the code:
<%
set ObjMail = CreateObject("CDONTS.NewMail")
objMail.AttachFile "c: est.txt"
objMail.Send "jondoe@somewhere.nett", "janedoe@somewhere.net", "Test
Message 021203c", "Test with attachment"
Set ObjMail = Nothing
%>
<html>
<title>Mail Send Page/</title>
<body>
This page will send mail to an email address
</body>
</html>
I have created an asp page in which i need to attach photos and have to e-mail the asp page to other. How to attach photos to the page.
View Replies View RelatedI try to grab the checked files from HTML page and then send those PDF
files as attachments. It can just send email, there are no PDF files
attached. Can anybody point out my error?
My idea is:
When people check the check boxes in HTML page for the PDF files, it
will transfer the files' name to ASP page. Then, it will attach it in
the email. Code:
See the ASP code below in order to send an email. How can I attach
a file to this email please?
set objMailer = Server.CreateObject("CDONTS.Newmail")
objMailer.From = "anySender@123.com"
objMailer.To = "anyRecipient@456.com"
objMailer.Subject = "a Subject"
objMailer.Body = “I need to know ASP�
on error resume next
objMailer.Send
if err then
response.Write err.Description
else
'do nothing it went okay
end if
I need to attach a label to each form element on an html form as I can not use the element names. For instance, my element is
<input name="DT_Ctl">
in the asp I use,
For Each FormElement in Request.Form
mail_body = mail_body & FormElement & ": " & Request.Form(FormElement) & vbCrLf
Next
However this means I would get,
DT_Ctl: 1
in my email.
I need to re-label the element without changing the element name so that I would get something like,
Daytona: 1
I am guessing I could attach some sort of variable to each form element but how do I do that.
I am an ASP guy who is developing using chilisoft at this moment. All is going very well except for using the fileAttach method (CDONTS), I am having great difficulty finding assistance.
The chilisoft documentation seems to lack an explanation of the file attach method, would you have any suggestions where I may see an example of the CDONTS file attach method.
using chilisoft 3.6.2 / Linux / apache
Is it possible to send an HTML email through CDONTS without formatting it
into one big long string?
I need to attach files and upload that file to an Access database as a BLOB(or any other way). i have created a DSN for the db and it is better if it uses a command object to connect to the db(even if it is not a command a object it doesnt matter) ....
View Replies View Relatedhow to i attach the following codes to the email?
a genAttachment function and Call genAttachemnt("Test1","24-08-2006","13:00:00","24-08-2006","14:00:00","Title","Location",0,0,1,1,"../eleave/","-PT1D",1,"PT7D",1,"WEEKLY",2,"TH")
suggest me a asp page which can detach and attach databases. We can use the sp_detach_db, sp_attach_db.I am mainly into administration .As im not into much asp programming im finding it difficult. I dont have much time left to finish. help me with this.If any one have ready made asp page for this purpose ,he could give me the script
View Replies View RelatedI’m writing about a form which processes another form from the which i send newsletters.
There are two cases, cdo (plan text) and cdohtml and everyone of them should sand mail with attach, it debends by which case has been selected in the generale settings, stored in a msaccess database.
The strange is that the mail in plain text format (case cdo) is sent, with attach too, and NO ERRORS are encountered:
the html mail des not works, even if the process says (no errors) no mails reaches the recipients. Code:
I have a web form that collects data and passes it to a mailer.asp page that arranges the form data into an nice html table and then emails it using CDONTS.
The form works fine. Here's what I am trying to accomplish:
Based on which of the checkboxes are checked, that is who the email needs to go to.
I cannot figure out how to attach an email address to the specific checkboxes.
I would prefer to keep the email addy's in the asp so that the spambots dont take them.
Here is my form page: Code:
I'm trying to build a page that the user can attach a file/s to and email them thru a form. I see plenty of info on how to actually code it to send with a variable - but how do you build a form that allows user go out and browse for a file? Then loads the path into a form?
View Replies View RelatedI'm trying to get a file attached to an email from a form.
The form is a simple name, email, attach cv. When the user hits submit it gets sent to the company. I simply used the <input type="file"> for the user to browse.
Basically, i'm finding sample ASP or VBScript for accessing emails and downloading attachments....
View Replies View RelatedI need some help: with cdosys i'm able to send e-mail from asp using the local exchange
server. Now I also have to save the sent mail into the user's mailbox for future reference: how to?
I'm using:....
I'm using CDO to send mail to the site owner from ASP pages with forms.
Recently one of my forms is occasionally sending email with what seems
to be an insertion which is replacing the plain text part of the email
with something else. Looking at the server sent email source, the
hacked emails have the following:
Here's the scenario. I'm currently using cdosys/asp to send mail to
our SMTP server. We use a product called MailFilter to check for SPAM.
It doesn't work very well. If MailFilter isn't working cdosys also has
problems and emails don't get sent. As these email are confirmations
for customer's bookings this means lots of customers calling to see
where their confirmation emails have gone. The root of the problem is
MailFilter but that here to stay. So I had this thought of sending the
message to a queue of some sort so at least they will get to the
customer eventually rather than being lost for good. So here's the
question:
Can I/How do I send messages to a mailbox on our exchange server using
cdo.message?
I'm using CDO from my vb component to fire email. The problem is
whenever one of the email addresses in to, or cc is wrong then none of
the mails are fired even to the correct addresses. It gives an error
like
The server rejected one or more recipient addresses. The server
response was: 550 Relaying denied for <xfd@wre.com>
My code goes like this. Why is the mail server trying to look for the
validation of email ids??I want that atleast the mail should be fired
to the correct email addresses rather than no email fire. Can i
achieve that.
Dim iMsg As New CDO.Message
Dim iConf As New CDO.Configuration
With iConf
.Fields.Item(cdoSendUsingMethod) = cdoSendUsingPort
.Fields.Item(cdoSMTPConnectionTimeout) = 10 ' quick timeout
.Fields.Item(cdoSMTPAuthenticate) = cdoBasic
.Fields.Item(cdoSendUserName) = "username"
.Fields.Item(cdoSendPassword) = "password"
.Fields.Item(cdoURLProxyServer) = "server:80"
.Fields.Item(cdoURLProxyBypass) = "<local>"
.Fields.Item(cdoURLGetLatestVersion) = True
.Fields.Update
End With
Set iMsg.Configuration = iConf
With iMsg
.To = strToEmail
.From = strFromEmail
.CC = strCCEmail
.BCC = strBCCEmail
.Subject = strMailSubject
If strMailFormat = "TEXT" Then
.TextBody = strMailBody
Else
.HTMLBody = strMailBody
End If
If strAttachment <> "" Then
.AddAttachment strAttachment
End If
If intPriority = 2 Then
.Fields.Item("urn:schemas:mailheader:X-Priority") =
cdoHigh
.Fields.Update
End If
.Send
End With
I would like to know if this can be achieved! On the form I a drop down menu that's called ("Escalation_type") the values are eta, hdtv, and supervisors. I have some ideas but I am not sure if it will work or not. If the use chooses an eta as a value I would like it to be sent a mailbox for exam: no@where.com. If they choose hdtv as value I would like it to be sent to a different mailbox. Can this be achieve by using the case statement or the if statement?
View Replies View RelatedI'm looking for an asp code who can send an email without using a mail component. I started to write somethings using winsock but I don't have enough time to finish it.
View Replies View RelatedDoes anyone know how to hide and show a link depending on the level of the user. Like I want the link to show if the person loging in is an admin, but if the person is a user than I dont want the link to show?
View Replies View RelatedHow to get a link / url in a var ? This is what I need to do :
newmsg = " <a href="http://www.my-url"?pa=<%=userid%>> Click here </a> "
Clicking url that points to an exe pops up Open/Save dialog box. But I want
only the Open option to be enabled
How display a link like a plain text (not underlined) with css code.
View Replies View RelatedHaving a problem getting my asp url to work. Im trying to pass a var and some of them have the & in them. This is breaking my url since it looks for another var with the &. If i put the %26 instead of the & manually it works fine. How do I get that to encode that on the link ?
I know the problem is the data that is in the heading field has & in them. I can not fix that part. Is there a way to force the & in the url to go to %26 ? Code: