is there a way i can do this in php... It is in asp, .. The real question is this line
myemail = Server.CreateObject("Dynu.Email")
is it possible to do that in php>?>
it is using the dynu com object?
also if so how would i call the components of that object
Thank you..
Chris Calzaretta
working Sample code below in asp
myemail = Server.CreateObject("Dynu.Email")
REM Please set a valid smtp server to be used for email below.
myemail.Host = "smtp.somedomain.com"
REM the below line will sets the to address. Multiple to addresses are supported.
myemail.AddAddress "support@dynu.com"
REM the below line will set the cc addresses. Multiple cc addresses are supported.
myemail.AddCC "sales@dynu.com"
myemail.AddCC "service@dynu.com"
REM the below line will set the bcc address. Multiple bcc addresses are supported.
myemail.AddBcc "info@dynu.com"
REM the below line sets the subject of the email
myemail.Subject = "Test"
REM the below line sets the body of the email
myemail.Body = "This is a test."
REM the below line will set a file as attachment
myemail.AddAttachment "c:\test.txt"
REM the below line will set from, to, subject, body and send the email out.
If myemail.Send() Then
response.write("Emails have been sent!")
Else
response.write("Emails have not been sent!")
End If
Set myemail = nothing
REM The above example will send out mail to 5 addresses in all. Please refer to the documentation for more details.