Want to send simple Email with multiple to address (General questions)
I want to be able to send a simple email that has multiple to addresses.
I can't seem to find how to addition emails to the TO field and also CC and BCC would be useful.
Any help would be appreciated.
Pete
Re: Want to send simple Email with multiple to add
Peter,
why not? There's To, CC, BCC etc:
http://www.weonlydo.com/Smtp/Help/WODSMTPLib~SmtpMsg~To.html
http://www.weonlydo.com/Smtp/Help/WODSMTPLib~SmtpMsg~CC.html
http://www.weonlydo.com/Smtp/Help/WODSMTPLib~SmtpMsg~BCC.html
Multiple recipients can be separated by ;
Please note that except for changing email (so recipient sees other CC and To recipients) you can also set MailTo property
http://www.weonlydo.com/Smtp/Help/WODSMTPLib~wodSmtp~MailTo.html
that causes recipients to be specified with RCPT TO command on SMTP server, while leaving original message intacts.
Re: Want to send simple Email with multiple to add
Maybe I confused myself then by trying to be too object-orientated? I set up a simple email and then tried to add an additional recipent by using the smtpmsgs.add method. Have I misunderstood this method?
Re: Want to send simple Email with multiple to add
Peter,
Msgs.Add? You mean to add more messages? No, you have only one message, but more than one receipt.
If you need more than one Message (perhaps different?) then you should initialize new instance of wodSmtp - and just send it separately.