473,325 Members | 2,712 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

VBSendMail and Exchange

Hi All,
I am using vbsendmail with VB6 to send emails from
an VB application. I have got VBSendmail to work with Outlook.
Now we have switched to Exchange, vbsendmail does not
send a mail and there is no error either. Would anyone know why this
could be happening or point me in the right direction.

Do you need to Log on with Exchange?

With poSendMail
poSendMail.PersistentSettings = True
.SMTPHostValidation = VALIDATE_NONE
.EmailAddressValidation = VALIDATE_SYNTAX
.Delimiter = ";"

.SMTPHost = sEmailServer
.SMTPPort = 25
.FromDisplayName = sFromName
.From = sFromAddress
.Recipient = sEmailAddress

.ReplyToAddress = sReplyToAddress
.subject = sSubject
.Message = sBody
.Send

End With


Thanks
Shutdown123
Jul 31 '06 #1
3 5881
sashi
1,754 Expert 1GB
Hi there,

i have faced the same problem sometime back.. the secret is simple.. vbSendMail requires SMTP authentication when it comes sending mail out.. include a from mail username as well as the password.. take care..
Aug 1 '06 #2
Thanks Sashi,

I have done that, and it works now

Shutdown123
Aug 1 '06 #3
sashi
1,754 Expert 1GB
Hi there,

no problem buddy.. take care..
Aug 2 '06 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

19
by: steve | last post by:
// What I want to do Use enumerated types with the Interlocked.Exchange methods Suggestions please // My estimation of problem Seems like Interlocked.Exchange only works with ints,...
8
by: Rob Edwards | last post by:
When trying to add the Microsoft CDO for Exchange Management Library (aka CDOEXM.dll) I receive the following message: "A reference to 'Microsoft CDO for Exchange Management Library' could not be...
2
by: George Durzi | last post by:
We recently upgraded to Exchange2K3/W2K3 from Exchange2K/W2K, and some of my c# code that I used to access users' contacts using WebDAV has stopped working. I'm getting a 401 unauthorized error....
0
by: Alan | last post by:
Hello World: I'm trying to build an application (using Access 2003) that will allow users who have to perform tasks in a particular order, to notify the next person in line when their task is...
8
by: Michel Posseth [MCP] | last post by:
Hi does someone has experience with this ?? i have made a lot of apps in the past that were capable of sending e-mails the server i then talked to was a Linux SMTP server and it worked great ...
0
by: arjen1984 | last post by:
I am now working on C# with WebDAV on Exchange now to get appointments. When I work local on the domain where the server is, i can get the appointments no problem. When I work outside of it, i get an...
1
prn
by: prn | last post by:
Hi folks, I'm trying to add an email function to an existing Access application. I'm not irrevocably committed to any particular method, so I'm open to suggestions like "try <whatever>." However,...
0
by: CruiseMan | last post by:
I have utilized vbSendMail in a VB6 program that I installed in Malaysia that uses an email server in the U.S. as the SMTP host. Due to on and off problems that have occurred in receiving or not...
2
Ray Furness
by: Ray Furness | last post by:
Hi all. I have 2 applications, one MS-Access and one MS-Excel, that have VB code/macros that use vbsendmail to send out emails directly via our SMTP mail server(s). Both applications had been...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
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...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
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...
1
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
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....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.