•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP section within the Web Development category of DaniWeb, a massive community of 456,597 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,453 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP advertiser: Lunarpages ASP Web Hosting
Views: 1567 | Replies: 1
![]() |
•
•
Join Date: Dec 2006
Posts: 20
Reputation:
Rep Power: 2
Solved Threads: 0
I am having a problem with sending an email with an attachment
Set msg = CreateObject("CDO.Message")
msg.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing")=2 msg.Configuration.fields("http://schemas.microsoft.com/cdo/configuration/smtpserver").Value="100.1.2.3"
msg.Subject = "Test Subject"
msg.From = "some@email.com"
msg.To = "some@email.com"
msg.TextBody = "Test Message"
msg.AddAttachment "C:\files\a.doc")
This works fine, but my problem is when a client/user use his computer to send an email to a remote server over the web
I believe the msg.AddAttachment "C:\files\a.doc") will change to something like msg.AddAttachment "the user local hard drive")
How do I solve this?
Set msg = CreateObject("CDO.Message")
msg.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing")=2 msg.Configuration.fields("http://schemas.microsoft.com/cdo/configuration/smtpserver").Value="100.1.2.3"
msg.Subject = "Test Subject"
msg.From = "some@email.com"
msg.To = "some@email.com"
msg.TextBody = "Test Message"
msg.AddAttachment "C:\files\a.doc")
This works fine, but my problem is when a client/user use his computer to send an email to a remote server over the web
I believe the msg.AddAttachment "C:\files\a.doc") will change to something like msg.AddAttachment "the user local hard drive")
How do I solve this?
![]() |
•
•
•
•
•
•
•
•
DaniWeb ASP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
.net ajax asp browser cell custom developer development dom email encryption eudora feed firefox gmail google imap microsoft mobile mozilla msdn news office onecare open source opinion outlook penelope phishing phones professional reader scam security skin spam spammers spamming sql stocks technology theme thunderbird virus vista weather web webmail xml xoap
- VB6 - Email attachment not working (Visual Basic 4 / 5 / 6)
- How do i Send and Receive Email with Attachment (Visual Basic 4 / 5 / 6)
- send email with attachment (PHP)
- Can't send email (Windows NT / 2000 / XP / 2003)
- Batch file to send email!! (Windows NT / 2000 / XP / 2003)
- Not able to send email by "MAIL" (OS X)
- can not send email and cannot send file through instant messaging (Windows NT / 2000 / XP / 2003)
Other Threads in the ASP Forum
- Previous Thread: copy word doc onto asp page
- Next Thread: How to run asp files on linux server using apache


Linear Mode