PC Review


Reply
Thread Tools Rate Thread

CDO Send To Space-Included Emailaddress

 
 
fyitang
Guest
Posts: n/a
 
      17th Mar 2008
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
"(E-Mail Removed)", now i got a assignment of sending mail to
addresses like "fyi (E-Mail Removed)", 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.
 
Reply With Quote
 
 
 
 
Henning Krause [MVP - Exchange]
Guest
Posts: n/a
 
      17th Mar 2008
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" <(E-Mail Removed)> wrote in message
news:b0a7b41a-4ae8-46f0-a1c5-(E-Mail Removed)...
> 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
> "(E-Mail Removed)", now i got a assignment of sending mail to
> addresses like "fyi (E-Mail Removed)", 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.


 
Reply With Quote
 
fyitang
Guest
Posts: n/a
 
      16th Apr 2008
On Mar 18, 1:04 am, "Henning Krause [MVP - Exchange]"
<newsgroups_rem...@this.infinitec.de> wrote:
> 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.com> wrote in message
>
> news:b0a7b41a-4ae8-46f0-a1c5-(E-Mail Removed)...
>
> > 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 (E-Mail Removed)">, and
this worked. thank you.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how send an access report besides a C:\attachment already included ldiaz Microsoft Access 5 8th Oct 2008 12:12 AM
how send an access report besides an attachment already included? ldiaz Microsoft Access 0 6th Oct 2008 05:14 AM
VBScript Please Help. How do I Retrieve the Send on Behalf of EmailAddress? Shawn Microsoft Outlook VBA Programming 0 30th May 2008 03:59 PM
My header/footer is not included when I send an email.....why =?Utf-8?B?ZGljaw==?= Microsoft Access 3 15th Dec 2004 07:38 PM
RENAMING EMAILADDRESS FOLDERS DEB Windows XP General 4 24th Mar 2004 06:40 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:17 PM.