sayfrndship
12-19-2008, 05:34 AM
HI,
i m using following
Set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.From = "sayfrndship@yahoo.com"'SenderEmail & " (" & SenderName & ")"
objMail.Subject = "EmailSubject"
objMail.To = "s3technology1234@gmail.com"'RecEmail & " (" & RecName & ")"
objMail.BodyFormat = 0
objMail.MailFormat = 0
bodyHTML = "<html><head></head><body>" & _
"<font face=""3"" color=""red"">" & _
"Hello, I'm an a message sent via HTML</font><br><br>" & _
"<img src=""a wah_avatar.jpg"">" & _
"</body></html>"
objMail.Body = bodyHTML'"Testing email attachment."'EmailContent
var = "C:\Inetpub\wwwroot\ffi\webroot\a wah_avatar.jpg"
var2= "a wah_avatar.jpg"
objMail.AttachURL var,var2
objMail.Send
response.Write("Email Send successfully.")
Set objMail = Nothing
Problem is that i want to give name to attached file, but i m unable to give it to my attached file, i am receiving noname each time i sent email.
Any one know about this,
Thnnx in advance
i m using following
Set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.From = "sayfrndship@yahoo.com"'SenderEmail & " (" & SenderName & ")"
objMail.Subject = "EmailSubject"
objMail.To = "s3technology1234@gmail.com"'RecEmail & " (" & RecName & ")"
objMail.BodyFormat = 0
objMail.MailFormat = 0
bodyHTML = "<html><head></head><body>" & _
"<font face=""3"" color=""red"">" & _
"Hello, I'm an a message sent via HTML</font><br><br>" & _
"<img src=""a wah_avatar.jpg"">" & _
"</body></html>"
objMail.Body = bodyHTML'"Testing email attachment."'EmailContent
var = "C:\Inetpub\wwwroot\ffi\webroot\a wah_avatar.jpg"
var2= "a wah_avatar.jpg"
objMail.AttachURL var,var2
objMail.Send
response.Write("Email Send successfully.")
Set objMail = Nothing
Problem is that i want to give name to attached file, but i m unable to give it to my attached file, i am receiving noname each time i sent email.
Any one know about this,
Thnnx in advance