#1   Report Post  
Posted to microsoft.public.excel.programming
WW WW is offline
external usenet poster
 
Posts: 4
Default Auto email

Hello

In this age of spam, is it possible to send an email automatically from
excel without 1) user response 2) using Outlook Express' lower security
standards? Can DOS accommodate a "mail" command (as would BASH)?

Thanks

W

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Auto email

'Orig: Marcus Schmitt, copied and adapted from http://bert-
koern.de/excel/excel_makros_e.htm:

Private Declare Function ShellExecute Lib "Shell32.dll" _
Alias "ShellExecuteA" (ByVal hWnd As Long, _
ByVal lpOperation As String, ByVal lpFile As String, _
ByVal lpParameters As String, ByVal lpDirectory As String,
_
ByVal nShowCmd As Long) As Long
Private Sub Mail(eMail As String, Optional Subject As
String, _
Optional Body As String)
Call ShellExecute(0&, "Open", "mailto:" + eMail + _
"?Subject=" + Subject + "&Body=" + Body, "", "", 1)
End Sub
Private Sub Command1_Click()
Dim Nachricht As String
' Force Newline with %0D%0A !
Message = "Hello" & "%0D%0A" & "World!"
Call ", "My
Subject", Message)
End Sub

  #3   Report Post  
Posted to microsoft.public.excel.programming
WW WW is offline
external usenet poster
 
Posts: 4
Default Auto email

Cool! Thanks! I will give it a try...

W

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto Email Chad New Users to Excel 1 May 8th 08 02:50 AM
Auto Email VBA Matt Excel Discussion (Misc queries) 1 December 20th 07 06:25 PM
How do I create an email macro to auto fill the email? Justin[_4_] Excel Discussion (Misc queries) 0 November 14th 07 10:49 PM
auto email generator Brettjg Excel Discussion (Misc queries) 2 May 23rd 07 11:38 PM
Auto Email superkopite Excel Discussion (Misc queries) 2 January 25th 06 10:49 PM


All times are GMT +1. The time now is 04:18 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"