Sending email

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
chrisl
Newbie
Posts: 2
Joined: Tue Oct 19, 2004 6:58 pm

Sending email

Post by chrisl » Tue Oct 19, 2004 6:59 pm

Cannot get the sample email scrip that comes with v.7 to work. It keeps reporting the following error message

The following error occured: 501 >: malformed address: > may not follow This macro demonstrates how to send Email & Files using the SMTPSendMail command.
Input>smtp,Please Enter Your SMTP Mail Server:
If>smtp=,end
Input>fromemail,Please Enter Your Email Address:
If>fromemail=,end
Input>toemail,Please Enter Recipient's Email Address:
If>toemail=,end
Input>subject,Please Enter a Subject:
Input>msg,Please Enter Your Message:
Ask>Do you want to send a file?,sendfile
Let>attach=
If>sendfile=NO,continue
Input>attach,Please browse for the file you want to send
Label>continue
SMTPSendMail>toemail,smtp,fromemail,fromemail,subject,msg,attach
Pos>250,SMTP_RESULT,1,pres
If>pres>0,success,nosuccess
Label>success
MessageModal>Your Message Was Sent Successfully
Goto>end
Label>nosuccess
MessageModal>The following error occured: %SMTP_RESULT%
Label>end

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Tue Oct 19, 2004 7:55 pm

What are you entering in reponse to the prompt for To Email address?

Include one or more email addresses, separated by semicolons (;)

example: [email protected];[email protected]
-----------------------
I just used the sample email script with no problems. Received email sent to myself almost instantly. I did not include an attachment.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

chrisl
Newbie
Posts: 2
Joined: Tue Oct 19, 2004 6:58 pm

Sending email

Post by chrisl » Tue Oct 19, 2004 8:17 pm

Aha

I think it was my server that was blocking the email when relaying it as it was "from" an address that doesn't exist. Seems to work fine now.

Thanks for your help Bob


Chris

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