Jump to content

Multiple Email Recipients


Recommended Posts

I am attempting to send the same message to two different e-mail recipients.

The e-mail addresses are the same - so I don't need to capture the details.

I have tried to enter the addresses separated by a semicolon (as other programs work) but then nothing gets sent. What would be the best way to handle this situation?

Thanks!

Link to comment
Share on other sites

You are using what code/UDF?

Here is a portion of my script with the actual variables changed

My actual variable work OK - just not when I try to park the "2nd" e-mail address on the to line

#include <C:\Program Files\AutoIt3\Include\INet.au3>

$s_SmtpServer = "xxx.xxx.xxx.xxx" ;IP address for smtp server

$s_FromName = "FromName"

$s_FromAddress = "FromName@hotmail.com"

$s_ToAddress = "1stname@hotmail.com;2ndname@hotmail.com"

$s_Subject = "Test File Missing"

Again - things work if the

$s_ToAddress = "1stname@hotmail.com" or

$s_ToAddress = "2ndname@hotmail.com"

Can't get to do both at same time.

Thanks!

Link to comment
Share on other sites

  • Developers

Don't think _InetSmtpMail() has that option.

You could look for the _InetSmtpMailCom() UDF in the Examples forum I wrote which is using the CDO email functionality.

Just separate the Email addresses with a comma like "name1@domain.com,name2@domain.com"

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...