Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a program which sends e-mail to a group of people. Program works fine
but I would like to get rid of the confirmation which Outlook asks every time e-mail is sent (A program is trying to automatically send e-mail on your behalf...). Here is the code itself. Sub Create_mail(Mail_address As String) Dim AppMail As Object Set AppMail = CreateObject("OutLook.Application") With AppMail.CreateItem(0) .To = Mail_address .Subject = "Subject" .Body = "Bodytext." .Send End With Set AppMail = Nothing End Sub |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The message is a security warning which I don't think you can override!
Ron Debruin has some excellent code which may help: http://www.rondebruin.nl/sendmail.htm -- JB "djExcel" wrote: I have a program which sends e-mail to a group of people. Program works fine but I would like to get rid of the confirmation which Outlook asks every time e-mail is sent (A program is trying to automatically send e-mail on your behalf...). Here is the code itself. Sub Create_mail(Mail_address As String) Dim AppMail As Object Set AppMail = CreateObject("OutLook.Application") With AppMail.CreateItem(0) .To = Mail_address .Subject = "Subject" .Body = "Bodytext." .Send End With Set AppMail = Nothing End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
sending mail through excel | Excel Programming | |||
Sending Mail from Excel | Excel Programming | |||
General mail failure when sending e-mail from Excel | Excel Discussion (Misc queries) | |||
Sending mail from Excel | Excel Programming |