George
Wed Jul 30 09:56:42 CDT 2003
Robert
Thanks for your reply. I have since been in contact with my web hosting
tech people and they gave me the exact path that needed to be in the code
and everything works great now. SMTPsvg is the only mailer that they
support on the server side. CDONTs is not available on their server so it
did not work when I tried it to begin with.
Thanks again
George
"Robert Cohen" <jerrygarcia@gratefuldead.com> wrote in message
news:#YiIKBpVDHA.2224@TK2MSFTNGP09.phx.gbl...
> this is how I use it sucessfully(this is part of a script that e-mails all
> attachments that meet certain critera). The script I use works without
fail:
>
> objEmail.AddAttachment "I:\pictures\edited\" & f.name
>
>
> but I did just notice something, you aren't using CDO, you are using
> SMTPsvg.Mailer (which I never heard of). Have you tried CDO for sending
you
> e-mail- it works great for me. You would need to just change "bbh01" to
> your server name.
>
> Set objEmail = CreateObject("CDO.Message")
> objEmail.From = "rcohen@bbhtx.org"
> objEmail.To = "rcohen@bbhtx.org"
> objEmail.Subject = "Staff and Work Therapy Photos " & time
> objEmail.Textbody = "This is an automated message. This e-mail contains
any
> staff or work therapy photos taken in admissions"
> objEmail.Configuration.Fields.Item _
> ("
http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
> objEmail.Configuration.Fields.Item _
> ("
http://schemas.microsoft.com/cdo/configuration/smtpserver") = _
> "bbh01"
> objEmail.Configuration.Fields.Item _
> ("
http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
> objEmail.Configuration.Fields.Update
> objEmail.AddAttachment "c:\foldername\GPC Assessment - Ronnie Bates.xls"
> objEmail.Send
>
> --
> --
> In honor of Ross
> --
>
>
>
> "George Mizzell" <George@engconcepts.net> wrote in message
> news:%23cutbPlVDHA.656@tk2msftngp13.phx.gbl...
> > Robert,
> >
> > I have tried no less than a dozen variations of unc paths and had zero
> > success. I will need more than this general comment. I have already
> > enetered it in both formats and not had any success. The file is
actually
> > located in exactly the same folder as the asp page. I have even renamed
> the
> > file so that it had no spaces, in case that had anything to do with it
and
> > again no success.
> >
> > It is not producing errors, it executes the rest of the code and does
> > nothing. I have scoured dozens of websites on vbscript and found none
of
> > them that show the exact code for adding an attachment using the SMTP
> mailer
> > program.
> >
> > If you have done this can you provide the command like this:
> >
> > Mailer.addAttachment "GPC Assessment - Ronnie Bates.xls"
> >
> > Except with the command that actually works.
> >
> > Thanks in advance
> > George
> >
> >
> > "Robert Cohen" <jerrygarcia@gratefuldead.com> wrote in message
> > news:eKKNNmgVDHA.532@TK2MSFTNGP09.phx.gbl...
> > > you need to use the unc address or using the path (path on the
server):
> > >
> > > "\\servername\sharename\GPC Assessment - Ronnie Bates.xls"
> > > "c:\foldername\GPC Assessment - Ronnie Bates.xls"
> > >
> > > --
> > > --
> > > Regardless of whether my signature is long or short, I still welcome
> > > e-mails if you know my address but won't post it. But on the positive
> > side,
> > > I don't try and impress by quoting others.
> > > --
> > >
> > > "George Mizzell" <George@engconcepts.net> wrote in message
> > > news:e#tBosfVDHA.2316@TK2MSFTNGP09.phx.gbl...
> > > > Hi,
> > > >
> > > > My ISP only supports the SMTPsvg.Mailer and I have the following
code
> > > which
> > > > works great except for adding attachments. An exhaustive googe
search
> > for
> > > > an example has produced nothing useful and trying to guess what the
> > > command
> > > > might be took a lot of time and yielded nothing.
> > > >
> > > > The file - GPC Assessment - Ronnie Bates.xls is a file on the
> > > server
> > > > in the root path. This code runs error free, it just doesn't do
what
> I
> > > need
> > > > it to do.
> > > >
> > > > I tried some of the following format as well -
> > > > Mailer.addAttachment upload.file("GPC Assessment - Ronnie
> > Bates.xls").path
> > > > and all variations of parenthesis and quotes to no avail.
> > > >
> > > >
> > > > Set Mailer = Server.CreateObject ("SMTPsvg.Mailer")
> > > > Mailer.FromName = "Web Mail Test"
> > > > Mailer.FromAddress = "apc_assess@engconcepts.net"
> > > > Mailer.Subject = "Upward Assessment " &
> > > > MailByWeb.fields.item("supervisor").value
> > > > Mailer.BodyText = "The Supervisor is - " &
> > > > MailByWeb.fields.item("supervisor").value & " the rater is - " &
> > > > MailByWeb.fields.item("rater").value
> > > > Mailer.RemoteHost = "mail-fwd"
> > > > Mailer.AddRecipient "test", "george@engconcepts.net"
> > > > Mailer.addAttachment "GPC Assessment - Ronnie Bates.xls"
> > > > if Mailer.SendMail then
> > > >
> > > >
> > > > Thanks in advance
> > > > George
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>