Copy link to clipboard
Copied
I am trying to find a way to send an image from bridge directly through a right click or something so that it can go out as an email attachment as easily as possible. I have an event I am shooting and my client wants to collect emails of people we shoot and email the photo to.
Ideally
simple one button click to send email with image attached
a way to review the emails that were sent in a text file or similar
not sure if there are easy apps available or a simple script to make this work?
Copy link to clipboard
Copied
There is one script tha I know of, but requires Windows and Outlook.
https://raw.githubusercontent.com/Paul-Riggott/PS-Scripts/master/BridgeMail.jsx
Copy link to clipboard
Copied
xbytor2 in xtools​ or Paul Riggott​​ (GitHub - Paul-Riggott/PS-Scripts: Photoshop Scripts ) wrote script basing on Dr Brown (Scripts Page) to send E-Mails by Bridge without using Outlook or other apps. btw what is Dr. Russell Brown forum name?
Copy link to clipboard
Copied
You are correct, there is this one as well:-
Copy link to clipboard
Copied
I saw that before but I remember it didn't work for me. So I tried to do it using SDK (there are examplary scripts to do so). Unfortunatelly I never could recieve E-Mail send to myself doing so. Maybe you can try with it: Adobe Photoshop SDK
Copy link to clipboard
Copied
It works for me but you have to set the smtp mailserver that you use.
Copy link to clipboard
Copied
I tried everything I could, so please help to insert proper data to send message to myself:
// ↓ Server
var mailServer = "smtp.gmail.com";
// To:
mailAddress = "someaddress@gmail.com";
mailAddress2 = "someaddress@gmail.com";
(...)
if (sObj.open(mailServer+":25")) {
sObj.writeln("HELO "+mailServer);
var txt = sObj.read()+"\n";
// ↓From:
sObj.writeln("MAIL From: someaddress@gmail.com")
(...)
Copy link to clipboard
Copied
This works for me using Photoshop as the target...
You will have to change the mail server to your own.
// ↓ Server
var mailServer = "smtp.talktalk.net";
// To:
mailAddress = "youremail@something.com";
// Subject:
var mailTitle = "Results of script";
// Text:
var mailText = "All jobs completed\r\n";
printText = true;
// function >>sendmail
sendmail(mailServer, mailAddress,mailTitle,mailText);
function sendmail(mailServer, mailAddress,mailTitle,mailText){
var sObj = new Socket();
// sObj.encoding = "binary";
if (sObj.open(mailServer+":25")) {
sObj.writeln("HELO "+mailServer, "smtp");
txt = sObj.read();
// ↓From:
sObj.writeln("MAIL From: Photoshop@JavaScript.com");
txt += sObj.read();
// ↓To:
sObj.writeln("RCPT To: "+mailAddress);
txt += sObj.read();
sObj.writeln("DATA");
sObj.writeln("From: Photoshop");
sObj.writeln("To: The People That Count");
// ↓ Subject:
sObj.writeln("Subject: "+mailTitle);
txt += sObj.read();
sObj.writeln("Date: " + new Date().toString() + "\r\n");
txt += sObj.read();
// ↓ Text
sObj.writeln(mailText);
txt += sObj.read();
sObj.writeln(".");
txt += sObj.read();
sObj.writeln("QUIT");
txt += sObj.read();
if(printText) $.writeln(txt);
sObj.close();
}
}
Copy link to clipboard
Copied
It still doesn't work for me 😕 Do you have gmail to confirm it works for you with it?
I'm sending you now private message. See if you think the entered data is correct in your opinion?
Maybe by 'my own server' you mean server I host, so not my E-Mail provider, but that I paid for?
Copy link to clipboard
Copied
thanks so much this is amazing!!! but unfortunately I am a dummy who it comes to scripts. these look pretty and al but what do I do with them now? how do I put that into action? not being a script writer or programmer just not sure how to go from taking what you guys have to implementing it? do you have a step by step for the not programmer?
Copy link to clipboard
Copied
The Bridge script would be install with the same instructions as your other query.
help filtering a folder of images based off a list of file names
But you would then select the file(s) and right mouse click and select "Mail Selected Items"
The script above doesn't work in Bridge but does in Photoshop BUT it seems it needs more information to get it to work with gmail.
I am using talktalk and it works fine. This is only for sending messages, not sending pictures.
Maybe someone with more knowledge could help?
Copy link to clipboard
Copied
Yes, since via Bridge script I couldn't send message too, though I complied with all instructions someone more experienced must help. Unfortunatelly I browsed all topics and couldn't find solution for the problem 😕
EDIT:
I recieved your message.
From: Photoshop
To: The People That Count
That's interesting I can't check E-Mail addresses both yours and mine in that message.
I got it 1 hour and 10 minutes ago. Did you use smtp.talktalk.net to send it or found other way or else did that by Bridge?
Copy link to clipboard
Copied
Yes I used smtp.talktalk.net via Photoshop.