yabsoft
09-04-2007, 05:55 AM
By default, we are using the email() function of PHP to send emails. But on some shared servers, this is not supported, providing another method - SMTP to send emails.
Here is the mod to utilize SMTP for emailing.
1. Upload the attachment to update corresponding files in /includes/.
2. Then you need edit template.php to change your SMTP setting, line 172-176:
/** Begin SMTP setting */
$mail->Host = "<your smtp host>";
$mail->Username = "<your email on this host>";
$mail->Password = "<yourpassword>";
/** End SMTP setting */
a). Replace <your smtp host> with a valid hosted domain name.
b). Replace <your email on this host> with a valid hosted email account.
c). Replace <yourpassword> with the password for the email account used above.
http://yabsoft.com/forum/images/bluesaint/attach/zip.gif SMTPmod.zip (http://yabsoft.com/forum/attachment.php?attachmentid=189&stc=1&d=1188881678) (21.1 KB)
Here is the mod to utilize SMTP for emailing.
1. Upload the attachment to update corresponding files in /includes/.
2. Then you need edit template.php to change your SMTP setting, line 172-176:
/** Begin SMTP setting */
$mail->Host = "<your smtp host>";
$mail->Username = "<your email on this host>";
$mail->Password = "<yourpassword>";
/** End SMTP setting */
a). Replace <your smtp host> with a valid hosted domain name.
b). Replace <your email on this host> with a valid hosted email account.
c). Replace <yourpassword> with the password for the email account used above.
http://yabsoft.com/forum/images/bluesaint/attach/zip.gif SMTPmod.zip (http://yabsoft.com/forum/attachment.php?attachmentid=189&stc=1&d=1188881678) (21.1 KB)