mailsocket

Before starting to work with this service.
Is it possible to use a web application?

Alain Lortie

[quote=104111:@Alain Lortie]Before starting to work with this service.
Is it possible to use a web application?

Alain Lortie[/quote]

you can use a web app to send mail. depending on the setup of the webserver.

What is your end goal? with a little more details we probably can give you a better/clearer answer…

What does “mailsocket” refer to?

I want to use the features of mailsocket in a web application.
I use a mac server, but I’d rather use an external SMTP server.

I did some tests with the sample mailsocket.
I wonder if it will work with a web application.

I don’t want to use the mail() function.

it will depend on how far the external SMTP server is from your server (in latency).

Now I said it CAN do it. SHOULD you do it is another question.

Does the email have to be sent in realtime? or can it be delayed a few minutes? if it can, I would have the email message generated in the web app to be saved in a special directory (to be determined by you). Then have a second app that picks up any emails in that directory and mails them out.

Why would I have the two app process? if the connection to the mail server fails or takes a long time, or takes a long time to send the email to the mail server, the web application could time out sending data to the client. You dont want your web app to become unresponsive as it is waiting to send the email.

without know more details of the web app and what you are trying to do, I cant go any further in recommendations.
sorry.

Thank you for your cooperation.