BillLumbergh
Programmer
I am using CDONTS to send email from a web page. I have added the functionality to send attachments. I sent a word document to both my work email (viewed through MS Outlook) as well as my personal yahoo address. In Outlook, the attachment is recognized and can be opened, saved, etc, as expected. However, in yahoo, it does not even recognize it as an attachment (no attachment icon in inbox). It basically appends the attachment to the end of the message body as a bunch of gobble-de-gook, like when you use notepad to try to open a word document. I have successfully received word documents in my yahoo email before so I know that that is not the problem. What can I do?
Here is some of my code:
Set objNewMail = CreateObject("CDONTS.NewMail"
With objNewMail
.From = strSenderEmail
If strTo <> "" Then .To = strTo
If strBCC <> "" Then .Bcc = strBCC
.Subject = strSubject
.Body = strMessage
.BodyFormat = 0
If Len(strAttachPath) > 0 Then
.AttachFile strAttachPath
End If
.Send
End With
'where strAttachFile is the path to the file on the
' machine from which it is being uploaded
Here is some of my code:
Set objNewMail = CreateObject("CDONTS.NewMail"
With objNewMail
.From = strSenderEmail
If strTo <> "" Then .To = strTo
If strBCC <> "" Then .Bcc = strBCC
.Subject = strSubject
.Body = strMessage
.BodyFormat = 0
If Len(strAttachPath) > 0 Then
.AttachFile strAttachPath
End If
.Send
End With
'where strAttachFile is the path to the file on the
' machine from which it is being uploaded