my suggestion would be to troubleshoot why the SMTP isn't working, then use a series of If/else if statements to choose the account to send from.
While you can configure an email client like outlook or thunderbird to have the ability to send from multiple accounts, you can NOT select which one of those accounts is used from filemaker (at least not without using a plugin like outlook manipulator).
Have you tried working with the person that supports the SMTP email accounts to try and figure out why it wouldn't work?
It's a gmail account and should work - or so I would have thought. The smtp settings are the same for that and the email client account it's defaulting to.
gmail requires you to set up a special app access account to allow for SMTP. You can't just plugin some account details and make it work. It works on an authorization system that gives you a special username and password to use.
Oh, ok. Even if it's an exisiting account I use for regular email?
Look into your security settings for SMTP in gmail. Yes, it requires additional work or settings changes to allow for external apps to be able to send via SMTP.
Otherwise there would be probably a million times more spam messages flooding the internet from gmail.
I know this is probably an obvious question, and I wasn't sure from your posting, but have you tested your SMTP send with a non-Gmail account?
Make sure SMTP is working at all. In some cases, it can be a firewall issue on the FMP client (your) side.
Double check the port. Port 25 is not usually used for secure email. Sometimes it's port 465 or other for SSL/TLS, etc.
SMTP works flawlessly and is very flexible since you can have different settings in each record, if necessary.
thanks - i'll check this out
Please post back with the solution once you figure it out, OK?
That's good for all of us, too!
I've never had to set up special access for sending through gmail.
In Gmail Settings, Forwarding and POP/IMAP, check "Enable IMAP"
For the SMTP settings, use
email address: email@example.com
reply to: firstname.lastname@example.org
authentication: Plain Password
user name: email@example.com
Thanks - tried all this. I think it must be to do with permissions on our email server - talking to our IT guys...