Attached by AspMail

Results 1 to 2 of 2

Thread: Attached by AspMail

  1. #1
    Natan Guest

    Default Attached by AspMail

    How i can attached file to mail that i send by AspMail???

  2. #2
    Join Date
    Dec 1969

    Default RE: Attached by AspMail

    DIM Mailer <BR> SET Mailer = CreateObject("SMTPsvg.Mailer") <BR> Mailer.FromName = whatever<BR> Mailer.FromAddress = whatever<BR> Mailer.RemoteHost = whatever<BR> Mailer.AddRecipient whatever<BR> Mailer.Subject = whatever<BR> Mailer.BodyText = whatever<BR> &#039- These are your key lines...<BR> Mailer.ClearAttachments<BR> pathSpec = server.mapPath("Atest.txt")<BR> &#039- OR pathSpec = "D:/path/path/filename"<BR> Mailer.AddAttachment pathSpec<BR><BR> If Mailer.SendMail THEN<BR> ELSE<BR> END IF <BR> SET Mailer = Nothing<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts