need HELP friends

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
fardok

need HELP friends

Post by fardok » Thu Nov 06, 2003 10:28 am

how can I send attach _file_ via smtp??? you command dont properly work !!! may be make it under VBScript?

please send answer to email - I dont want to meet this stuped site anytime

[email protected]

Guest

Post by Guest » Thu Nov 06, 2003 11:02 am

I dont want to meet this stuped site anytime
What's stuped? Stupe? Stupid?

If you are in a hurry, get a consultant. If you can't afford a consultant to be pampered individualy, you've to come back. There's always a price you've to pay.

And by the way, in some cases it makes sense not to provide an EMail address (maybe you're not realy interested in spam) ...

Guest

Post by Guest » Thu Nov 06, 2003 11:11 am

Something usefull. Copy that link (your posting) to your desktop and it will be the same as to work with your EMail client. Click. Open.

If you prefer to get an issue solved by EMail you loose the option to be supported by MSched proffessionals from all around the world.

http://www.mjtnet.com/forum/viewtopic.php?t=655

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Thu Nov 06, 2003 4:28 pm

Hi,

To send an attachment via SMTP use the SMTPSendMail command:

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

attachments is a list of file names with full paths separated by semicolons (if more than one).
MJT Net Support
[email protected]

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 » Fri Nov 07, 2003 12:23 am

I use SMTPSendMail> command with attachments daily. Works great!

Would be nice if "guests" would log in with some identity. Hard to tell one guest from another......
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

User avatar
Captive
Macro Veteran
Posts: 213
Joined: Sun Oct 20, 2002 8:37 pm
Location: Colorado, USA

Post by Captive » Fri Nov 07, 2003 5:40 pm

bob hansen wrote:I use SMTPSendMail> command with attachments daily. Works great!
Same here - almost every day for years, and on many different OS's... Win98/WinNT/Win2k/WinXP.
bob hansen wrote:Would be nice if "guests" would log in with some identity. Hard to tell one guest from another......
This I would like too. Browsing without logging in, yeah. Posting as a guest... blah.

Unknown Guest

Post by Unknown Guest » Sat Nov 08, 2003 8:41 am

OK :lol:

PogoDeamon

Smtp mail

Post by PogoDeamon » Thu Jul 01, 2004 2:45 am

SMTPSendMail>[email protected];[email protected],mail.cXXo.com,[email protected],[email protected],ScreenShot,ScreenShot,C:\Documents and Settings\All Users\Desktop\mypic.bmp


This does not work for me any help? PLEASE!

PogoDeamon

SMTP mail

Post by PogoDeamon » Thu Jul 01, 2004 2:59 am

Sorry! I forgot to add this!

If I send mail this way it DOES work:

SMTPSendMail>[email protected];[email protected],mail.cXXo.com,[email protected],[email protected],ScreenShot,ScreenShot


But then when I go to add a file to it such as this it DOES NOT work:


SMTPSendMail>[email protected];[email protected],mail.cXXo.com,[email protected],[email protected],ScreenShot,ScreenShot,C:\Documents and Settings\All Users\Desktop\mypic.bmp

I get an error code of "354". Which I was reading and found that SMTP mail finds the end of a message by looking for a blank line with only a ".".
How would I do that or is there something else I am missing?

Only thing I thought of was the spaces in the path to the file. I tried doing it in quotes. That did not help either.


Thanks for your help.

PogoDeamon

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 » Thu Jul 01, 2004 4:49 am

???? Looks good to me.

I checked out the syntax and it looks OK. You are sending 2 copies of the email with an image file as an attachment.

You should be able to ignore the reference to the trailing "." using Macro Scheduler.

Can you send an attachment using your normal SMTP client software? Is there any type of firewall that might reject the email from going out with an attachment? Is it possible that you need authentication and/or name/pw to send an attachment? If Yes, then see the SMTP variables in the Help section for SMTPSendMail>

Here are some references for SMTP error codes:
http://www.uoguelph.ca/~gcssa/resource/ ... ndex.shtml
http://www.massmailsoftware.com/ezine/p ... -04-30.htm

You can also check out this paper (about 3 years old): http://www.networksorcery.com/enp/RFC/rfc2821.txt to get a step by step explanation of how the email is transmitted and when/what codes might be sent by various components in the transmission links.

:idea: The 354 code signifies that the server is ready for you to send email. There may be a timing issue. Perhaps you need to put in a loop to check error code, if failed, then Wait>5 and retry SMTPSendMail again. Maybe loop this to retry 3-5 times.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

nahguam
Newbie
Posts: 8
Joined: Tue Jun 15, 2004 4:03 pm

Re: SMTP mail

Post by nahguam » Fri Jul 02, 2004 1:48 pm

just an FYI...

I never use path information directly in a command as the spaces seen to cause confusion. I always declare it as a variable at the stsart of the macro...

eg

Let>recipients=
Let>server=
Let>from_address=
Let>from_name=
Let>subject=
Let>body=
Let>attachments=
MTPSendMail>recipients,server,from_address,from_name,subject,body,attachments



Working with this personal 'policy' I never get into problems. plus it saves a helluva lot of typing, especially if it's a long macro. Might be worth a try... Plus it can make macro's so much more reusable if you include an Input> command at the start.

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