Ask a Question related to ASP, Design and Development.
-
Tom Petersen #1
ASP Email - clearing out a variable
I've got this code:
With cdoMessage
Set .Configuration = cdoConfig
.From = strEmail
.To = "donald.duck@disney.com"
.Cc = strmEmail
.Subject = "Maintenance Request"
.TextBody = strBody
.Send
End With
With cdoMessage
Set .Configuration = cdoConfig
.From = "Maintenance_Form@disney.com"
.To = strEmail
.Subject = "Your Maintenance Request"
.HtmlBody = emailBody
.Send
End With
Now notice the second piece doesn't have .Cc, but they ( strmEmail from the
first piece) are still getting the emails.
How do I tell it not to send a .Cc?
I have five different possible values for strmEmail, and whichever one I
pick for the first part, shows up on the second, so I know it is passing the
value, but I don't want it to.
TIA!
Tom
Tom Petersen Guest
-
Clearing a variable in a database thru ASP
Hello All I have a website which has login and logoff features. When some one logs in, I set a variable in the database to 1 and if he logs off,... -
Clearing cache?
What does clearing the cache do? I've seen posts referring to this and wanted to know what this does. Does this compromise the computer at... -
Clearing ID numbers
I am in the process of creating a new DB. I have inserted some records into a test form then deleted them and even when i try to create a new form... -
sorting/clearing
i have a switchboard that i can open several different forms. one form allows me to select records to be displayed on a report through the use of... -
Clearing the stage
I've just found out how to draw pixels on the stage on a mouseDown (thanks JohnAQ) with: on mouseDown clickedSprite = the clickOn if... -
Ray at #2
Re: ASP Email - clearing out a variable
..Cc = "" will work. Either that, or you can destroy the cdoMessage object
and recreate it. Or, use the same code and use a strCc variable, and just
make sure you give it a value each time, whether that's "" or an e-mail
address.
Ray at work
"Tom Petersen" <petert@sdsd.sdbor.edu> wrote in message
news:%23p1x8FkmDHA.3256@tk2msftngp13.phx.gbl...the> I've got this code:
> With cdoMessage
> Set .Configuration = cdoConfig
> .From = strEmail
> .To = "donald.duck@disney.com"
> .Cc = strmEmail
> .Subject = "Maintenance Request"
> .TextBody = strBody
> .Send
> End With
>
> With cdoMessage
> Set .Configuration = cdoConfig
> .From = "Maintenance_Form@disney.com"
> .To = strEmail
> .Subject = "Your Maintenance Request"
> .HtmlBody = emailBody
> .Send
> End With
>
> Now notice the second piece doesn't have .Cc, but they ( strmEmail fromthe> first piece) are still getting the emails.
> How do I tell it not to send a .Cc?
> I have five different possible values for strmEmail, and whichever one I
> pick for the first part, shows up on the second, so I know it is passing> value, but I don't want it to.
>
> TIA!
> Tom
>
>
Ray at Guest
-
Aaron Bertrand [MVP] #3
Re: ASP Email - clearing out a variable
Destroy the object and re-create it. It's really keeping all of your
configuration options, but you're over-writing most of them before hitting
send.
Or maybe you could try setting .cc = "" or to NULL?
"Tom Petersen" <petert@sdsd.sdbor.edu> wrote in message
news:#p1x8FkmDHA.3256@tk2msftngp13.phx.gbl...the> I've got this code:
> With cdoMessage
> Set .Configuration = cdoConfig
> .From = strEmail
> .To = "donald.duck@disney.com"
> .Cc = strmEmail
> .Subject = "Maintenance Request"
> .TextBody = strBody
> .Send
> End With
>
> With cdoMessage
> Set .Configuration = cdoConfig
> .From = "Maintenance_Form@disney.com"
> .To = strEmail
> .Subject = "Your Maintenance Request"
> .HtmlBody = emailBody
> .Send
> End With
>
> Now notice the second piece doesn't have .Cc, but they ( strmEmail fromthe> first piece) are still getting the emails.
> How do I tell it not to send a .Cc?
> I have five different possible values for strmEmail, and whichever one I
> pick for the first part, shows up on the second, so I know it is passing> value, but I don't want it to.
>
> TIA!
> Tom
>
>
Aaron Bertrand [MVP] Guest
-
Tom Petersen #4
Re: ASP Email - clearing out a variable
Thanks guys!
I'll play with both methods
Tom Petersen Guest



Reply With Quote

