|
| |
|
|
wizard_oz
Posts: 140 Joined: 9/3/2004 From: Ga,USA Status: offline
|
email on the web - 5/11/2005 6:28:22
Hi, I need HELP with email to the web. I created this code<%
Dim MyMail
Set MyMail = Server.CreateObject("CDONTS.NewMail")
MyMail.From = "[email=justme@myaddress.com]justme@myaddress.com[/email]"
MyMail.To = "user[email=user@main.com]@myaddress.com[/email]"
MyMail.Subject = "sending email via CDONTS NewMail"
MyMail.BodyFormat = 1
MyMail.MailFormat = 0
MyMail.Importance = 2
MyMail.Body = "Sending email with CDONTS NewMail" &_
"objects is easy! Try it!"
MyMail.Attachfile "c:\logo99.jpg", "logo99.jpg", 1
MyMail.Send , "[email=user@futuremodels.co.il]user@myaddress.com[/email]", "new subject"
Set MyMail = Nothing
%>
and it works fine with my computer on IIS but on the web I have a probem with sending this files, I need to make a path to send the file to the web, How do I create a path on my script?
|
|
|
|
rdouglass
Posts: 9202 From: Biddeford, ME USA Status: offline
|
RE: email on the web - 5/11/2005 11:44:59
quote:
How do I create a path on my script? Is the file on the web or on your local computer? If on the host (web) then you should be able to do something like: MyMail.Attachfile Server.Mappath("/images/logo99.jpg"), "logo99.jpg", 1 That would be assuming the file logo99.jpg file is in the images folder off the root of the web. That help any?
_____________________________
Don't take you're eye off your final destination. ASP Checkbox Function Tutorial.
|
|
|
|
wizard_oz
Posts: 140 Joined: 9/3/2004 From: Ga,USA Status: offline
|
RE: email on the web - 5/15/2005 1:36:44
Thanks but the file is ob the local computer
|
|
|
|
wizard_oz
Posts: 140 Joined: 9/3/2004 From: Ga,USA Status: offline
|
RE: email on the web - 5/15/2005 3:53:57
No, because I would like that some poeple will send me thier picture through email but not from email software , I need them to send me the picture from my asp page,and as you can see it has to be from their local computer
|
|
|
|
wizard_oz
Posts: 140 Joined: 9/3/2004 From: Ga,USA Status: offline
|
RE: email on the web - 5/15/2005 5:28:12
do you have any example for the upload component ? I'd never used it before
|
|
|
|
wizard_oz
Posts: 140 Joined: 9/3/2004 From: Ga,USA Status: offline
|
RE: email on the web - 5/15/2005 6:06:37
I don't care that the client will upload his picture to the server but I need to send this message as email. Do you have any other idea how to upload a file to a web server with some input text?
|
|
|
|
wizard_oz
Posts: 140 Joined: 9/3/2004 From: Ga,USA Status: offline
|
RE: email on the web - 5/17/2005 7:22:52
No, I tryied to understand but I don't, all I want is to make upload for the client into a database and from your scripts I get errors in upload.asp, line 146 can you give m me an example that working?
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|