hwg-languages archives | May 2003 | new search | results | previous | next |
aspEmail questionby "Web Alchemy Concepts" <sales(at)webalchemy.on.ca> |
|
Hello, I am using Persist's AspEmail and need to include some dynamic information in the To and CC fields: Here is the basic script from the Persists site but how would I specify 2 copies of the email, one going to an absolute address, the other going as a BCC to an email address based on a cookie? I have tried replacing the AddAddress value with a Request("cookie_name") but it doesn't work. I didn't use quotes around the Request("cookie_name"). <% Set Mail = Server.CreateObject("Persits.MailSender") Mail.Host = "mail.myhostingcompany.com" ' Specify a valid SMTP server Mail.From = "sales(at)veryhotcakes.com" ' Specify sender's address Mail.FromName = "VeryHotCakes Sales" ' Specify sender's name Mail.AddAddress "andy(at)andrewscompany.net", "Andrew Johnson, Jr." Mail.AddAddress "paul(at)paulscompany.com" ' Name is optional Mail.AddReplyTo "info(at)veryhotcakes.com" Mail.AddAttachment "c:\images\cakes.gif" Mail.Subject = "Thanks for ordering our hot cakes!" Mail.Body = "Dear Sir:" & Chr(13) & Chr(10) & _ "Thank you for your business." %> TIA Jeff
HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA