Hi, I'm looking for a way to send an email with attachement from a windows (not web) vb6 application, I prefer that this will be done in backend, with a way to give all info as parameters (to, subject, message and attached file) any idea please?
Hi, I'm looking for a way to send an email with attachement from a windows (not web) vb6 application, I prefer that this will be done in backend, with a way to give all info as parameters (to, subject, message and attached file) any idea please?
This should help: http://www.**--****.com/ There are other ways also, but this one is good because it bypasses Outlook, which is prone to throwing up a security message, which you probably don't want your user(s) to have to deal with. Jay Taplin MCP
Here's an article similar to that posted by Jay for VB6... HOWTO: How to Send/Receive E-Mail Messages with Visual Basic http://www.**--****.com/ Also, use Google Groups... there are a ton of similar questions Results 1 - 100 of 186 for attachment "send email" -dotnet group:*.vb.* http://www.**--****.com/ +email&as_oq=&as_eq=dotnet&as_ugroup=*.vb.*&as_usubject=&as_uauthors=&lr=&as_drrb=q&as_qdr=&as_mind=1&as_minm=1&as_miny=1981&as_maxd=19&as_maxm=1&as_maxy=2006&safe=off planetsourcecode.com has tons of sample apps too. Be sure to select the Visual Basic category first. -- Ken Halter - MS-MVP-VB - Please keep all discussions in the groups.. DLL Hell problems? Try ComGuard - http://www.**--****.com/ Freeware 4 color Gradient Frame? http://www.**--****.com/
Adding to the pile: http://www.**--****.com/ -- Chris Hanscom - Microsoft MVP (VB) Veign's Resource Center http://www.**--****.com/ Veign's Blog http://www.**--****.com/
1.System.Web.Mail send mail fails
Using the procedure below on an ordinary form works fine. Moving it to a service-project makes it fail on SmtpMail.Send(mail) with error: "Could not access 'CDO Message' object." Google-search shows other with similar problems when running in a service, but I didn't reach a solution. Any ideas as to what might be wrong? Using the System.Web.Mail: Sub SendMail(ByVal SendTo As String, ByVal Capacity As Int64) WriteLog("sendmail triggered") Try Dim mail As New MailMessage mail.To = Modtager mail.From = "me" mail.Subject = "Alert: lack of space" mail.Body = "Space left: " & Capacity & "MB" SmtpMail.SmtpServer = mySMTPserver SmtpMail.Send(mail) Catch ex As Exception WriteLog("Email error: " & ex.Message) End Try End Sub Regards /snedker
2.Send Mail like Windows Explorer SendTo Mail Recipient
I'm using VB2005. What I would like to do is to attach a file to an email message and launch the default mail client, just like the Windows Explorer Send To Mail Recipient does it. The file is already attached and the User just needs to fill out the email address and make any changes to the subject and message body. Can this be done? How? TIA, -- Al Reid
3.Question on Outgoing Mail Server - Sending mail within VB6
Hi All I know that when ever I set up my mail programs - Outlook / Outlook Express / Netscape etc... You are required to enter an Outgoing Server with Account Name and Password etc. If you have an application running on a Client's computer on their Network, Is it possilble to send an email to myself (I am probably subscribed to a different service than the client has) - The point would be in case of detection of a fault in the system, to "call home" I'd hate to get involved with trying to find out the different client's email Outgoing Server and finding an account and a password to use.... Is there anyway to send directly to my email provider? Thanks John
4.Sub:-Problem in sending mails to Windows Mail (Windows Vista)
Hi, I'm doing programming in Windows Mail (OS:- Windows Vista). I'm using MAPI control to send mail to Windows Mail's Outbox. But it gives "Windows Mail Security warnings" e.g. Another program is trying to send mail to outbox. Do you want ot continue?. So if i'm sending mail to 10 contacts then this warning message comes up for 10 times. How could I get rid of this security warnings? Thanks in advance Regards, Sajin
5.how to send mail via default mail application?
I need to send my document via default mail application. What i must use to do this? Maybe some sugestions about writing and sended it?
6. Sample VFP or VB code for sending mails using Live Mail
7. Problem with .send from microsoft example for vba send mail from e
8. Problem with .send from microsoft example for vba send mail from excel code
Users browsing this forum: No registered users and 98 guest