473,414 Members | 1,631 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,414 software developers and data experts.

Re: CDO Send To Space-Included Emailaddress

On Mar 18, 1:04 am, "Henning Krause [MVP - Exchange]"
<newsgroups_rem...@this.infinitec.dewrote:
Hello,

spaces are allowed if the local part of the email address is quoted like
this:

"test email address with spaces"@example.com

You could try this....

Kind regards,
Henning Krause

"fyitang" <fyit...@gmail.comwrote in message

news:b0**********************************@s37g2000 prg.googlegroups.com...
hi guys, i'm using the methods of CDO.MessageClass to send email. like
this:
using CDO;
...
Configuration MailConfig = new ConfigurationClass();
MailConfig.Fields[CdoConfiguration.cdoSendUsingMethod].Value =
CdoSendUsing.cdoSendUsingPort;
MailConfig.Fields[CdoConfiguration.cdoSMTPAuthenticate].Value =
CdoProtocolsAuthentication.cdoBasic;
MailConfig.Fields[CdoConfiguration.cdoSMTPServer].Value =
txtSmtpServer.Text;//SMTPServer;
MailConfig.Fields[CdoConfiguration.cdoSMTPServerPort].Value =
txtPortNumber.Text;//PortNumber;
MailConfig.Fields[CdoConfiguration.cdoSMTPConnectionTimeout].Value =
txtTimeout.Text;//Timeout;
MailConfig.Fields[CdoConfiguration.cdoSMTPAccountName].Value =
txtSenderName.Text;//sendername
MailConfig.Fields[CdoConfiguration.cdoSendUserName].Value =
txtSenderAddress.Text;//UserName;
MailConfig.Fields[CdoConfiguration.cdoSendPassword].Value =
txtPwd.Text;//Password;
MailConfig.Fields.Update();
MessageClass MailMsg = new MessageClass();
MailMsg.Configuration = MailConfig;
MailMsg.From = txtSenderAddress.Text;
MailMsg.To = txtMailto.Text;
MailMsg.Subject = txtSubject.Text;
MailMsg.HTMLBody = "test...";
MailMsg.Send();
these codes work when the txtMailto.text is set like
"fyit...@gmail.com", now i got a assignment of sending mail to
addresses like "fyi t...@gmail.com", but it can not work. of course it
is not allowed to include space in gmail's address, but my customers
do have these space-included email addresses, and their mail system is
fine with them. how should i do with it?any tips is appreciated.
thanks very much.
thanks Henning. i have tried this one <"test te**@gmail.com">, and
this worked. thank you.
Jun 27 '08 #1
0 804

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: lkrubner | last post by:
I was trying to set a cookie before I called session_start() and it was giving me an error. But isn't sessions really just a cookie? Why would it matter if I sent a cookie before session_start? Can...
12
by: Uncle | last post by:
I am an untrained hobbyist. Everything about programming I have learned from the internet. Thank you all for your gracious support. This is what I have: #define CONST_CHAR 0 void some_func(...
6
by: Tom | last post by:
I try to write a simple tcp based job queue server. It's purpose is to get commands from a client and store them in a queue (STL). The server has a thread which checks periodically the queue,...
4
by: Morten Snedker | last post by:
Using the procedure below on an ordinary form works fine. Moving it to a service-project makes it fail on SmtpMail.Send(mail) with error: "Could not access 'CDO Message' object." Google-search...
1
by: Max | last post by:
Hi, I am trying to paste text in a console window using SendKeys and the Clipboard (I am using Windows XP SP2 and .NET 1.1). Here is the code (I have a form with two edit boxes, DosTitle in...
10
by: Mike Charney | last post by:
Is there a simple way to send SMTP email from Access VBA? Mike m charney at dunlap hospital dot org
19
by: lawrence k | last post by:
How can I find out where my script is outputting to the screen for the first time? My error logs are full of stuff like this: PHP Warning: session_start(): Cannot send session cache...
4
by: =?ISO-8859-15?Q?Bastian_P=F6ttner?= | last post by:
Hey guys, I am currently trying my best to implement a simple TCP Server in c++. It waits for connections of clients and sends out files on request. I made the socket non blocking since I...
0
by: dcm684 | last post by:
I am communicating with a microcontroller device and when I try to send a zero character my computer ends up sending a space instead. Occasionally, the computer will end up sending the '0' instead....
2
by: =?Utf-8?B?bWFib25k?= | last post by:
Hi don't know if this is the best forum or if my request is possible...hope someone out there can suggest a pointer for me. I want to to be able to send a keyboard keystroke (specifically the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
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,...
0
Oralloy
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,...
0
jinu1996
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...
0
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...
0
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...

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.