I am trying to send an e-mail using one of the examples I got on this group
as follows: (both toemail and myemail are valid e-mail addreses.
'System.Web.Mail' (requires reference to "System.Web.dll"),
''' delcare a new mail message
Dim aMailMessage As New System.Web.Mail.MailMessage
''' set the from address
aMailMessage.From = myemail
''' set the to address and subject
aMailMessage.To = toemail
aMailMessage.Subject = "Test Sending E-Mail from VB."
''' send in Text format
aMailMessage.BodyFormat = System.Web.Mail.MailFormat.Text
''' set the body text
aMailMessage.Body = "This is the text of the email message from
my test Program."
''' add an attachment if you want to
'aMailMessage.Attachments.Add(New
System.Web.Mail.MailAttachment("C:Test.txt",
System.Web.Mail.MailEncoding.Base64))
''' send the email
System.Web.Mail.SmtpMail.SmtpServer = "smtp.sbcglobal.net"
System.Web.Mail.SmtpMail.Send(aMailMessage)
I get an error message stating "Could not access CDO.Message Object. Anyone
know what I'm doing wrong, My e-mail is via RoadRunner Internet connection.
--
Dennis in Houston 10 11176
"Dennis" <De****@discussions.microsoft.com> wrote in message
news:6A**********************************@microsof t.com... I get an error message stating "Could not access CDO.Message Object. Anyone know what I'm doing wrong, My e-mail is via RoadRunner Internet connection.
RoadRunner? Spam Central?
Hi Dennis:
I face the same problem three weeks ago so if your opreating system is
windows XP
do the following:
1\ go to control panel, then go to Administrative Tools , after that go to
something called Internet Information services IIS, if you did not find IIS
that mean you have to install this componant from windows XP CD.
2\ When you Open IIS go to the Local Computer and click plus sign you will
find
something called Default SMTP Virtual Server, right click and go to the
access tab
after that click relay button add IP address this one :"127.0.0.1" and set
System.Web.Mail.SmtpMail.SmtpServer = "127.0.0.1" and your problem will be
solved God willing, If you want more infromation about this error message
which is familire go to http://www.systemwebmail.net/faq/4.2.3.aspx
Husam
"Dennis" wrote: I am trying to send an e-mail using one of the examples I got on this group as follows: (both toemail and myemail are valid e-mail addreses.
'System.Web.Mail' (requires reference to "System.Web.dll"), ''' delcare a new mail message Dim aMailMessage As New System.Web.Mail.MailMessage
''' set the from address aMailMessage.From = myemail ''' set the to address and subject aMailMessage.To = toemail aMailMessage.Subject = "Test Sending E-Mail from VB."
''' send in Text format aMailMessage.BodyFormat = System.Web.Mail.MailFormat.Text
''' set the body text aMailMessage.Body = "This is the text of the email message from my test Program."
''' add an attachment if you want to 'aMailMessage.Attachments.Add(New System.Web.Mail.MailAttachment("C:Test.txt", System.Web.Mail.MailEncoding.Base64))
''' send the email System.Web.Mail.SmtpMail.SmtpServer = "smtp.sbcglobal.net" System.Web.Mail.SmtpMail.Send(aMailMessage)
I get an error message stating "Could not access CDO.Message Object. Anyone know what I'm doing wrong, My e-mail is via RoadRunner Internet connection. -- Dennis in Houston
hi,
i had this problem when i was learning mailing through vs2003.
right now i dont remember what i had done but i think i've updated my
OS with latest Service Pack available at Microsoft site and it started
working. also check that you have latest version of IIS with latest
Service Pack on your pc. coz it might also require for your programm.
Lucky
hi,
i had this problem when i was learning mailing through vs2003.
right now i dont remember what i had done but i think i've updated my
OS with latest Service Pack available at Microsoft site and it started
working. also check that you have latest version on IIS on your pc. coz
it might also require for your programm.
hi,
i had this problem when i was learning mailing through vs2003.
right now i dont remember what i had done but i think i've updated my
OS with latest Service Pack available at Microsoft site and it started
working. also check that you have latest version of IIS with latest
Service Pack on your pc. coz it might also require for your programm.
Lucky
Not everyone has IIs installed. I want to send e-mail from my application
when the user clicks a button "Contact Us"' and the user may not have IIS
installed.
Isn't there a way to find the user's e-mail server and use that name?
--
Dennis in Houston
"Husam" wrote: Hi Dennis:
I face the same problem three weeks ago so if your opreating system is windows XP
do the following: 1\ go to control panel, then go to Administrative Tools , after that go to something called Internet Information services IIS, if you did not find IIS that mean you have to install this componant from windows XP CD.
2\ When you Open IIS go to the Local Computer and click plus sign you will find something called Default SMTP Virtual Server, right click and go to the access tab after that click relay button add IP address this one :"127.0.0.1" and set System.Web.Mail.SmtpMail.SmtpServer = "127.0.0.1" and your problem will be solved God willing, If you want more infromation about this error message which is familire go to
http://www.systemwebmail.net/faq/4.2.3.aspx
Husam
"Dennis" wrote:
I am trying to send an e-mail using one of the examples I got on this group as follows: (both toemail and myemail are valid e-mail addreses.
'System.Web.Mail' (requires reference to "System.Web.dll"), ''' delcare a new mail message Dim aMailMessage As New System.Web.Mail.MailMessage
''' set the from address aMailMessage.From = myemail ''' set the to address and subject aMailMessage.To = toemail aMailMessage.Subject = "Test Sending E-Mail from VB."
''' send in Text format aMailMessage.BodyFormat = System.Web.Mail.MailFormat.Text
''' set the body text aMailMessage.Body = "This is the text of the email message from my test Program."
''' add an attachment if you want to 'aMailMessage.Attachments.Add(New System.Web.Mail.MailAttachment("C:Test.txt", System.Web.Mail.MailEncoding.Base64))
''' send the email System.Web.Mail.SmtpMail.SmtpServer = "smtp.sbcglobal.net" System.Web.Mail.SmtpMail.Send(aMailMessage)
I get an error message stating "Could not access CDO.Message Object. Anyone know what I'm doing wrong, My e-mail is via RoadRunner Internet connection. -- Dennis in Houston
Maybe you need authetication on your smtp server for example:
//using System.Web.Mail;
eMail = new MailMessage();
eMail.BodyFormat = MailFormat.Text;
eMail.From = _SendFrom;
eMail.Fields[ http://schemas.microsoft.com/cdo/con...on/smtsperver]
= "SMTPServerName";
eMail.Fields["http://schemas.microsoft.com/cdo/configuration/smtpserverport"]
= 25;
eMail.Fields["http://schemas.microsoft.com/cdo/configuration/sendusing"]
= 2;
if (SMTPUser != null && SMTPPassword != null)
{
eMail.Fields["http://schemas.microsoft.com/cdo/configuration/smtpauthenticate"]
= 1;
eMail.Fields["http://schemas.microsoft.com/cdo/configuration/sendusername"]
= "SMTPAUTHUser";
eMail.Fields["http://schemas.microsoft.com/cdo/configuration/sendpassword"]
= "SMTPAUTHPassword";
}
eMail.To = "recipients";
SmtpMail.SmtpServer = SMTPServerName;
SmtpMail.Send(eMail);
//
see this link: http://msdn.microsoft.com/library/de...figuration.asp
I have heard that some SMTP servers won't let you send Email without a POP
transaction first. I think that is standard security in many servers to
prevent unauthorised people and spammers from using their servers. It is not
just SMTP authorisation which can solve your problem. My Email server does
this too.
So try logging into your POP mail before you try to send the mail through
SMTP. I think things will work for you.
Regards
Cyril
Yes, there are 2 basic methods:
- SMTP authentication: you pass the user/password
- POP before SMTP: you need to pop messages first (to prove that you own the
account) and they you have a time window (30 minutes or so) to send
messages.
--
Best regards,
Carlos J. Quintero
MZ-Tools: Productivity add-ins for Visual Studio 2005, Visual Studio .NET,
VB6, VB5 and VBA
You can code, design and document much faster in VB.NET, C#, C++ or VJ#
Free resources for add-in developers: http://www.mztools.com
"Cyril Gupta" <no****@mail.com> escribió en el mensaje
news:uf**************@TK2MSFTNGP10.phx.gbl... I have heard that some SMTP servers won't let you send Email without a POP transaction first. I think that is standard security in many servers to prevent unauthorised people and spammers from using their servers. It is not just SMTP authorisation which can solve your problem. My Email server does this too.
So try logging into your POP mail before you try to send the mail through SMTP. I think things will work for you.
Regards Cyril This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Tom Brown |
last post by:
Hi,
I have what seems to be a simple problem. But I can not for the life of me
find a way to send an integer over a socket. The send method will only accept
strings. Here is what I am trying to...
|
by: Etienne Charland |
last post by:
Hi, there is an application running on a remote desktop (under Citrix ICA,
but the same problem applies for RDC or PC Anywhere). Now, I want to send
keys to the remote application from a local app....
|
by: Pete Loveall |
last post by:
I have a server application that monitors a private local queue for
messages. The message sent to it has a label and a response queue defined.
It works correctly when the queue is accessed via...
|
by: Fatih BOY |
last post by:
Hi,
I want to send a report from a windows application to a web page like
'report.asp'
Currently i can send it via post method with a context like
local=En&Username=fatih&UserId=45&Firm=none...
|
by: Kitchen Bin |
last post by:
Hi.
I am trying to use Sockets to do multiple Send and Receives via HTTP
(not simultaneously). A first pair of Send/Receives works fine and
sure enough I receive HTML back, but the next...
|
by: zhimin |
last post by:
Hi,
I'm writing a program to send large file(100m) through dotnet using
TCPListener & TCPClient, I'm sending the file with a ask and response loop:
1. Client send a flag 1 to server indicate it...
|
by: Amadej |
last post by:
Hello everyone,
I'm having some odd problems with a little program I wrote for
sending/receiving bytes across the network.
I am using synchronous sockets, and it seems that when I send byte...
|
by: GrantS |
last post by:
I need to use a sendkeys key combination to automate the "accept
files" that a remote user wants to send to me via Windows messenger. I
am using automation to work with Windows Messenger client in...
|
by: ultr |
last post by:
Hello,
I have read that send() may not send whole message and returns the
nuber of bytes sent, so that we can handle the rest of the message. Is
it true, because i have tested sending even 1MB...
|
by: Xionbox |
last post by:
Hello everybody,
The error I have seems very easy to solve, but for some odd reason I can't seem to solve it. Anyways, here's my "setup".
I created a server running on localhost:1200 (telnet...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
| |