Is there some way to send an email through Terminal using AppleScript? It would help if you could also say how to make the content be the Clipboard. Thanks so much.
Related
I need to create an AppleScript program that will send an email no matter what. That means that the Apple Mail app is out of question, because some people do not have Mail set up. I thought that one way would be to send the email through Terminal, but I have no idea how. I need some way to send an email through AppleScript without the Mail app.
Here you can find a python script to send email and there's applescript code on the page to show how you can call the python script from applescript. Note that you have to supply smtp information to the script, which is essentially the information that you use to setup Mail.app.
So if you wanted a "no matter what" type of solution you would have to include your own smtp info in your code.
I need to know how to send a email with applescript without having a email to send from. So basically using the mail app is out because I have to have the use input their email in order to send.
Could I do a shell script in side the applescript in order to send?
Try my python email shell script here. I have an example applescript at the bottom of the page showing how you can control the shell script from applescript.
Here In My app, There is a case where User registering a form
He will give his mail id in one textfield. After Complete the form I need to send a mail to User for conformation of his registering.
Any one can help me please.
Thanks In Advance
I don't think its the right way to send email from the phone to the user's email id. You need to process the form at a remote server and it should send the confirmation email which most of the phone apps with user registration do. If you are going to save the user data locally, there will be several problems and the top problem would be rejection of the app from apple.
actually its pretty simple, you just have to connect to mail server and send commands
http://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol
hi
I want to send an email when user open the application but that email should be sent at back end so that user can not judge that application send an email.
any body can help me?
thanx
Thanx to all of you, all of you helped me & all of you are right but i find a simple way to send an email.
The easiest way to do this thing is to write a small script on php that sends a mail & upload it on your hosting & just hit it whenever u need. You will hit the URL & it will send an email.
Simple :)
If this is for the purpose of simply knowing that someone ran the program, I would check out www.Flurry.com, free analytics for your app and very easy to integrate. (I have no connection with Flurry except as a user.)
Sending e-mail behind the scenes is not hard, necessarily, but you have to basically establish a network connection to a server that has a mail server (MTA), and then you have to "speak" SMTP to it, and a whole lot of things can go wrong in the process. :-) (I spent 10 years writing e-mail servers, so I know of what I speak. :-)
Check out Flurry. :-)
You will need to use a third party library for that. The SDK doesn't allow you to send emails in the background.
Here's one you can use:
http://code.google.com/p/skpsmtpmessage/
Is it possible in any way to send an email attachment through the user's default email client using AppleScript? I'm assuming there is no easy way of doing this, as the programs themselves have to implement AppleScript and every email client will implement it differently and require a different script for sending an email with an attachment.
I've searched around and only found this:
http://macscripter.net/viewtopic.php?id=12463
Which can, via Applescript, give me the name of the default email client. Has anyone looked into this before?
Thank you.
You are correct. You'll have to implement different applescript code for each email client. As such you'll probably want to limit the email clients your application will support and make that clear to your users.
The only other way for it to work universally is for you to implement your own email system. I have a python script that I can call from an applescript using "do shell script" to send emails. Of course you'll need to know the user's information (smtp server, username, etc). If you're interested you can see my python script here. It doesn't handle attachments but some google searching should show you how to modify it.