Jump to content

Recommended Posts

Hi i have just changed hosts and sendmail is active in php but doesn't work without smtp authentication they don't seem to have any PEAR packages just wondering if anyone knows how to define this in the mail(); function or if it is possible to define the $params for smtp host: port: username: password: ?? 

 

$send = mail($to, $subject, $body, $header, $params);

Link to comment
https://forums.phpfreaks.com/topic/203986-how-to-send-smtp-values-in-mail/
Share on other sites

Thanks I have had a look at it but looks like it just sends plain text messages I have to find a work around this that can include html css and attachments from the first glance it might work I will give it a go I have so many email templates already set up and working is there really no way to send the smtp login through mail() if not is there another work around in php or does anyone know of a good smtp server reference guide where I can study what the server asks for when you call it as I am sure this could be done another way if need be with fsockopen and fputs and fgets for the server response.

Thank you I will have a look at it, but first I shall have a crack at writing a small function to try to talk to the smtp server should be interesting if mail() can't do it I am suprised there is no function smtpmail() after all it should be simple SMTP simple mail transfer protocol

Thank you I will have a look at it, but first I shall have a crack at writing a small function to try to talk to the smtp server should be interesting if mail() can't do it I am suprised there is no function smtpmail() after all it should be simple SMTP simple mail transfer protocol

 

php mailer? http://phpmailer.worxware.com/

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.