Jump to content
Sign in to follow this  

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?


Share this post

Link to post
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.


Share this post

Link to post
Share on other sites

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

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
Live for the present,
Dream of the future,
Learn from the past.

Share this post

Link to post
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

Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.