christophdb

christophdb supports this item

Supported

This author's response time can be up to 2 business days.

8 comments found.

Hi,

What’s the difference between this and PHPMailer? https://github.com/PHPMailer/PHPMailer

Hi iAlex, my MailHub uses the phpmailer for html emails. But in my opinion phpmailer is a very powerful class with so much features that you easily get lost.

Therefore I created for myself my MailHub Class. I wanted to focus on the most important things: word replacement for customized emails, easy attachments, multiple recipients, plain and html mails and debugging.

Give it a try and I promise you will see how easy my class is. Best regards, Christoph

I cant get this to work using HTML, I have added my SMTP variables as shown below:

define(‘SMTP_HOST’, ‘mail.optusnet.com.au’);
define(‘SMTP_USERNAME’, ‘me@domainname.net‘);
define(‘SMTP_PASSWORD’, ‘**‘);
define(‘SMTP_PORT’, ‘25’);

I have setup my email account using windows live and manually configured the server settings, howerver I keep getting the following ERROR:

Fatal error:  Uncaught exception 'phpmailerException'    with message 'Invalid address: John Doe <me@domainname.net>' in /home3/username/public_html/users/mail/class.phpmailer.php:532
Stack trace:
#0 /home3/username/public_html/users/mail/MailHub_class.php(465): PHPMailer->SetFrom('John Doe <me...')
#1 /home3/username/public_html/users/mail/MailHub_class.php(224): MailHub->sendHTML()
#2 /home3/username/public_html/users/mail/demo.php(18): MailHub->sendMail()
#3 {main}
  thrown in /home3/username/public_html/users/mail/class.phpmailer.php on line 532

I would greatfully appriciate any suggestions you may have.

Thanx.

@Alien_Glow – i had the same issue – got rid of ‘John Doe <~>’ and just had ‘me@domainname.net’ as the from/to (whatever address that is you are using there). Doesn’t like the naming for some reason.

@Author – you might want to change ”$tmp_name = $name;”

to

”$tmp_name = $path;”

Caused me 2 hours of headache trying to find out why PHPmailer couldn’t find my file – you need to have it changed as above to allow the file to be in a different folder other than where the php files are.

Other than that – great work. Saved some time.

Hey mikeyd234, thanks for your hint. I will check your hint and update the code by tomorrow. Best regards, Christoph

Hi mikeyd234, thank you for your suggestion.

I got rid of ‘John Doe <~>’ and it’s working now ;) Although I would’ve prefered that the name of the sender was displayed rather than the email address.

Hopefully the Author can update this file and email me to let me know, then I will rate it accordinglly.

Thanks Elevan.

Hey Alien_Glow, sorry for the missing response. I will fix the problems tomorrow and update the code. Best regards, Christoph

How can we test because i want to look will be in junk or spam ? Or can you send to me mail

Hi reflex_studio, to be honest I do not understand your problems. Can you send me an email via codecanyon and descripe your problem in a little bit more detail? Best regards Christoph

Hi Christoph, The plain text works, but unfortunately the html does not.

We got following error:

Fatal error: Uncaught exception ‘phpmailerException’ with message ‘Invalid address: John Doe <john.doe@gmail.de>’ in /home/httpd/vhosts/handball-profile.com/httpdocs/hb_nuovo/prova/class.phpmailer.php:532 Stack trace: #0 /home/httpd/vhosts/handball-profile.com/httpdocs/hb_nuovo/prova/MailHub_class.php(465): PHPMailer->SetFrom(‘John Doe <john….’) #1 /home/httpd/vhosts/handball-profile.com/httpdocs/hb_nuovo/prova/MailHub_class.php(224): MailHub->sendHTML() #2 /home/httpd/vhosts/handball-profile.com/httpdocs/hb_nuovo/prova/demo.php(18): MailHub->sendMail() #3 {main} thrown in /home/httpd/vhosts/handball-profile.com/httpdocs/hb_nuovo/prova/class.phpmailer.php on line 532

We used the same email setup for the plain text. Could you please support us?

Hey Garaux, I found an error with the setFrom function for HTML messages. Please send me an email and I will send you the updated class file. The update of the script at codecanyon will take probably some time… Best regards Christoph

Can you show me an example code on how to send html emails

Hi ahodson, did you checked the example page of the script? http://bigtoe.de/demo/mailHub/ If that is not enough, please write me an email with your problem. Best regards Christoph

Is this script still working? I looking for simple script to send notification of comment when user positing a comment. There will be a link: Notification Email: where he can put some any email so that email will get notification about his comment.

Hi sambuev, sorry for late response. Yes Mailhub is still working…

by
by
by
by
by
by