Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Additional myMail.to email address?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

wfaries
Starting Member

3 Posts

Posted - 06 June 2001 :  19:52:54  Show Profile
Hello, I have this current asp script below (this is a portion of it) where when someone fills out a registration form the info is sent to me. I'm now needing to add in the
email address wfaries@ambient-design.com as well, along with the wesley@ambient-design.com email address I currently have in there. I tried several ways adding in
the wfaries@ but it still only goes to my wesley@ address. Any suggestions with how to insert that string to where it goes to both addresses.

Thank you in advance!!!!
-----------------------------------------------------
Dim myMail, frommail
frommail = Request.Form("email")
Set myMail = Server.CreateObject("CDONTS.NewMail")
myMail.MailFormat =0
myMail.Bodyformat = 0
myMail.From = frommail
myMail.to = "wesley@ambient-design.com"
myMail.Subject = "New Registration Request to view Manual"
'commented out by infomatika Mail.AddAddress "wesley@ambient-design.com"
myMail.Body= BodyStr
'Mail.IsHTML = False
myMail.Send
Set myMail=nothing

' Const MailServerName="10.0.0.55" 'For clients' web sites
'Const MailServerName="172.16.0.3" 'For in-house only (LiveWorld etc)

' set Mail=Server.CreateObject("Persits.Mailsender")
' Mail.Host=MailServerName
' Mail.FromName = "Manual Registration Form"
'Mail.From = "wesley@ambient-design.com"
'Mail.Subject = "New Registration Request to view Manual"
'Mail.AddAddress "wesley@ambient-design.com"
' Mail.Body= BodyStr
' Mail.IsHTML = False
' Mail.Send
' Set Mail=nothing
end sub
%>

e3stone
Average Member

USA
885 Posts

Posted - 06 June 2001 :  20:09:18  Show Profile  Send e3stone an AOL message
add this below the myMail.to = "wesley@ambient-design.com" line:

myMail.cc = "wfaries@ambient-designs.com"

that should work

<-- Eric -->


InsideWaco.com
Go to Top of Page

wfaries
Starting Member

3 Posts

Posted - 06 June 2001 :  20:19:10  Show Profile
Well I be ****, worked like a a charm! Eric, you weren't supposed to give a simple answer. :-) Thank you for the help!

Go to Top of Page

e3stone
Average Member

USA
885 Posts

Posted - 06 June 2001 :  20:28:01  Show Profile  Send e3stone an AOL message
These forums are wonderful, aren't they

<-- Eric -->


InsideWaco.com
Go to Top of Page

Doug G
Support Moderator

USA
6493 Posts

Posted - 06 June 2001 :  20:55:00  Show Profile
You also should be able to put both addresses in the 'to' line separated by a semicolon.

myMail.to = "wesley@ambient-design.com; wfaries@ambient-design.com"


======
Doug G
======
Go to Top of Page

wfaries
Starting Member

3 Posts

Posted - 06 June 2001 :  22:21:24  Show Profile
That's a good idea Doug, we'll eventually have more email address added.

You're right Eric, these are great. I worked on this for 2 hours before writing. I wrote and got your solution in matter of minutes. Next time I'll write first!

Thanks again guys, keep up the good work.

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.29 seconds. Powered By: Snitz Forums 2000 Version 3.4.07