Error in mail Attachment

S

safs

When i am trying to send mail My Attachment file look like file.bin can
any one say the ression

dim commnet,file1,Msg,attachment,f,f1
comment=request.Form("comtxt")
file1=request.Form ("Fileup")

f1="http://www.icmsolutions.co.in/Attachment/whitepapper.pdf"


Dim ObjSendMail

Set ObjSendMail = CreateObject("CDO.Message")

ObjSendMail.Configuration.Fields.Item
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 'Send
the message using the network (SMTP over the network).'
ObjSendMail.Configuration.Fields.Item
("http://schemas.microsoft.com/cdo/configuration/smtpserver")
="smtp.net4india.com"
ObjSendMail.Configuration.Fields.Item
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
ObjSendMail.Configuration.Fields.Update
ObjSendMail.To = "(e-mail address removed)"
ObjSendMail.AddAttachment file1
ObjSendMail.Subject = "This is From Career Page in ICMSOLUTIONS"
'****You have to give the Email id which exiest in the same Domain'
ObjSendMail.From = "(e-mail address removed)"
ObjSendMail.HtmlBody = HTML1
ObjSendMail.Send
set ObjSendMail= nothing
 
B

Brian Tillman

safs said:
When i am trying to send mail My Attachment file look like file.bin
can any one say the ression

dim commnet,file1,Msg,attachment,f,f1
comment=request.Form("comtxt")
file1=request.Form ("Fileup")

How is this an Outlook Contacts question? Please ask programming questions
in the programming newsgroups.
news://msnews.microsoft.com/microsoft.public.outlook.program_vba is probably
the most appropriate.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top