| | |
Send email with attachment
Please support our ASP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Dec 2006
Posts: 20
Reputation:
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?
![]() |
Similar Threads
- send email with attachment (PHP)
- VB6 - Email attachment not working (Visual Basic 4 / 5 / 6)
- How do i Send and Receive Email with Attachment (Visual Basic 4 / 5 / 6)
- Can't send email (Windows NT / 2000 / XP)
- Batch file to send email!! (Windows NT / 2000 / XP)
- Not able to send email by "MAIL" (OS X)
- can not send email and cannot send file through instant messaging (Windows NT / 2000 / XP)
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
| Thread Tools | Search this Thread |
archive asp asp.net aspandmssqlserver2005 aspandmssqlserver2005connection aspconnection connection database databaseconnection dreamweaver excel fso iis msmsql mssql2005 mssqlserver2005 mssqlserver2005andasp mssqlserverandasp opentextfile record searchbox selectoption single specfic sqlserver sqlserverconnection windows7





