Hello,
I am trying to send one simple email. However each time
I try this I get the following error:
The message could not be sent to the SMTP server. The
transport error code was 0x80040217. The server response
was not available.
Here is my code:
Function SendEmail()
Dim mail As New MailMessage
mail.Fields.Add
("http://schemas.microso ft.com/cdo/configuration/smtpauthen
ticate", 1)
mail.Fields.Add
("http://schemas.microso ft.com/cdo/configuration/senduserna
me", "user")
mail.Fields.Add
("http://schemas.microso ft.com/cdo/configuration/sendpasswo
rd", "***")
mail.From = "us**@user. com"
mail.To = "my*****@myemai l.com"
mail.Subject = "test" 'Server.GetLast Error.Message
mail.Body = "body" 'Server.GetLast Error.StackTrac e
SmtpMail.SmtpSe rver = "mail.myemail.n et"
SmtpMail.Send(m ail)
End Function
I have replaced the from, to, smtp server in this email
with some fake data, however in my application I am using
the real data.
Any idea? 2 2874
Here is good resource that might be helpful: http://www.systemwebmail.com/faq.aspx http://www.systemwebmail.net/faq/3.8.aspx
"VK" <an*******@disc ussions.microso ft.com> wrote in message
news:14******** *************** *****@phx.gbl.. . Hello,
I am trying to send one simple email. However each time I try this I get the following error:
The message could not be sent to the SMTP server. The transport error code was 0x80040217. The server response was not available.
Here is my code:
Function SendEmail() Dim mail As New MailMessage mail.Fields.Add ("http://schemas.microso ft.com/cdo/configuration/smtpauthen ticate", 1) mail.Fields.Add ("http://schemas.microso ft.com/cdo/configuration/senduserna me", "user") mail.Fields.Add ("http://schemas.microso ft.com/cdo/configuration/sendpasswo rd", "***")
mail.From = "us**@user. com" mail.To = "my*****@myemai l.com" mail.Subject = "test" 'Server.GetLast Error.Message mail.Body = "body" 'Server.GetLast Error.StackTrac e
SmtpMail.SmtpSe rver = "mail.myemail.n et" SmtpMail.Send(m ail)
End Function
I have replaced the from, to, smtp server in this email with some fake data, however in my application I am using the real data.
Any idea?
Here is good resource that might be helpful: http://www.systemwebmail.com/faq.aspx http://www.systemwebmail.net/faq/3.8.aspx
"VK" <an*******@disc ussions.microso ft.com> wrote in message
news:14******** *************** *****@phx.gbl.. . Hello,
I am trying to send one simple email. However each time I try this I get the following error:
The message could not be sent to the SMTP server. The transport error code was 0x80040217. The server response was not available.
Here is my code:
Function SendEmail() Dim mail As New MailMessage mail.Fields.Add ("http://schemas.microso ft.com/cdo/configuration/smtpauthen ticate", 1) mail.Fields.Add ("http://schemas.microso ft.com/cdo/configuration/senduserna me", "user") mail.Fields.Add ("http://schemas.microso ft.com/cdo/configuration/sendpasswo rd", "***")
mail.From = "us**@user. com" mail.To = "my*****@myemai l.com" mail.Subject = "test" 'Server.GetLast Error.Message mail.Body = "body" 'Server.GetLast Error.StackTrac e
SmtpMail.SmtpSe rver = "mail.myemail.n et" SmtpMail.Send(m ail)
End Function
I have replaced the from, to, smtp server in this email with some fake data, however in my application I am using the real data.
Any idea? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: dan glenn |
last post by:
I'm creating HTML emails from a PHP site and sending them out to an email
list (just about 40 people so far are on this list). I've tested and
confirmed that these emails work in yahoo.com's webmail. And I know they
work on *my* Outlook Express. But I have one person (I know of) who gets the
emails as plain text, so she sees the HTML code for the email instead of its
proper representation. She has, like myself, OE6, and other html emails...
|
by: Stuart Mueller |
last post by:
I have an exchange server, that I sometimes use to perform mail shots to
clients on our database, these can be upwards of 1000 at a time.
As we don't want different clients to see who we are working with we put
these mailshots in the bcc field of the mails.
This can sometimes cause a problem as we are getting alot of mails bounced
back. I would like to write a script to have these emails sent
out individually using the to: field of the...
|
by: Ian Taylor |
last post by:
Hi all...
Is it possible to send RTF-formatted emails using the .NET SmtpMail
implementation?
I can only find provision in the BodyFormat property of the message to
send plain text or HTML emails.
I also have a similar problem in sending HTML/RTF emails via MAPI and
would appreciate any help anyone could give me in these areas.
|
by: VB Programmer |
last post by:
My company has it's own webserver, which is going to host our ASP.NET web
application. We want the website to be able to send out emails.
1. What do I need on the server so that it has the abillity to send out
emails? It is a Windows 2000 Professional SP3 server.
2. Any examples (code, etc...) on how to send out emails via an ASP.NET
webform?
Thanks!
|
by: Mr. x |
last post by:
Hello,
I am sending emails with Hebrew contents.
When receiving emails - I cannot see the Hebrew characters (it is not
outlook express configuration, because when receiving emails from friends -
I see hebrew, it is just sending by myself using *.aspx scripts).
In web.config I have the following :
<configuration>
<system.web>
| |
by: Ant |
last post by:
Hi, I'm using the MailMessage & smtpMail classes in System.Web.Mail to send
mail, however it's not sending any emails.
I'm using it on a Windows 2003 server.
The simplest way to use this is
smtpMail.Send("from@here.com", to@there.com, "Message subject", "Message
Body")
I'm sending it to my own email address on a different server using a dummy
|
by: Kun |
last post by:
i have the following code:
----------------------------------
import smtplib
from email.MIMEText import MIMEText
fp = open('confirmation.txt', 'rb')
msg = MIMEText(fp.read())
From = 'xxxx@xxxx.xxxx.edu'
|
by: Jai |
last post by:
Hi,
I am in a problem of sending mass emails(newsletter) to my website
members.
Actually my problem is this:
I want to send newsletter to my website members. But I had given a
facility for each member to choose different category of products or
all products newsletter.
|
by: robbiesmith79 |
last post by:
Just so this is out there on the web, I battled the past 24 hours
about this. Background info... I developed a ecommerce website in PHP
4 on a shared linux hosting plan from GoDaddy and had the html
formatted emails sending as text/html and were going fine with limited
header information. Then we moved the site over to a Dedicated Linux
hosting plan. This time, it's PHP 5. Things are bound to not work as
expected moving to a new...
|
by: lstanikmas |
last post by:
Hi, I'm validating a form with this ASP but receiving some blank email
responses; does anyone see anything wrong with it?:
function isFormVarExcluded(thisForm, strToCheck)
{
var strExcludeVars = thisForm.elements.value;
var arrExcludeVars = strExcludeVars.split(",");
for (var j=0; j<arrExcludeVars.length; j++)
{
if (arrExcludeVars == strToCheck) return true;
|
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: 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: 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();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |