Using the SENDSMTPSendMail command with Email "groups&q

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
zeke
Newbie
Posts: 11
Joined: Thu Dec 08, 2005 7:23 pm

Using the SENDSMTPSendMail command with Email "groups&q

Post by zeke » Mon Apr 10, 2006 11:35 pm

Can you use the SMTPSendMail function with email groups? - not just individuals. We have a groups of staff called Information Systems.

I tried using the syntax below using Information Systems as my recipients but nothing was delivered.



"SMTPSendMail>recipients,server,from_address,from_name,subject,body,attachments"


Thanks

User avatar
JRL
Automation Wizard
Posts: 3526
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Tue Apr 11, 2006 4:58 am

Where is the Information Systems email defined? Its not in Macro Scheduler.

You'll need to provide real email addresses. When I'm sending something to a group of people I usually predefine the subject and message then create a line for each individual. It may seem like extra effort but its a script and you usually only set it up once then use it multiple times. Perhaps changing the subject and message.



Let>server=mail.myserver.org
Let>from_address=[email protected]
Let>from_name=zeke
Let>subject=Test email distribution
Let>body=Greetings,%CRLF%This is only a test.%CRLF%%CRLF%Thank You.
Let>attachments=C:\[path]\File.doc

SMTPSendMail>[email protected],server,from_address,from_name,subject,body,attachments
SMTPSendMail>[email protected],server,from_address,from_name,subject,body,attachments
SMTPSendMail>[email protected],server,from_address,from_name,subject,body,attachments
SMTPSendMail>[email protected],server,from_address,from_name,subject,body,attachments

Hope this helps,
Dick

Me_again
Automation Wizard
Posts: 1101
Joined: Fri Jan 07, 2005 5:55 pm
Location: Somewhere else on the planet

Post by Me_again » Tue Apr 11, 2006 1:20 pm

JRL, Any reason why you don't use SMTP_BCCLIST and send it one time?

User avatar
JRL
Automation Wizard
Posts: 3526
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Tue Apr 11, 2006 1:32 pm

Maybe I'm stubborn and set in my ways and don't use new things when they come along....So I guess the answer is "no reason" :)

Actually, I've never had a reason to try it.

Thanks for the update,
Dick

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts