How can I make my own Mail control (unvisible one) to use
with a form ? Does anyone know where to find code ?
I would like to fill in some parameters, and then send a mail, a bit like
this :
'Button1_click. ..
Dim dllMail as Object
Set dllMail = CreateObject("M yDll.SendMail")
With dllMail
.SmtpAddress = "mySmtpName "
.SmtpPort = 25
.Sender = "myname"
.To = "to who"
.CC = "to as copy"
.BCC = "to as blind CC"
.Subject = "subject of the mail"
.BodyText = "bodytext of the mail"
.Attachment = "some filepath to a file"
.StartCommunica tion
If .SmtpState = smtpabended Then
'Error Logging
Else
MsgBox "Mail OK"
End If
Set dllMail = Nothing
End With
'end click event....
--
Filip http://www.ww2airborne.net/
Official Site of the 101st Airborne - 463rd PFA
skype: airborne463pfa-fiwi
------------------------------------------------- 4 1656
Why recreate the wheel?
Check System.Net.Mail .MailMessage.
I think it already does what you want and it is VERY easy to use.
Rick
" Screaming Eagles 101" <se*********@on line.pleasewrot e in message
news:Je******** ************@sc arlet.biz...
How can I make my own Mail control (unvisible one) to use
with a form ? Does anyone know where to find code ?
I would like to fill in some parameters, and then send a mail, a bit like
this :
'Button1_click. ..
Dim dllMail as Object
Set dllMail = CreateObject("M yDll.SendMail")
With dllMail
.SmtpAddress = "mySmtpName "
.SmtpPort = 25
.Sender = "myname"
.To = "to who"
.CC = "to as copy"
.BCC = "to as blind CC"
.Subject = "subject of the mail"
.BodyText = "bodytext of the mail"
.Attachment = "some filepath to a file"
.StartCommunica tion
If .SmtpState = smtpabended Then
'Error Logging
Else
MsgBox "Mail OK"
End If
Set dllMail = Nothing
End With
'end click event....
--
Filip http://www.ww2airborne.net/
Official Site of the 101st Airborne - 463rd PFA
skype: airborne463pfa-fiwi
-------------------------------------------------
"Rick" <Ri**@LakeValle ySeed.comschree f in bericht
news:%2******** ********@TK2MSF TNGP03.phx.gbl. ..
Why recreate the wheel?
Check System.Net.Mail .MailMessage.
I think it already does what you want and it is VERY easy to use.
Rick
Wow, I was still thinking VB6, that should be solved more easily now,
thanks !
--
Filip http://www.ww2airborne.net/
Official Site of the 101st Airborne - 463rd PFA
skype: airborne463pfa-fiwi
-------------------------------------------------
Here's a site that may help: http://www.systemnetmail.com/
Thanks,
Seth Rowe
Screaming Eagles 101 wrote:
"Rick" <Ri**@LakeValle ySeed.comschree f in bericht
news:%2******** ********@TK2MSF TNGP03.phx.gbl. ..
Why recreate the wheel?
Check System.Net.Mail .MailMessage.
I think it already does what you want and it is VERY easy to use.
Rick
Wow, I was still thinking VB6, that should be solved more easily now,
thanks !
--
Filip http://www.ww2airborne.net/
Official Site of the 101st Airborne - 463rd PFA
skype: airborne463pfa-fiwi
-------------------------------------------------
"rowe_newsgroup s" <ro********@yah oo.comschreef in bericht
news:11******** **************@ e3g2000cwe.goog legroups.com...
Here's a site that may help:
http://www.systemnetmail.com/
Thanks,
Seth Rowe
WOAW, added this to my Favorites right away.... ;-) (*!*)
--
Filip http://www.ww2airborne.net/
Official Site of the 101st Airborne - 463rd PFA
skype: airborne463pfa-fiwi
------------------------------------------------- This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: King Kong |
last post by:
Hi
it seems this has been discussed various times. Although I cannot
find a solution.
Ebvironment:
Win 2k
Apache 2
PHP 4.3.7
I use the module mode and not the cgi mode.
I cannot send email from this setup.
|
by: aa |
last post by:
Warning: mail(): Failed to connect to mailserver at "localhost" port 25,
verify your "SMTP" and "smtp_port" setting in php.ini
in php.ini I have:
SMTP = localhost
SMTP_PORT = 25
SENDMAIL_FROM = NULL
SENDMAIL_PATH = "H:\WINNT\system32\" (this is where sendmail.dll is
sitting. H is the drive with w2k)
|
by: Copelandia Cyanescens |
last post by:
Python Python 2.3.4, Windows, "clean" install, using the example code
given in the documentation, I get this...
Traceback (most recent call last):
File "C:\projects\email\email.py", line 24, in ?
server = smtplib.SMTP('mail.xxxxx.xxx')
AttributeError: 'module' object has no attribute 'SMTP'
I beg to differ, it most certainly does. Right? :)
|
by: manatlan |
last post by:
In an intranet/lan, i'd like to put a "python server script" (which run
forever) on a computer A...
On another computer B, I'd like to send smtp-email to the computer A ...
(send to "user@126.52.12.12", for example ...126.52.12.12 is the ip
address of "B")
in fact, i'd like to control "computer A" by sending smtp email from
"computer B".
|
by: Mindful_Spirit |
last post by:
I'm trying to set up a basic email feed back form
like
this, and was wondering about some basic configuration settings. I
have used code from
this
website. I have it working just fine. I'm running IIS on my home
machine.
My problem is that I need to upload this stuff to a webhosting place and
register a domain and I'm not sure what to put as the smtp mail server value
| |
by: bonski |
last post by:
hello everybody.. i just want to know what this error means...
Error: mail() : SMTP server response: 501 #5.1.1 bad address
the smtp set up was correct.. valid emails... and port. so im just wondering why this error still occurs.
looking forward for your suggestions.. thanks!
|
by: appkausman |
last post by:
i am using IBSERVER and trying to mail a form to my email address my code is given below
form.html
<html>
<head>
</head>
<body>
<form method="POST" action="mail.php">
Name: <input type="TEXT" name="subject">
|
by: Carmine [www.thetotalsite.it] |
last post by:
Hi everyone,
I get a really odd error while using SMTPClient.Send() function in ASP.Net.
The error is the following:
Dim smtp As New Net.Mail.SmtpClient("smtp.thetotalsite.it", 25)
Dim bodyMSG As String
bodyMSG = "something"
smtp.Send("something@thetotalsite.it",
someone@gmail.com, "Message from thetotalsite", bodyMSG)
|
by: Dave Kelly |
last post by:
This is the header of the email I am trying to send. My 'ReplyTo' is
not working as planed/
I tried googling thsi and did not get a good answer. I examed the code
before, as suggested and tried the example below. No joy
require("class.phpmailer.php");
$mail = new PHPMailer();
$mail->IsSMTP(); // telling the class to use SMTP
$mail->Host = "smtp.xxxxxxxx.com"; // SMTP server
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
| |
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |