Email without Dialog 
Author Message
 Email without Dialog

Hi,

i use the following Syntax to send an email from the Background without an
Dialog

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


Body=Bodytext, "", "", 1)

Is it possible to send it without an Dialog ?

Thanks in advance
Nebil



Sat, 22 Feb 2003 22:58:41 GMT  
 Email without Dialog

try this

With Winsock
  For Each v In eMailTo
    Wait 0.5
    .SendData "EHLO " & .LocalIP & vbCrLf
    .SendData "MAIL FROM:" & m_UserName & vbCrLf
    Wait 0.5
    .SendData "RCPT TO:" & v & vbCrLf
    .SendData "DATA" & vbCrLf
    Wait 0.5
    .SendData "MIME-Version: 1.0" & vbCrLf
    .SendData "From: " & m_UserName & " <" & m_UserName & ">" & vbCrLf
    .SendData "To: <" & v & ">" & vbCrLf
    .SendData "Subject: " & "Drawing Uploaded" & vbCrLf
    .SendData "Content-Type: multipart/mixed;" & vbCrLf
    .SendData "              boundary=Unique-Boundary" & vbCrLf & vbCrLf
    .SendData " [ Random garbage here ]" & vbCrLf & vbCrLf
    .SendData vbCrLf & "--Unique-Boundary" & vbCrLf
    .SendData "Content-type: text/plain; charset=US-ASCII" & vbCrLf & vbCrLf
    .SendData "   Date: " & Format(Date, "Ddd") & ", " & Format(Date, "dd
Mmm YYYY") & _
              " " & Format(Time, "hh:mm:ss") & vbCrLf & "Drawing:" & dFile &
" uploaded" & vbCrLf & vbCrLf
    .SendData vbCrLf & "." & vbCrLf
    Wait 0.5
    .SendData "QUIT" & vbCrLf
    Wait 0.5
  Next
  .Close
End With

--

http://www.office-manager.co.uk



Sun, 23 Feb 2003 15:19:11 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. is there any way to send email through a formal without launching the email client

2. Hoe to send email without outlook

3. How to send email without using Outlook ?

4. emailing reports with subreports WITHOUT using sendObject

5. Sending an email from Access without clicking the send button

6. How to send HTML email from outlook client without using CDONTS

7. reading the emails without the prompt

8. Getting POP3-email without MS Outlook

9. Word Document to Outlook as an email body without loosing the formatting

10. How to Send/Receive emails via a .EXE without starting Outlook

11. Sending EMAIL from scripts without logging in

12. Send emails from vb without using outlook.

 

 
Powered by phpBB® Forum Software