Complete example snippets
Posted: Tue Jan 20, 2009 9:22 pm
I stumbled across Swift while looking for a quick and easy way to send mail from my web site. I really hadn't planned on becoming an email expert, just some essential communications with my clients.
Installed swift just like it said and ran the smoke test. Perfect, did everything I needed it to do.
Constructing a usable script, however, isn't quite as apparent as it seems to be. The examples are delivered across a series of categories and I am sure quite clear for the experienced. What I am hoping I can accomplish here is get a clear functioning (and complete) example for my needs so I can move on.
My situation is this:
I need to send to a client, I have.
$to = "to";
$from = "me";
$subject = "whatever";
$message = "what I have to say";
I need to authenticate to a remote smtp server:
$server = "server.domain.com";
$user = "my account name";
$upass= "my account pass";
My needs are simple, but I am not making a lot of sense out of the examples. Does anyone have or can point me to a functioning example for the information I have and how to get the thing out the door?
The only other variation I would have at some point is the need to send to multiple receivers on my active list (doesn't happen much) - but I suspect I can simply loop it?
Any help would be appreciated.
Installed swift just like it said and ran the smoke test. Perfect, did everything I needed it to do.
Constructing a usable script, however, isn't quite as apparent as it seems to be. The examples are delivered across a series of categories and I am sure quite clear for the experienced. What I am hoping I can accomplish here is get a clear functioning (and complete) example for my needs so I can move on.
My situation is this:
I need to send to a client, I have.
$to = "to";
$from = "me";
$subject = "whatever";
$message = "what I have to say";
I need to authenticate to a remote smtp server:
$server = "server.domain.com";
$user = "my account name";
$upass= "my account pass";
My needs are simple, but I am not making a lot of sense out of the examples. Does anyone have or can point me to a functioning example for the information I have and how to get the thing out the door?
The only other variation I would have at some point is the need to send to multiple receivers on my active list (doesn't happen much) - but I suspect I can simply loop it?
Any help would be appreciated.