Ik ben bezig een mail te versturen welke is opgemaakt in html. Dit werkt allemaal prima. Als ik echter een attachment toevoeg, gaat het helemaal fout. Onderaan de mail (in Eudora) komt allemaal troep te staan. Outlook geeft aan de de bijlage om veiligheidsredenen niet geopend kan worden. Wat mij wel opvalt is dat de omvang van een file van 2kb is opgelopen tot bijna 200kb.
Ik heb GOT al afgezocht maar zonder resultaat. Ook het boek asp 3.0 geeft geen duidelijkheid.
Hierbij de coding:
Heeft iemand een idee of een hint?????
Ik heb GOT al afgezocht maar zonder resultaat. Ook het boek asp 3.0 geeft geen duidelijkheid.
Hierbij de coding:
ASP:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
| strBody="<html>" strBody=strBody & "<head>" strBody=strBody & "<META HTTP-EQUIV=""Content-Type"" CONTENT=""text/html; charset=US-ASCII"">" strBody=strBody & "</head>" strBody=strBody & "<body>" strBody=strBody & inhoud strBody=strBody & "</body>" strBody=strBody & "</html>" Set MailObject = Server.CreateObject("CDONTS.NewMail") includename = server.MapPath("/test.txt") with mailObject .To=mailto .From=mailfrom .importance=2 .attachfile includename , "test.txt", 1 .Subject="Testmail" .Body=strBody .Bodyformat=0 .MailFormat=0 .Send end with |
Heeft iemand een idee of een hint?????
[ Voor 16% gewijzigd door gorgi_19 op 20-10-2004 14:46 ]